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

Create 'broken robot' webpage to handle errors

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Fall 5 2021 Oct 11 - Oct 22, Fall 6 2021 Oct 25 - Nov 5, Fall 7 2021 Nov 8 - Nov 24, Fall 8 2021 Nov 29 - Dec 10

      Description

      Create a page that users are redirected to if Terrain requests for root directory or file directory fails.

      For Webhooks, refer to
      https://cyverse-de.github.io/CHANGELOG.html
      https://status.cyverse.org/

        Attachments

        1. error.png
          error.png
          128 kB
        2. error - contd.png
          error - contd.png
          112 kB
        3. node, npm, yarn.png
          node, npm, yarn.png
          13 kB
        4. screenshot-1.png
          screenshot-1.png
          2 kB

          Issue Links

            Activity

            Hide
            omarne Omkar Marne (Inactive) added a comment - - edited

            I had to setup the BVC local environment before testing part b. I followed https://docs.google.com/document/d/1_-TZr2UJBs9vbqR2wfRifCkjgp-wi6KSXtSX5ozaiYE/edit from the shared drive. The document was for Ubuntu Linux. I followed the instructions for Windows by changing the commands.

            Testing results:

            Performed all the steps mentioned above. After changing the url setting in the ajax call to http://localhost:3000/get503Error and running the BVC server, the localhost:8000 took to the BVC homepage and redirected to broken robot page with error code 503.
            After changing the localhost value to localhost:3000, locahost:8000 took to the BVC homepage and redirected to error code 504.

            Closing the ticket.

            Show
            omarne Omkar Marne (Inactive) added a comment - - edited I had to setup the BVC local environment before testing part b. I followed https://docs.google.com/document/d/1_-TZr2UJBs9vbqR2wfRifCkjgp-wi6KSXtSX5ozaiYE/edit from the shared drive. The document was for Ubuntu Linux. I followed the instructions for Windows by changing the commands. Testing results: Performed all the steps mentioned above. After changing the url setting in the ajax call to http://localhost:3000/get503Error and running the BVC server, the localhost:8000 took to the BVC homepage and redirected to broken robot page with error code 503. After changing the localhost value to localhost:3000, locahost:8000 took to the BVC homepage and redirected to error code 504. Closing the ticket.
            Hide
            karthik Karthik Raveendran added a comment -

            Omkar Marne I have made a few changes in the repo. Please clone the repo again and follow the steps in README file.

            Show
            karthik Karthik Raveendran added a comment - Omkar Marne I have made a few changes in the repo. Please clone the repo again and follow the steps in README file.
            Hide
            omarne Omkar Marne (Inactive) added a comment - - edited

            I followed the steps from the Readme.md file from IGBF-3016. When I started the yarn server after installing node.js, npm and yarn, I got an error. Please see attached screenshot.

            Readme.md - https://bitbucket.org/KarthikRavee91/bvc_error_simulator_server/src/master/

            Karthik Raveendran Please check.

            Show
            omarne Omkar Marne (Inactive) added a comment - - edited I followed the steps from the Readme.md file from IGBF-3016 . When I started the yarn server after installing node.js, npm and yarn, I got an error. Please see attached screenshot. Readme.md - https://bitbucket.org/KarthikRavee91/bvc_error_simulator_server/src/master/ Karthik Raveendran Please check.
            Show
            nfreese Nowlan Freese added a comment - Merged: https://bitbucket.org/nfreese/bioviz-connect/pull-requests/266/igbf-2982-fix-broken-page-code-structure?link_source=email
            Hide
            karthik Karthik Raveendran added a comment -

            Testing Protocol:
            In order to test this issue, a local error simulator server needs to be created and a local BioViz Connect repo clone needs to be setup as well.

            a) To setup and run a local error simulator server please refer to IGBF-3016.
            1- to check if the server is running correctly, in a browser, go to http://localhost:3000/
            2- if a "Congrats!" page appears then its working correctly

            b) Once the server is running successfully, in the BVC codebase (assuming you have a working BVC local environment):
            1- Open cyverse.js from \static\bioviz_connect\js
            2- Go to the function getUserData()
            3- Change the value of url setting in the ajax call to http://localhost:3000/get503Error
            4- Run the local BVC environment server
            5- In a browser, go to http://localhost:8000/. This should first take you to BVC homepage and then redirect you to the broken page with Error Code 503
            6- In the url setting , change the value to http://localhost:3000/
            7- In a browser, go to http://localhost:8000/. This should first take you to BVC homepage and then redirect you to the broken page with Error Code 404

            The errors are managed by the handleError() function in the error setting of the ajax call in getUserData() function. For further thorough testing, this handleError() function call can be copied and pasted in initialiseUser() ajax error setting and repeat the process from step 3

            Show
            karthik Karthik Raveendran added a comment - Testing Protocol: In order to test this issue, a local error simulator server needs to be created and a local BioViz Connect repo clone needs to be setup as well. a) To setup and run a local error simulator server please refer to IGBF-3016 . 1- to check if the server is running correctly, in a browser, go to http://localhost:3000/ 2- if a "Congrats!" page appears then its working correctly b) Once the server is running successfully, in the BVC codebase (assuming you have a working BVC local environment): 1- Open cyverse.js from \static\bioviz_connect\js 2- Go to the function getUserData() 3- Change the value of url setting in the ajax call to http://localhost:3000/get503Error 4- Run the local BVC environment server 5- In a browser, go to http://localhost:8000/ . This should first take you to BVC homepage and then redirect you to the broken page with Error Code 503 6- In the url setting , change the value to http://localhost:3000/ 7- In a browser, go to http://localhost:8000/ . This should first take you to BVC homepage and then redirect you to the broken page with Error Code 404 The errors are managed by the handleError() function in the error setting of the ajax call in getUserData() function. For further thorough testing, this handleError() function call can be copied and pasted in initialiseUser() ajax error setting and repeat the process from step 3

              People

              • Assignee:
                omarne Omkar Marne (Inactive)
                Reporter:
                karthik Karthik Raveendran
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: