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

Fix: Sometimes green View in IGB buttons disappear

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Fall 3 2021 Sep 13 - Sep 24, Fall 4 2021 Sep 27 - Oct 8, Fall 5 2021 Oct 11 - Oct 22

      Description

      Sometimes when a user logs in and visits the site after an absence, the green buttons labeled "View in IGB" no longer appear in the Web browser.

        Attachments

          Issue Links

            Activity

            ann.loraine Ann Loraine created issue -
            ann.loraine Ann Loraine made changes -
            Field Original Value New Value
            Epic Link IGBF-2376 [ 18533 ]
            ann.loraine Ann Loraine made changes -
            Link This issue relates to IGBF-2950 [ IGBF-2950 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            karthik Karthik Raveendran made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            karthik Karthik Raveendran made changes -
            Assignee Karthik Raveendran [ karthik ]
            karthik Karthik Raveendran made changes -
            Status In Progress [ 3 ] To-Do [ 10305 ]
            ann.loraine Ann Loraine made changes -
            Sprint Fall 3 2021 Sep 13 - Sep 24 [ 129 ] Fall 3 2021 Sep 13 - Sep 24, Fall 4 2021 Sep 27 - Oct 8 [ 129, 130 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            karthik Karthik Raveendran made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            karthik Karthik Raveendran made changes -
            Status In Progress [ 3 ] To-Do [ 10305 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            karthik Karthik Raveendran made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            Hide
            karthik Karthik Raveendran added a comment - - edited

            I was able to recreate the "View in IGB button disappears" issue by calling the SyncAppDataToBioviz endpoint without the accesstoken parameter (https://bvctest6.bioviz.org/SyncAppDataToBioViz/).
            Despite getting no data from this call, the database gets updated and all tables are set to empty which is causing this issue.

            Function DeleteAppData is called even before the API to get the app data is requested.
            Code track:

            • SyncAppDataToBioViz(views.py) -> getLatestApps(ManageAppDetails.py) -> DeleteAppData(ManageAppDetails.py)

            Solution: Need to add a check before the deleting all tables and add an empty set

            Show
            karthik Karthik Raveendran added a comment - - edited I was able to recreate the "View in IGB button disappears" issue by calling the SyncAppDataToBioviz endpoint without the accesstoken parameter ( https://bvctest6.bioviz.org/SyncAppDataToBioViz/ ). Despite getting no data from this call, the database gets updated and all tables are set to empty which is causing this issue. Function DeleteAppData is called even before the API to get the app data is requested. Code track: SyncAppDataToBioViz(views.py) -> getLatestApps(ManageAppDetails.py) -> DeleteAppData(ManageAppDetails.py) Solution: Need to add a check before the deleting all tables and add an empty set
            Hide
            karthik Karthik Raveendran added a comment - - edited

            The challenge is that when no data is returned the response is still 200 OK. It seems like we can only go by the length of the json returned or if any json is returned at all which may not be ideal.

            Show
            karthik Karthik Raveendran added a comment - - edited The challenge is that when no data is returned the response is still 200 OK. It seems like we can only go by the length of the json returned or if any json is returned at all which may not be ideal.
            Hide
            karthik Karthik Raveendran added a comment - - edited

            Submitted PR

            Added a try-except to catch NoneType errors that occur when accesstoken parameter is not present or if accesstoken is not active

            Show
            karthik Karthik Raveendran added a comment - - edited Submitted PR Added a try-except to catch NoneType errors that occur when accesstoken parameter is not present or if accesstoken is not active
            karthik Karthik Raveendran made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            karthik Karthik Raveendran made changes -
            Assignee Karthik Raveendran [ karthik ]
            karthik Karthik Raveendran made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            karthik Karthik Raveendran made changes -
            Status First Level Review in Progress [ 10301 ] Needs 1st Level Review [ 10005 ]
            karthik Karthik Raveendran made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            karthik Karthik Raveendran made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            karthik Karthik Raveendran made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            ann.loraine Ann Loraine made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            Hide
            ann.loraine Ann Loraine added a comment - - edited

            KR & AL looked at code together and KR will make some modifications, focusing on improving exception handling and reporting more useful information in the logs and to the user via the web browser. Please see comment on the PR.

            Show
            ann.loraine Ann Loraine added a comment - - edited KR & AL looked at code together and KR will make some modifications, focusing on improving exception handling and reporting more useful information in the logs and to the user via the web browser. Please see comment on the PR.
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] To-Do [ 10305 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ]
            karthik Karthik Raveendran made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            karthik Karthik Raveendran made changes -
            Status In Progress [ 3 ] To-Do [ 10305 ]
            karthik Karthik Raveendran made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            karthik Karthik Raveendran made changes -
            Assignee Karthik Raveendran [ karthik ]
            Hide
            karthik Karthik Raveendran added a comment - - edited

            Pushed changes to repo. Commit in branch IGBF-2951

            Changes in commit:
            1) TypeError is handled in case no accesstoken is passed separately from other exceptions.
            2) Authorization error is handled if the accesstoken is expired.
            3) All other exceptions will be returned.

            Moving to First Level Review

            Show
            karthik Karthik Raveendran added a comment - - edited Pushed changes to repo. Commit in branch IGBF-2951 Changes in commit: 1) TypeError is handled in case no accesstoken is passed separately from other exceptions. 2) Authorization error is handled if the accesstoken is expired. 3) All other exceptions will be returned. Moving to First Level Review
            karthik Karthik Raveendran made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            karthik Karthik Raveendran made changes -
            Assignee Karthik Raveendran [ karthik ]
            Hide
            karthik Karthik Raveendran added a comment - - edited

            Testing protocol:
            If the branch is deployed in, let's say, bvctest6 (git pull origin IGBF-2951), then in a browser try running urls:
            a) https://bvctest6.bioviz.org/ - to check if the View in IGB buttons are showing)
            b) https://bvctest6.bioviz.org/SyncAppDataToBioViz/ - should return a TypeError
            c) https://bvctest6.bioviz.org/ - to check if the View in IGB buttons are still showing
            d) https://bvctest6.bioviz.org/SyncAppDataToBioViz/?accesstoken=totalgarbage - should return a Auth error
            e) https://bvctest6.bioviz.org/ - to check if the View in IGB buttons are still showing

            Show
            karthik Karthik Raveendran added a comment - - edited Testing protocol: If the branch is deployed in, let's say, bvctest6 (git pull origin IGBF-2951 ), then in a browser try running urls: a) https://bvctest6.bioviz.org/ - to check if the View in IGB buttons are showing) b) https://bvctest6.bioviz.org/SyncAppDataToBioViz/ - should return a TypeError c) https://bvctest6.bioviz.org/ - to check if the View in IGB buttons are still showing d) https://bvctest6.bioviz.org/SyncAppDataToBioViz/?accesstoken=totalgarbage - should return a Auth error e) https://bvctest6.bioviz.org/ - to check if the View in IGB buttons are still showing
            ann.loraine Ann Loraine made changes -
            Sprint Fall 3 2021 Sep 13 - Sep 24, Fall 4 2021 Sep 27 - Oct 8 [ 129, 130 ] Fall 3 2021 Sep 13 - Sep 24, Fall 4 2021 Sep 27 - Oct 8, Fall 5 2021 Oct 11 - Oct 22 [ 129, 130, 131 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            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 ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Thank you for making the changes. Please submit PR.

            Show
            ann.loraine Ann Loraine added a comment - Thank you for making the changes. Please submit PR.
            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 ] Karthik Raveendran [ karthik ]
            nfreese Nowlan Freese made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            nfreese Nowlan Freese made changes -
            Assignee Karthik Raveendran [ karthik ]
            Hide
            karthik Karthik Raveendran added a comment -

            PR Submitted

            Show
            karthik Karthik Raveendran added a comment - PR Submitted
            nfreese Nowlan Freese made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            Show
            nfreese Nowlan Freese added a comment - Merged https://bitbucket.org/nfreese/bioviz-connect/pull-requests/260/igbf-2951-handle-and-fix?link_source=email
            nfreese Nowlan Freese made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            omarne Omkar Marne (Inactive) made changes -
            Assignee Omkar Marne [ omarne ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Can test new functionality using testing host: https://bvctest6.bioviz.org
            For background, testers can read latest draft of the bioviz-connect paper: https://www.biorxiv.org/content/10.1101/2020.05.15.098533v4

            Show
            ann.loraine Ann Loraine added a comment - Can test new functionality using testing host: https://bvctest6.bioviz.org For background, testers can read latest draft of the bioviz-connect paper: https://www.biorxiv.org/content/10.1101/2020.05.15.098533v4
            Hide
            omarne Omkar Marne (Inactive) added a comment -

            Test Observations:

            I tried running below bcxtest6 URL'S but all are unreachable.

            I am thinking its a server issue.
            Karthik Raveendran Please check.

            Show
            omarne Omkar Marne (Inactive) added a comment - Test Observations: I tried running below bcxtest6 URL'S but all are unreachable. https://bvctest6.bioviz.org/ - to check if the View in IGB buttons are showing) https://bvctest6.bioviz.org/SyncAppDataToBioViz/ - should return a TypeError https://bvctest6.bioviz.org/ - to check if the View in IGB buttons are still showing https://bvctest6.bioviz.org/SyncAppDataToBioViz/?accesstoken=totalgarbage - should return a Auth error https://bvctest6.bioviz.org/ - to check if the View in IGB buttons are still showing I am thinking its a server issue. Karthik Raveendran Please check.
            omarne Omkar Marne (Inactive) made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            Hide
            ann.loraine Ann Loraine added a comment -

            The test server needed to be "turned on." All our test servers and other development servers are shut down at night and need to be turned on manually using the AWS interface.

            Show
            ann.loraine Ann Loraine added a comment - The test server needed to be "turned on." All our test servers and other development servers are shut down at night and need to be turned on manually using the AWS interface.
            omarne Omkar Marne (Inactive) made changes -
            Attachment View in IGB greeb button.png [ 16809 ]
            omarne Omkar Marne (Inactive) made changes -
            Attachment type error .png [ 16810 ]
            omarne Omkar Marne (Inactive) made changes -
            Attachment Auth error..png [ 16811 ]
            Hide
            omarne Omkar Marne (Inactive) added a comment -

            Test results:

            I am getting expected output as per the test protocol after running below URL's

            https://bvctest6.bioviz.org/ - IGB buttons are showing. Please see "View in IGB green button" screenshot.
            https://bvctest6.bioviz.org/SyncAppDataToBioViz/ - Please see "TypeError" screenshot.
            https://bvctest6.bioviz.org/ - IGB buttons are still showing. Please see "View in IGB green button" screenshot.
            https://bvctest6.bioviz.org/SyncAppDataToBioViz/?accesstoken=totalgarbage - Please see 'Auth error' screenshot.
            https://bvctest6.bioviz.org/ - IGB buttons are still showing. Please see "View in IGB green button" screenshot.

            Closing the ticket.

            Show
            omarne Omkar Marne (Inactive) added a comment - Test results: I am getting expected output as per the test protocol after running below URL's https://bvctest6.bioviz.org/ - IGB buttons are showing. Please see "View in IGB green button" screenshot. https://bvctest6.bioviz.org/SyncAppDataToBioViz/ - Please see "TypeError" screenshot. https://bvctest6.bioviz.org/ - IGB buttons are still showing. Please see "View in IGB green button" screenshot. https://bvctest6.bioviz.org/SyncAppDataToBioViz/?accesstoken=totalgarbage - Please see 'Auth error' screenshot. https://bvctest6.bioviz.org/ - IGB buttons are still showing. Please see "View in IGB green button" screenshot. Closing the ticket.
            omarne Omkar Marne (Inactive) made changes -
            Resolution Done [ 10000 ]
            Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]
            omarne Omkar Marne (Inactive) made changes -
            Assignee Omkar Marne [ omarne ] Karthik Raveendran [ karthik ]

              People

              • Assignee:
                karthik Karthik Raveendran
                Reporter:
                ann.loraine Ann Loraine
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: