Details

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

      Description

      See https://jira.transvar.org/browse/REL-43

      While testing this, I came across another issue of versions. Please view the screenshots for reference to understand the steps I followed.
      1) I first uploaded the version 9.1.0 and installed it on IGB.
      2) Then I released the version 9.1.2 and was able to upgrade the app on IGB.
      3) Then I released the version 10.1.0. Here, the current version displayed on Appstore - Release History was not displayed as 10.1.0 and was still 9.1.2. Also, the highest version 10.1.0 was displayed in the bottom of the list in Release History, whereas actually it should have been at top. Also, the app version on the right below 'Get Latest IGB' button was 9.1.2 , but should have been 10.1.0.
      4) Then I released the version 9.2.0. This version was displayed as the current version on Appstore - Release History.
      Also, after upgrading the app on IGB, the highest version 10.1.0 was installed which I feel is right.

      Use these links for testing:
      https://bitbucket.org/skulka2710/geometric-mean-operator-shamika/src/master/
      https://bitbucket.org/pawanbole/23andme-snp-converter/src/master/

        Attachments

          Issue Links

            Activity

            shamika Shamika Gajanan Kulkarni (Inactive) created issue -
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Field Original Value New Value
            Epic Link IGBF-1388 [ 17463 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Link This issue relates to REL-43 [ REL-43 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Assignee Sameer Shanbhag [ sameer ]
            sameer Sameer Shanbhag (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            Show
            sameer Sameer Shanbhag (Inactive) added a comment - Pull Request Submitted: https://bitbucket.org/lorainelab/appstore/pull-requests/184/igbf-2171/diff
            sameer Sameer Shanbhag (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 -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine 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 ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            ann.loraine Ann Loraine made changes -
            Assignee Sameer Shanbhag [ sameer ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Merged but not yet deployed to dev-appstore-2

            Show
            ann.loraine Ann Loraine added a comment - Merged but not yet deployed to dev-appstore-2
            sameer Sameer Shanbhag (Inactive) made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            sameer Sameer Shanbhag (Inactive) made changes -
            Status Post-merge Testing In Progress [ 10003 ] To-Do [ 10305 ]
            sameer Sameer Shanbhag (Inactive) made changes -
            Assignee Sameer Shanbhag [ sameer ]
            sameer Sameer Shanbhag (Inactive) made changes -
            Status To-Do [ 10305 ] Pull Request Submitted [ 10101 ]
            Hide
            sameer Sameer Shanbhag (Inactive) added a comment - - edited

            Pull Request Submitted:

            https://bitbucket.org/lorainelab/appstore/pull-requests/186/igbf-2171/diff

            Casting to INTEGER is not supported by MSQL so changing INTEGER to UNSIGNED is required.

            Show
            sameer Sameer Shanbhag (Inactive) added a comment - - edited Pull Request Submitted: https://bitbucket.org/lorainelab/appstore/pull-requests/186/igbf-2171/diff Casting to INTEGER is not supported by MSQL so changing INTEGER to UNSIGNED is required.
            Hide
            ann.loraine Ann Loraine added a comment -

            Sameer Shanbhag - for posterity, please explain the bug and how this fixes it.

            Show
            ann.loraine Ann Loraine added a comment - Sameer Shanbhag - for posterity, please explain the bug and how this fixes it.
            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 ] To-Do [ 10305 ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Also, please check PR comment – looks like there is a print statement that needs to be removed.

            Show
            ann.loraine Ann Loraine added a comment - Also, please check PR comment – looks like there is a print statement that needs to be removed.
            Hide
            sameer Sameer Shanbhag (Inactive) added a comment -

            The Bug was related to Version Comparison,

            By Default Orderby clause in Django does not support String Matching as python does as
            E.g.
            For python "9.1.2" > "10.2.0" will return False and "10.0.0" > "9.0.0" will return True
            But when Django tries to do OrderBy Query, this query is created and ran on SQL Server (SQLite for local and MySQL for AWS) the OrderBy Clasue does a basic SQL Query which does not order it properly (The Bug we faced)

            Solution Proposed:
            While Querying in Django, it allows us to write our own custom Query in Extra function. We just replace the "." to convert the String to a Number, then we convert (cast) this numerical string to Integer which can be sorted using OrderBy
            Problem with the earlier solution: Cast to INTEGER is supported only by SQLite which is why that worked on local but not on AWS MySQL
            The right way to do it (Supported by different types of Databases): Cast it to UNSIGNED (Integer), UNSIGNED is nothing but all the positive integers.

            P.S. I'll remove the print statement, and update the Pull Request.

            Show
            sameer Sameer Shanbhag (Inactive) added a comment - The Bug was related to Version Comparison, By Default Orderby clause in Django does not support String Matching as python does as E.g. For python "9.1.2" > "10.2.0" will return False and "10.0.0" > "9.0.0" will return True But when Django tries to do OrderBy Query, this query is created and ran on SQL Server (SQLite for local and MySQL for AWS) the OrderBy Clasue does a basic SQL Query which does not order it properly (The Bug we faced) Solution Proposed: While Querying in Django, it allows us to write our own custom Query in Extra function. We just replace the "." to convert the String to a Number, then we convert (cast) this numerical string to Integer which can be sorted using OrderBy Problem with the earlier solution: Cast to INTEGER is supported only by SQLite which is why that worked on local but not on AWS MySQL The right way to do it (Supported by different types of Databases): Cast it to UNSIGNED (Integer), UNSIGNED is nothing but all the positive integers. P.S. I'll remove the print statement, and update the Pull Request.
            Show
            sameer Sameer Shanbhag (Inactive) added a comment - Pull Request Updated: https://bitbucket.org/lorainelab/appstore/pull-requests/186/igbf-2171/diff
            sameer Sameer Shanbhag (Inactive) made changes -
            Status To-Do [ 10305 ] Pull Request Submitted [ 10101 ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Thanks Sameer Shanbhag

            Please create a new ticket to create test cases for the new function and investigate how to include testing in our workflow, e.g, instructions on how developers can test their code before submitting it for review or PR.

            Note: I believe this would be our first actual use of testing in App Store – in our code or in Cytoscape project's code. So this new ticket should be at least 1 story point, or one full day of effort. It might not take that long, but developer who does it can adjust accordingly.

            Show
            ann.loraine Ann Loraine added a comment - Thanks Sameer Shanbhag Please create a new ticket to create test cases for the new function and investigate how to include testing in our workflow, e.g, instructions on how developers can test their code before submitting it for review or PR. Note: I believe this would be our first actual use of testing in App Store – in our code or in Cytoscape project's code. So this new ticket should be at least 1 story point, or one full day of effort. It might not take that long, but developer who does it can adjust accordingly.
            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 ] To-Do [ 10305 ]
            sameer Sameer Shanbhag (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            Hide
            sameer Sameer Shanbhag (Inactive) added a comment - - edited

            Hi, Professor [~aloraine],

            I will create another ticket for Unit Test Cases. As of now to test this Issue Testers can follow the steps below:

            1. Upload Version 1 of App 1
            2. Upload Version 2 of App 1
            3. Check the Release History on Appstore. It should show Version 2 as the current version
            4. Upload Version 4 of App 1
            5. Check the Release History on Appstore. It should show Version 4 as the current version
            6. Upload Version 3 of App 1
            7. Check the Release History on Appstore. It should still show Version 4 as the current version

            Show
            sameer Sameer Shanbhag (Inactive) added a comment - - edited Hi, Professor [~aloraine] , I will create another ticket for Unit Test Cases. As of now to test this Issue Testers can follow the steps below: 1. Upload Version 1 of App 1 2. Upload Version 2 of App 1 3. Check the Release History on Appstore. It should show Version 2 as the current version 4. Upload Version 4 of App 1 5. Check the Release History on Appstore. It should show Version 4 as the current version 6. Upload Version 3 of App 1 7. Check the Release History on Appstore. It should still show Version 4 as the current version
            sameer Sameer Shanbhag (Inactive) made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            sameer Sameer Shanbhag (Inactive) made changes -
            Assignee Sameer Shanbhag [ sameer ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Moving forward to Ready for Testing as changes are merged.
            Deployed to https://dev-appstore-2.bioviz.org and ready for testing.

            Show
            ann.loraine Ann Loraine added a comment - Moving forward to Ready for Testing as changes are merged. Deployed to https://dev-appstore-2.bioviz.org and ready for testing.
            ann.loraine Ann Loraine made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            ann.loraine Ann Loraine made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine 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 ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            pooja.nikhare Pooja Nikhare (Inactive) made changes -
            Assignee Pooja Nikhare [ pooja.nikhare ]
            pooja.nikhare Pooja Nikhare (Inactive) made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            Hide
            pooja.nikhare Pooja Nikhare (Inactive) added a comment -

            Tested on app-store-2 according to the steps given above, with following versions for merge annotation App
            version 1 : 9.0.1 , version 2 : 9.1.1 , version 3 : 9.2.0 , version 4 : 9.3.1
            1. Uploaded version 1 , Functionality was working fine
            2. Uploaded version 2 , Functionality was working fine
            3. Uploaded version 4 , "Get Latest IGB" button did not change to "Upgrade" after refreshing IGB.
            4. Uploaded version 3 , Upgrade option was shown in IGB to upgrade to version 4.
            Release history was shown correctly .

            Observation : Issue arises when there is missing version with the minor changes . i.e when uploading 9.3.0 after 9.1.0
            If this scenario will never arise in real scenario, I can move this ticket to complete .
            Please review : [~aloraine] , Sameer Shanbhag

            Show
            pooja.nikhare Pooja Nikhare (Inactive) added a comment - Tested on app-store-2 according to the steps given above, with following versions for merge annotation App version 1 : 9.0.1 , version 2 : 9.1.1 , version 3 : 9.2.0 , version 4 : 9.3.1 1. Uploaded version 1 , Functionality was working fine 2. Uploaded version 2 , Functionality was working fine 3. Uploaded version 4 , "Get Latest IGB" button did not change to "Upgrade" after refreshing IGB. 4. Uploaded version 3 , Upgrade option was shown in IGB to upgrade to version 4. Release history was shown correctly . Observation : Issue arises when there is missing version with the minor changes . i.e when uploading 9.3.0 after 9.1.0 If this scenario will never arise in real scenario, I can move this ticket to complete . Please review : [~aloraine] , Sameer Shanbhag
            Hide
            ann.loraine Ann Loraine added a comment -

            Thank you Pooja Nikhare for noticing this.

            Actually, this could very well occur in real life if a developer decides to skip a minor version.
            Please add a new JIRA ticket to the "Build IGB App Store" epic for us to fix this.

            Show
            ann.loraine Ann Loraine added a comment - Thank you Pooja Nikhare for noticing this. Actually, this could very well occur in real life if a developer decides to skip a minor version. Please add a new JIRA ticket to the "Build IGB App Store" epic for us to fix this.
            pooja.nikhare Pooja Nikhare (Inactive) made changes -
            Link This issue relates to IGBF-2192 [ IGBF-2192 ]
            Hide
            pooja.nikhare Pooja Nikhare (Inactive) added a comment -

            Raised a new JIRA ticket IGBF-2192 .

            Show
            pooja.nikhare Pooja Nikhare (Inactive) added a comment - Raised a new JIRA ticket IGBF-2192 .
            pooja.nikhare Pooja Nikhare (Inactive) made changes -
            Resolution Done [ 10000 ]
            Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Description See https://jira.transvar.org/browse/REL-43

            While testing this, I came across another issue of versions. Please view the screenshots for reference to understand the steps I followed.
            1) I first uploaded the version 9.1.0 and installed it on IGB.
            2) Then I released the version 9.1.2 and was able to upgrade the app on IGB.
            3) Then I released the version 10.1.0. Here, the current version was not displayed as 10.1.0 and was still 9.1.2. Also, the highest version 10.1.0 was displayed in the bottom of the list. Also, the app version on the right was 9.1.2 , but should have been 10.1.0.
            4) Then I releases the version 9.2.0. This version was displayed as the current version on Appstore.
            Also, after upgrading the app on IGB, the highest version 10.1.0 was installed which I feel is right.

            Use these links for testing:
            https://bitbucket.org/skulka2710/geometric-mean-operator-shamika/src/master/
            https://bitbucket.org/pawanbole/23andme-snp-converter/src/master/
            See https://jira.transvar.org/browse/REL-43

            While testing this, I came across another issue of versions. Please view the screenshots for reference to understand the steps I followed.
            1) I first uploaded the version 9.1.0 and installed it on IGB.
            2) Then I released the version 9.1.2 and was able to upgrade the app on IGB.
            3) Then I released the version 10.1.0. Here, the current version displayed on Appstore - Release History was not displayed as 10.1.0 and was still 9.1.2. Also, the highest version 10.1.0 was displayed in the bottom of the list in Release History, whereas actually it should have been at top. Also, the app version on the right below 'Get Latest IGB' button was 9.1.2 , but should have been 10.1.0.
            4) Then I released the version 9.2.0. This version was displayed as the current version on Appstore - Release History.
            Also, after upgrading the app on IGB, the highest version 10.1.0 was installed which I feel is right.

            Use these links for testing:
            https://bitbucket.org/skulka2710/geometric-mean-operator-shamika/src/master/
            https://bitbucket.org/pawanbole/23andme-snp-converter/src/master/

              People

              • Assignee:
                pooja.nikhare Pooja Nikhare (Inactive)
                Reporter:
                shamika Shamika Gajanan Kulkarni (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: