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

Do not overwrite custom queryables and collection summaries when automatically updating #21

Open
mishaschwartz opened this issue Feb 6, 2025 · 0 comments
Assignees

Comments

@mishaschwartz
Copy link
Contributor

mishaschwartz commented Feb 6, 2025

Currently, the PATCH /queryables and PATCH /summaries endpoint will update the queryable and summary data based on the item data currently present in the database. This will overwrite any previous data.

We would like to be able to differentiate automatically generated queryable and summary data from custom data so that these routes only update the automatically generated data. This would allow users to include their own data that won't be overwritten.

For example:

  • a user creates summary data (data1) for a given collection
  • a user then adds more items to the collection and runs PATCH /summaries which generates additional summary data (data2)
  • data2 should be added in addition to data1
  • if the user then runs PATCH /summaries at a later date it should overwrite data2 but not data1

See also: #18 (comment)

@mishaschwartz mishaschwartz self-assigned this Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant