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

[FEAT] store.pushOperations for remove operations #355

Closed
runspired opened this issue Aug 17, 2018 · 1 comment
Closed

[FEAT] store.pushOperations for remove operations #355

runspired opened this issue Aug 17, 2018 · 1 comment
Labels
Needs Champion Needs Implementer T-ember-data RFCs that impact the ember-data library

Comments

@runspired
Copy link
Contributor

json-api is introducing operations.
The ember-data team would like to introduce a new async API (store.pushOperations) for handling a subset of these operations. For the time, this subset would be remove operations; however, operations on relationship membership changes should also be considered.

Operations for creating and editing records would not be allowed, as push and pushOperations are APIs for updating the state with "known good" state, so contextually, performing "local state" operations via this API would not make semantic sense.

This API would return a promise that resolves upon completion of the operations or rejects with any failures. As per json-api spec proposal, all operations must succeed, or they all fail.

@runspired
Copy link
Contributor Author

closing in favor of #854

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Champion Needs Implementer T-ember-data RFCs that impact the ember-data library
Projects
Archived in project
Development

No branches or pull requests

2 participants