Skip to content
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

Redefine form with entity create AND update #317

Open
seadowg opened this issue Jul 30, 2024 · 1 comment
Open

Redefine form with entity create AND update #317

seadowg opened this issue Jul 30, 2024 · 1 comment

Comments

@seadowg
Copy link
Member

seadowg commented Jul 30, 2024

The spec currently address forms that have an entity node with truthy create and update like so:

MAY also have a bind to a create attribute as previously defined. In that case, the form designer is responsible for making sure that the id is correctly populated in each case and that the update and create conditions don’t result in both being truthy at the same time. If both are truthy, the spec consumer processing submissions should do both and one of them will fail.

The actual result of "should do both and one of them will fail" isn't clear here. We should define what exactly happens when processing submissions for these cases:

  1. A create form (id, create="true" and no baseVersion) that also has update="true"
  2. An update form (id, baseVersion and update"true") that also has create="true"
@seadowg
Copy link
Member Author

seadowg commented Jul 30, 2024

cc/ @matthew-white @ktuite @lognaturel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant