-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: request action validation framework created, and implemented on sign and submit endpoint #512
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First thank you for cleaning up the task_actions! Left it in there just in case we revisited it but think that ship has sailed.
If someone fat fingers a validation function or adds one to the list without adding the corresponding impl what happens? Might be good to add a check and error gracefully?
at the moment, a non-existent check gets ignored, so it still runs through the remaining existing checks; although I should definitely at least log it. |
Ok yeah I see where you're filtering now. So yeah I think that would be the only thing I would add here. Seems like if there is supposed to be a check we want to do, as configured by the environment, but we don't actually have that check we'd want to flag it somewhere. Not sure if that should fail validations? Doubt it's a case we'll come across a lot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I think this looks good, I'm sure we'll iterate over stuff as it actually comes up.
Do we need an update to the configmap?
yeap, configmap will need to be updated; also api-commons, if we all are good with this route, the regtechexception needs to be able to accommodate a list; right now it's just a string repr of the list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Hopefully will come into play for more endpoints in the future
Yeap, I think some endpoints can leverage this already, will get a ticket created and check them out. |
closes #482
closes #515
new context, and validation dependency concept, currently only applying to the
sign
endpoint, can extend to additional endpoints.also removed some of the tasks code since we no longer going with that concept; allowing for some daos to not be detached.