If a user selects a grant for a submission, then removes the grant and selects another, the first grant repository is still deposited along with the second grant repository.
Steps to Reproduce
Run pass-docker in local mode.
Login with staff1
Start a new submission
Enter test into Title
Select a Journal
Click Next
On Grants, select invenio-test-awd-num-1 grant
Click Next under selected invenio-test-awd-num-1
Click Next on Policies
Click Back on Repositories
Click Back on Policies
Click Remove for invenio-test-awd-num-1 grant
Select the R24 grant
Click Next under selected R24
Click Next on Policies
Click Next on Repositories
Enter Author on Details and click Next
Upload a file on Files
On Review page, you will see JScholarship and InvenioRDM listed for Repositories. If you Submit, Deposits will be created for both repositories.
Expected Results
Deposit should only be created for JScholarship.
Actual Results
Deposits are created for JScholarship and InvenioRDM even though the grant associated with the InvenioRDM repo was removed.
Environment
PROD/stage/local
Date/time occurred
10/24/24 2:45p
Description
If a user selects a grant for a submission, then removes the grant and selects another, the first grant repository is still deposited along with the second grant repository.
Steps to Reproduce
Run pass-docker in local mode. Login with staff1 Start a new submission Enter test into Title Select a Journal Click Next On Grants, select
invenio-test-awd-num-1
grant Click Next under selectedinvenio-test-awd-num-1
Click Next on Policies Click Back on Repositories Click Back on Policies Click Remove forinvenio-test-awd-num-1
grant Select the R24 grant Click Next under selected R24 Click Next on Policies Click Next on Repositories Enter Author on Details and click Next Upload a file on Files On Review page, you will see JScholarship and InvenioRDM listed for Repositories. If you Submit, Deposits will be created for both repositories.Expected Results
Deposit should only be created for JScholarship.
Actual Results
Deposits are created for JScholarship and InvenioRDM even though the grant associated with the InvenioRDM repo was removed.
Evidence
Reproduction steps will show it.
Estimated Severity
Major