-
Notifications
You must be signed in to change notification settings - Fork 155
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
Restrict submissions to the entity actions listed in the form #518
Closed
Comments
matthew-white
added
backend
Requires a change to the API server
entities
Multiple Encounter workflows
labels
Sep 30, 2023
This would involve parsing the create/update attributes when we read the dataset definition, saving those actions in the database (in a way that is linked to the form def, so different versions of a form can do different actions), and checking those as submission-processing time. |
2 tasks
matthew-white
added
needs testing
Needs manual testing
and removed
needs testing
Needs manual testing
labels
Dec 8, 2023
matthew-white
added a commit
to getodk/central-backend
that referenced
this issue
Dec 8, 2023
Merged
2 tasks
matthew-white
added a commit
to getodk/central-backend
that referenced
this issue
Dec 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an entity list and a form whose submissions create entities in the entity list. My workflow is fairly controlled: submissions create entities only after approval, and I don't use submissions to update entities. Within this context, submissions will specify a
create
attribute on themeta/entity
field. If the submission XML is manually modified to specify anupdate
attribute, then the submission should be rejected. That is, the only action attributes allowed onmeta/entity
in the submission XML should be those specified in the form XML.I think this will be especially important once we support entity archiving. You could imagine a public link form that is allowed to create entities, but that definitely shouldn't archive entities.
The text was updated successfully, but these errors were encountered: