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

Implement drafts commit workflow in the REST API #537

Open
3 tasks
keithmanville opened this issue Jul 16, 2024 · 0 comments · May be fixed by #681
Open
3 tasks

Implement drafts commit workflow in the REST API #537

keithmanville opened this issue Jul 16, 2024 · 0 comments · May be fixed by #681
Assignees
Labels
feature New feature to add to project

Comments

@keithmanville
Copy link
Collaborator

keithmanville commented Jul 16, 2024

Implement a new workflow API endpoint for committing drafts at /workflows/draftCommit/{id} via a POST. The draft commit work flow is responsible for creating a new resource snapshot from the draft and deleting the draft in a single operation.

The commit workflow should reject a draft if the snapshotId does not match the latestSnapshotId of the resource. When a draft is rejected, the response will show all versions (your current draft, what it looks like now, and what you started from).

Definition of done

  • the schemas, controllers, services, and errors are implemented for a drafts commit workflow
  • new tests for committing a draft are implemented
  • all unit tests are passing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature to add to project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants