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

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

Offen
#537 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
425
Forks
136
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.