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

Add a refresh operation for resources and schemas #3680

Closed
imsdu opened this issue Feb 13, 2023 · 0 comments · Fixed by #3742
Closed

Add a refresh operation for resources and schemas #3680

imsdu opened this issue Feb 13, 2023 · 0 comments · Fixed by #3742
Assignees

Comments

@imsdu
Copy link
Contributor

imsdu commented Feb 13, 2023

Motivation
In some cases, we want to update a resource not because it has been updated itself but because some of it context (project configuration, imports) changed.
In this case, we don't need to pass the latest payload to refresh this resource.

Acceptance criteria

  • This new operation can be applied to schemas and resources
  • The resources/write permission is needed
  • The endpoints are:
PUT /v1/resources/{org_label}/{project_label}/{schema_id}/{resource_id}/refresh
PUT /v1/schemas/{org_label}/{project_label}/{schema_id}/refresh
  • The behaviour is the same as the update operation
  • documentation & tests to be added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants