adopted-ember-addons / adopted-ember-addons/ember-changeset
Ember Data model "refresh" / JSON:API's implicit PATCH response body update doesn't notify Changeset
- Dominant language
- JavaScript
- Stars
- 425
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
From #253
On subsequent interactions with the server, if the underlying Ember Data model changes via a `reload`, those changes are implicitly circumventing the changeset. So, for example, this could put the underlying model in a valid state, but changeset won't know because it doesn't know that the underlying model has changed through some other means (the Ember Data adapter).
I can't find the specific language, but JSON:API says any or all of the resource's attributes may be included, which could involve a server-side-triggered updated field: https://jsonapi.org/format/#crud-updating-resource-attributes
_Originally posted by @allthesignals in https://github.com/poteto/ember-changeset/issues/253#issuecomment-676351803_
Contributor guide
Assessment
This issue has not been assessed yet.