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

Show something when user visits pending App repository in browser

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:

      Description

      Admin users when testing Apps can add a "pending apps" plugin repository URL to IGB.

      That URL is:

      https://dev-appstore-5.bioviz.org/obr/pending_releases

      This can be very useful because it allows an admin user to test a new App very easily. They can just add the repository to IGB and try out the new App.

      However, currently if a user visits the above URL in their browser, they will get a "page not found" (404) error.

      This is because we currently only support an endpoint for the "repository.xml" file, accessed via a URL that looks like

      https://dev-appstore-5.bioviz.org/obr/pending_releases/repository.xml

      We should implement a new page/path that will show the user something useful if they visit the repository URL:

      https://dev-appstore-5.bioviz.org/obr/pending_releases

      For this task, implement a "stub page" that contains instructions on how to add the App Store to IGB. See related issue for text.

      Also, include a link to the repository.xml file in the page.

      Note that this task is mainly to create the page. A subsequent Jira user story will cover more in-depth design.

        Attachments

          Issue Links

            Activity

            Hide
            rpatil14 Riddhi Jagdish Patil (Inactive) added a comment - - edited

            Issue:
            To provide repository.xml url to the user when user visits respository url in browser

            Description:
            When a user visits obr for pending releases, user receives Page Not Found exception as the link does not contain repository.xml path. This ticket will redirect user to HTML page which will contain the repository.xml url which can be clicked to open repository.xml

            Solution:
            When a user visits repository url from browser for the pending releases, redirect user to a page with the link for repository.xml page

            File changed:
            Changes are present in branch https://bitbucket.org/rpatil14/appstore_riddhi/branch/IGBF-1989#diff
            obr/templates/redirect.html
            obr/urls.py

            Testing:
            Use below link for testing
            https://dev-appstore-6.bioviz.org/obr/pending_releases/

            Show
            rpatil14 Riddhi Jagdish Patil (Inactive) added a comment - - edited Issue : To provide repository.xml url to the user when user visits respository url in browser Description : When a user visits obr for pending releases, user receives Page Not Found exception as the link does not contain repository.xml path. This ticket will redirect user to HTML page which will contain the repository.xml url which can be clicked to open repository.xml Solution : When a user visits repository url from browser for the pending releases, redirect user to a page with the link for repository.xml page File changed : Changes are present in branch https://bitbucket.org/rpatil14/appstore_riddhi/branch/IGBF-1989#diff obr/templates/redirect.html obr/urls.py Testing : Use below link for testing https://dev-appstore-6.bioviz.org/obr/pending_releases/
            Hide
            ann.loraine Ann Loraine added a comment -

            Code and functionality are both fine! For next step:

            • please rebase on master branch (there have been a few merges since branch was made)
            • submit PR

            Note for testers: Just in case there is any confusion: by "redirect" we mean: "provide a link to repository.xml" not "URL redirection" as in https://en.wikipedia.org/wiki/URL_redirection

            Show
            ann.loraine Ann Loraine added a comment - Code and functionality are both fine! For next step: please rebase on master branch (there have been a few merges since branch was made) submit PR Note for testers : Just in case there is any confusion: by "redirect" we mean: "provide a link to repository.xml" not "URL redirection" as in https://en.wikipedia.org/wiki/URL_redirection
            Show
            rpatil14 Riddhi Jagdish Patil (Inactive) added a comment - - edited Submitted new Pull request : https://bitbucket.org/lorainelab/appstore/pull-requests/101/igbf-1989-add-redirection-page-when-user/diff
            Hide
            ann.loraine Ann Loraine added a comment - - edited

            URL for repository now shows a page with link to XML.

            repository URL:
            https://dev-appstore-5.bioviz.org/obr/pending_releases
            XML:
            https://dev-appstore-5.bioviz.org/obr/pending_releases/repository.xml

            Moving to Closed.

            Show
            ann.loraine Ann Loraine added a comment - - edited URL for repository now shows a page with link to XML. repository URL: https://dev-appstore-5.bioviz.org/obr/pending_releases XML: https://dev-appstore-5.bioviz.org/obr/pending_releases/repository.xml Moving to Closed.

              People

              • Assignee:
                rpatil14 Riddhi Jagdish Patil (Inactive)
                Reporter:
                ann.loraine Ann Loraine
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: