Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-649

Show pop-up message for "Invalid Value" when performing a Track Operation

    Details

      Description

      When performing a track operation, if an invalid value is entered, such as "5x", then there should be a small pop-up message that lets the user know that the value entered is invalid.

      Currently, when an invalid value is entered, IGB reverts to using the last known valid value that was used for "Add" and reverts to using zero for "Subtract".

      This hidden functionality is confusing and it would be better for the user if there was a message to indicate that the entered value was invalid.

        Attachments

          Issue Links

            Activity

            mason Mason Meyer (Inactive) created issue -
            mason Mason Meyer (Inactive) made changes -
            Field Original Value New Value
            Epic Link IGBF-600 [ 15673 ]
            ann.loraine Ann Loraine made changes -
            Story Points 0.25
            ann.loraine Ann Loraine made changes -
            Epic Link IGBF-600 [ 15673 ]
            ann.loraine Ann Loraine made changes -
            Workflow Loraine Lab Workflow [ 15930 ] Fall 2019 Workflow Update [ 18774 ]
            ann.loraine Ann Loraine made changes -
            Workflow Fall 2019 Workflow Update [ 18774 ] Revised Fall 2019 Workflow Update [ 20896 ]
            Status Open [ 1 ] To-Do [ 10305 ]
            noor91zahara Noor Zahara (Inactive) made changes -
            Assignee Noor Zahara [ noor91zahara ]
            noor91zahara Noor Zahara (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            noor91zahara Noor Zahara (Inactive) made changes -
            Sprint Fall 1: 14 Sep - 25 Sep [ 103 ]
            ann.loraine Ann Loraine made changes -
            Epic Link IGBF-1765 [ 17855 ]
            noor91zahara Noor Zahara (Inactive) made changes -
            Story Points 0.25 1
            Hide
            noor91zahara Noor Zahara (Inactive) added a comment - - edited

            We are using Number Format parse function which parses the string from the beginning and hence when a value like 5x is entered, it gets parsed to 5.
            We have to change the logic in setParametersValue(..) : AbstractMathTransform.java to show an error message

            Show
            noor91zahara Noor Zahara (Inactive) added a comment - - edited We are using Number Format parse function which parses the string from the beginning and hence when a value like 5x is entered, it gets parsed to 5. We have to change the logic in setParametersValue(..) : AbstractMathTransform.java to show an error message
            noor91zahara Noor Zahara (Inactive) made changes -
            Hide
            noor91zahara Noor Zahara (Inactive) added a comment -

            [~aloraine] - I have attached the screenshot of the error popup that would be shown in case of invalid entry. Kindly let me know if I have to change the error message.

            Show
            noor91zahara Noor Zahara (Inactive) added a comment - [~aloraine] - I have attached the screenshot of the error popup that would be shown in case of invalid entry. Kindly let me know if I have to change the error message.
            Show
            noor91zahara Noor Zahara (Inactive) added a comment - Code diff - https://bitbucket.org/noorzahara/integrated-genome-browser-local1/branch/IGBF-649#diff
            Hide
            ann.loraine Ann Loraine added a comment -

            Change requests:

            • Please use the following quoted text to report the error to the user:

            You entered parameter [fill in what they entered]. Unfortunately, the Track Operation you selected cannot accept this value. More information about this problem may be available in the Console tab.

            • Remove link to "IGB Help" page.
            • If possible, add a button: "Copy error message". Place it on the far left side of the dialog, if possible. If not, please it to the left of the "OK" button. When the user selects "Copy error message," the error message shown in the box should be copied to the system clipboard.
            Show
            ann.loraine Ann Loraine added a comment - Change requests: Please use the following quoted text to report the error to the user: You entered parameter [fill in what they entered] . Unfortunately, the Track Operation you selected cannot accept this value. More information about this problem may be available in the Console tab. Remove link to "IGB Help" page. If possible, add a button: "Copy error message". Place it on the far left side of the dialog, if possible. If not, please it to the left of the "OK" button. When the user selects "Copy error message," the error message shown in the box should be copied to the system clipboard.
            noor91zahara Noor Zahara (Inactive) made changes -
            Attachment Screen Shot 2020-09-16 at 4.02.52 PM.png [ 14863 ]
            Hide
            noor91zahara Noor Zahara (Inactive) added a comment -

            [~aloraine] - Thanks for the suggestion. I have attached the screenshot with the changes. Kindly let me know if that looks fine.

            Show
            noor91zahara Noor Zahara (Inactive) added a comment - [~aloraine] - Thanks for the suggestion. I have attached the screenshot with the changes. Kindly let me know if that looks fine.
            noor91zahara Noor Zahara (Inactive) made changes -
            Attachment Screen Shot 2020-09-16 at 4.02.52 PM.png [ 14863 ]
            noor91zahara Noor Zahara (Inactive) made changes -
            noor91zahara Noor Zahara (Inactive) made changes -
            Assignee Noor Zahara [ noor91zahara ]
            noor91zahara Noor Zahara (Inactive) made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            ann.loraine Ann Loraine made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ] Noor Zahara [ noor91zahara ]
            Hide
            ann.loraine Ann Loraine added a comment -

            The code looks good. I did not test the functionality. But I think it is fine to submit the PR now.

            A note to tester: Please read before commencing testing:

            If you are new to IGB project and to testing, also read:

            Note that some operations but not all can accept arguments. The changes described above handle cases when the user enters a parameter that the operation cannot accept.

            Show
            ann.loraine Ann Loraine added a comment - The code looks good. I did not test the functionality. But I think it is fine to submit the PR now. A note to tester: Please read before commencing testing: Annotation track operations - https://wiki.transvar.org/display/igbman/Annotation+track+operations Graph track operations - https://wiki.transvar.org/display/igbman/Graph+operations+and+joining+and+spliting+graphs Testing checklist for track operations - https://wiki.transvar.org/display/ITD/Track+Operaters+-+Annotation+Tracks If you are new to IGB project and to testing, also read: How to test IGB - https://wiki.transvar.org/display/ITD/How+to+test+-+read+this+first Note that some operations but not all can accept arguments. The changes described above handle cases when the user enters a parameter that the operation cannot accept.
            Hide
            noor91zahara Noor Zahara (Inactive) added a comment -

            Steps to test

            1. Select one of the species from IGB home screen and load a graph.
            2. Right click on the track and select Track Operations.
            3. Enter an invalid value for any of the operations listed.
            4. An error message should appear.

            Show
            noor91zahara Noor Zahara (Inactive) added a comment - Steps to test 1. Select one of the species from IGB home screen and load a graph. 2. Right click on the track and select Track Operations. 3. Enter an invalid value for any of the operations listed. 4. An error message should appear.
            Show
            noor91zahara Noor Zahara (Inactive) added a comment - PR Submitted - https://bitbucket.org/lorainelab/integrated-genome-browser/pull-requests/828/igbf-649/diff
            noor91zahara Noor Zahara (Inactive) made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            noor91zahara Noor Zahara (Inactive) made changes -
            Assignee Noor Zahara [ noor91zahara ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Merged and master branch installers are built. Ready for testing.

            Show
            ann.loraine Ann Loraine added a comment - Merged and master branch installers are built. Ready for testing.
            ann.loraine Ann Loraine made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            nfreese Nowlan Freese made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            nfreese Nowlan Freese made changes -
            Assignee Nowlan Freese [ nfreese ]
            Hide
            nfreese Nowlan Freese added a comment - - edited

            Testing dmg installer on Mac.

            Warning appears for Right-click on Graph > Track Operations... > Add/Subtract when a non integer or - operator.

            Warning does not appear for Right-click on Graph > Track Operations... > Divide/Log/Multiply/Power*.

            Divide/Log/Multiply throw null pointer exceptions. Power uses the default value of 2.

            It also seems odd that the right-click track operation provides a pop-up warning when entering non numeric text, but in the graph tab operations the textbox does not allow non-numeric text. This seems to be the more default behavior as right-clicking on a bam file and selecting Find Junctions and then attempting to enter non-numeric text does not work.

            Show
            nfreese Nowlan Freese added a comment - - edited Testing dmg installer on Mac. Warning appears for Right-click on Graph > Track Operations... > Add/Subtract when a non integer or - operator. Warning does not appear for Right-click on Graph > Track Operations... > Divide/Log/Multiply/Power*. Divide/Log/Multiply throw null pointer exceptions. Power uses the default value of 2. It also seems odd that the right-click track operation provides a pop-up warning when entering non numeric text, but in the graph tab operations the textbox does not allow non-numeric text. This seems to be the more default behavior as right-clicking on a bam file and selecting Find Junctions and then attempting to enter non-numeric text does not work.
            nfreese Nowlan Freese made changes -
            Assignee Nowlan Freese [ nfreese ]
            nfreese Nowlan Freese made changes -
            Status Post-merge Testing In Progress [ 10003 ] To-Do [ 10305 ]
            noor91zahara Noor Zahara (Inactive) made changes -
            Assignee Noor Zahara [ noor91zahara ]
            noor91zahara Noor Zahara (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            Show
            noor91zahara Noor Zahara (Inactive) added a comment - Bug fix - https://bitbucket.org/noorzahara/integrated-genome-browser-local1/branch/IGBF-649-1#diff
            noor91zahara Noor Zahara (Inactive) made changes -
            Assignee Noor Zahara [ noor91zahara ]
            noor91zahara Noor Zahara (Inactive) made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Assignee Shamika Gajanan Kulkarni [ shamika ]
            Hide
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment -

            Reviewed this ticket. The functionality is working fine.
            Followed the following steps to test:
            1. Selected from IGB home screen and loaded a graph.
            2. Selected Track Operations from the right click menu.
            3. Entered an invalid value for operations listed like Add, Subtract, Divide, Inverse log, etc and observed the error message popup.
            4. Entered a valid value for those operations and observed a new track being loaded each time.
            Please submit a PR for the same.

            Show
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment - Reviewed this ticket. The functionality is working fine. Followed the following steps to test: 1. Selected from IGB home screen and loaded a graph. 2. Selected Track Operations from the right click menu. 3. Entered an invalid value for operations listed like Add, Subtract, Divide, Inverse log, etc and observed the error message popup. 4. Entered a valid value for those operations and observed a new track being loaded each time. Please submit a PR for the same.
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Assignee Shamika Gajanan Kulkarni [ shamika ] Noor Zahara [ noor91zahara ]
            Show
            noor91zahara Noor Zahara (Inactive) added a comment - PR submitted - https://bitbucket.org/lorainelab/integrated-genome-browser/pull-requests/829/igbf-649-fix-the-bug/diff
            noor91zahara Noor Zahara (Inactive) made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            noor91zahara Noor Zahara (Inactive) made changes -
            Assignee Noor Zahara [ noor91zahara ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Merged. Master branch installers built and ready for testing.

            Show
            ann.loraine Ann Loraine added a comment - Merged. Master branch installers built and ready for testing.
            ann.loraine Ann Loraine made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Assignee Shamika Gajanan Kulkarni [ shamika ]
            Hide
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment -

            It is working as expected. Moving to closed.

            Show
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment - It is working as expected. Moving to closed.
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Resolution Done [ 10000 ]
            Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Assignee Shamika Gajanan Kulkarni [ shamika ] Noor Zahara [ noor91zahara ]
            nfreese Nowlan Freese made changes -
            Link This issue relates to IGBF-650 [ IGBF-650 ]
            nfreese Nowlan Freese made changes -
            Fix Version/s 9.1.6 Major Release [ 10604 ]

              People

              • Assignee:
                noor91zahara Noor Zahara (Inactive)
                Reporter:
                mason Mason Meyer (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: