Details
-
Type: Task
-
Status: Closed (View Workflow)
-
Priority: Blocker
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Story Points:2
-
Epic Link:
-
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
- relates to
-
IGBF-2950 Investigate how to make the site more robust to back end CyVerse errors
- Closed
Activity
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
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.