adopted-ember-addons / adopted-ember-addons/ember-changeset

Ember Data model "refresh" / JSON:API's implicit PATCH response body update doesn't notify Changeset

Open
#537 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.