-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Effective policies isn't updated correctly in some situations #982
Comments
The issue with effective policies should only be an issue when removing a grant, but the repository issue may be a problem for adding and removing grants. The repository step must be updated either way to allow adding/removing repositories when needed. Because of this, it is really only removing grants that becomes problematic. At the moment, I see two solutions to this issue.
|
To add more detail about an issue with the repository step: The Repository step will have no notion of a "new" or just-added repository. With the current way things are processed, optional repositories are presented by the policy service to the user. If the user decides to not use those optional repositories, they will not be added to draft submission. This leaves a problem in this component of trying to determine the difference between For Note that this is "just" a usability issue from a user perspective for what would hopefully be an edge case. Can we live with one of the above options (ignore default selection, or ignore possible previous user input)? Or should this be more fully addressed? Is this even an issue or am I just overthinking things :) This seems to be in the same class of issues as #948, that being UI state issues because we don't persist UI state with draft submissions. |
For now, let's assume that we can't persist UI state data. What data do we have from the user being forced to go through the workflow?
If an optional/choice repository is NOT present in
How do we differentiate between these two situations?
Repositories Step init:Prerequisites:
Instead of using |
This bug occurred because the UI was not updating
submission.effectivePolicies
when grants were selected or removed. Instead only the policy cards themselves were able to add the remove themselves. This was done initially to allow users to remove the NIH policy by selecting the option saying that the publisher had/has taken care of the submission. However, the policy step would not create an NIH card that could remove the policy fromeffectivePolicies
because the NIH grant was no longer associated with the submission. Since there was now an erroneous "effective policy" that could no longer be removed, the policy service saw this and threw an error, as it should.There is an a somewhat error in the Repositories step where current repositories were not being updated if repositories were already associated with the submission. This meant that if a user had gone through the workflow and set one or more repositories, but then later went back and added or removed a grant (associated with a different repository), then the action would not have any consequences on the repositories associated with the submission.
The two bugs described above are both related to the fact that changes to grants in an in-progress submission isn't currently propagated properly through the submission object.
PS sorry about how verbose this is getting - I just need to organize my thoughts here
The text was updated successfully, but these errors were encountered: