Details
-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Sprint:Fall 4 : 30 Sep to 11 Oct, Fall 5 : 14 Oct to 25 Oct, Fall 6 : 28 Oct to 8 Nov
Description
Steps to re-produce the issue:
1) Submit app say "super-simple-igb-app" of version "0.0.1"
2) Submit app "super-simple-igb-app" of version "0.0.3"
Now pending apps section will have two entries for "super-simple-igb-app-0.0.1" and "super-simple-igb-app-0.0.3".
Ideal scenario - Both the versions of the apps should be released when accepted in pending apps section
Current behavior - If any one version of app is selected, the other version of app cannot be released and the spinner keeps on rotating
Cause of Issue which needs further debugging - Database has primary key as Bundle_SymbolicName. Since both the apps have same symbolicName duplicate entries are not allowed in database.
Probable solution - To use both Bundle_SymbolicName and Bundle_Version as primary key for App table.
Attachments
Issue Links
Activity
Field | Original Value | New Value |
---|---|---|
Epic Link | IGBF-1388 [ 17463 ] |
Assignee | Riddhi Jagdish Patil [ rpatil14 ] |
Status | Open [ 1 ] | To-Do [ 10305 ] |
Status | To-Do [ 10305 ] | In Progress [ 3 ] |
Description |
Steps to re-produce the issue:
1) Submit app say "super-simple-igb-app" of version "0.0.3" 2) Submit app "super-simple-igb-app" of version "0.0.3" Now pending apps section will have two entries for "super-simple-igb-app-0.0.3" and "super-simple-igb-app-0.0.1". Ideal scenario - Both the versions of the apps should be released when accepted in pending apps section Current behavior - If any one version of app is selected, the other version of app cannot be released and the spinner keeps on rotating Cause of Issue which needs further debugging - Database has primary key as Bundle_SymbolicName. Since both the apps have same symbolicName duplicate entries are not allowed in database. Probable solution - To use both Bundle_SymbolicName and Bundle_Version as primary key for App table. |
Steps to re-produce the issue:
1) Submit app say "super-simple-igb-app" of version "0.0.1" 2) Submit app "super-simple-igb-app" of version "0.0.3" Now pending apps section will have two entries for "super-simple-igb-app-0.0.1" and "super-simple-igb-app-0.0.3". Ideal scenario - Both the versions of the apps should be released when accepted in pending apps section Current behavior - If any one version of app is selected, the other version of app cannot be released and the spinner keeps on rotating Cause of Issue which needs further debugging - Database has primary key as Bundle_SymbolicName. Since both the apps have same symbolicName duplicate entries are not allowed in database. Probable solution - To use both Bundle_SymbolicName and Bundle_Version as primary key for App table. |
Status | In Progress [ 3 ] | Needs 1st Level Review [ 10005 ] |
Assignee | Riddhi Jagdish Patil [ rpatil14 ] |
Status | Needs 1st Level Review [ 10005 ] | First Level Review in Progress [ 10301 ] |
Assignee | Ann Loraine [ aloraine ] |
Assignee | Ann Loraine [ aloraine ] |
Status | First Level Review in Progress [ 10301 ] | Ready for Pull Request [ 10304 ] |
Assignee | Riddhi Jagdish Patil [ rpatil14 ] |
Comment |
[ The code looks fine. I have not tested the functionality but instead have set up a repository (see above comment) to enable quick testing.
Please submit PR. ] |
Status | Ready for Pull Request [ 10304 ] | Pull Request Submitted [ 10101 ] |
Status | Pull Request Submitted [ 10101 ] | Reviewing Pull Request [ 10303 ] |
Status | Reviewing Pull Request [ 10303 ] | To-Do [ 10305 ] |
Status | To-Do [ 10305 ] | In Progress [ 3 ] |
Sprint | Fall 4 : 30 Sep to 11 Oct [ 75 ] | Fall 4 : 30 Sep to 11 Oct, Fall 5 : 14 Oct to 25 Oct [ 75, 76 ] |
Rank | Ranked higher |
Status | In Progress [ 3 ] | Needs 1st Level Review [ 10005 ] |
Assignee | Riddhi Jagdish Patil [ rpatil14 ] |
Assignee | Riddhi Jagdish Patil [ rpatil14 ] |
Status | Needs 1st Level Review [ 10005 ] | First Level Review in Progress [ 10301 ] |
Status | First Level Review in Progress [ 10301 ] | To-Do [ 10305 ] |
Status | To-Do [ 10305 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Needs 1st Level Review [ 10005 ] |
Assignee | Riddhi Jagdish Patil [ rpatil14 ] |
Workflow | Fall 2019 Workflow Update [ 20807 ] | Revised Fall 2019 Workflow Update [ 21160 ] |
Assignee | Riddhi Jagdish Patil [ rpatil14 ] |
Status | Needs 1st Level Review [ 10005 ] | First Level Review in Progress [ 10301 ] |
Status | First Level Review in Progress [ 10301 ] | To-Do [ 10305 ] |
Status | To-Do [ 10305 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Needs 1st Level Review [ 10005 ] |
Status | Needs 1st Level Review [ 10005 ] | First Level Review in Progress [ 10301 ] |
Assignee | Riddhi Jagdish Patil [ rpatil14 ] |
Status | First Level Review in Progress [ 10301 ] | Needs 1st Level Review [ 10005 ] |
Status | Needs 1st Level Review [ 10005 ] | First Level Review in Progress [ 10301 ] |
Status | First Level Review in Progress [ 10301 ] | Ready for Pull Request [ 10304 ] |
Assignee | Riddhi Jagdish Patil [ rpatil14 ] |
Status | Ready for Pull Request [ 10304 ] | Pull Request Submitted [ 10101 ] |
Assignee | Riddhi Jagdish Patil [ rpatil14 ] |
Status | Pull Request Submitted [ 10101 ] | Reviewing Pull Request [ 10303 ] |
Status | Reviewing Pull Request [ 10303 ] | Merged Needs Testing [ 10002 ] |
Status | Merged Needs Testing [ 10002 ] | Post-merge Testing In Progress [ 10003 ] |
Assignee | Noor Zahara [ noor91zahara ] |
Assignee | Noor Zahara [ noor91zahara ] |
Status | Post-merge Testing In Progress [ 10003 ] | To-Do [ 10305 ] |
Status | To-Do [ 10305 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Needs 1st Level Review [ 10005 ] |
Status | Needs 1st Level Review [ 10005 ] | First Level Review in Progress [ 10301 ] |
Status | First Level Review in Progress [ 10301 ] | Ready for Pull Request [ 10304 ] |
Status | Ready for Pull Request [ 10304 ] | Pull Request Submitted [ 10101 ] |
Status | Pull Request Submitted [ 10101 ] | Reviewing Pull Request [ 10303 ] |
Status | Reviewing Pull Request [ 10303 ] | Merged Needs Testing [ 10002 ] |
Sprint | Fall 4 : 30 Sep to 11 Oct, Fall 5 : 14 Oct to 25 Oct [ 75, 76 ] | Fall 4 : 30 Sep to 11 Oct, Fall 5 : 14 Oct to 25 Oct, Fall 6 : 28 Oct to 8 Nov [ 75, 76, 77 ] |
Rank | Ranked higher |
Status | Merged Needs Testing [ 10002 ] | Post-merge Testing In Progress [ 10003 ] |
Assignee | Noor Zahara [ noor91zahara ] |
Resolution | Done [ 10000 ] | |
Status | Post-merge Testing In Progress [ 10003 ] | Closed [ 6 ] |
Assignee | Noor Zahara [ noor91zahara ] | Riddhi Jagdish Patil [ rpatil14 ] |
Issue:
Pending app of different versions is not able to be released
Solution:
Instead of creating new object whenever accepting request from pending, check if the object with same App already exists in Database, if yes, update the version and release path of that object else create new one.
Files changed:
Code changes are present in branch
IGBF-2050https://bitbucket.org/rpatil14/appstore_riddhi/branch/IGBF-2050
submit_app/models.py
submit_app/views.py
Testing steps:
1) Click on Submit Your App -> Upload an app with some version. for eg - super-simple-igb-app-0.0.1.jar
2) Click on Submit Your App -> Upload same app with different version. for eg - super-simple-igb-app-0.0.3.jar
3) Login as admin
4) Go to Pending apps
5) Accept pending request for super-simple-igb-app-0.0.1 app
6) Accept pending request for super-simple-igb-app-0.0.3 app
Both the apps should be accepted
Check the behavior by logging to the admin page
1) Only one app with Bundle_SymbolicName super-simple-igb-app should be present and its version and release file should be 0.0.3
2) Releases tab should have two entries - one for release 0.0.1 and another for release 0.0.3
Code changes deployed to https://dev-appstore-6.bioviz.org
cc.[~aloraine]