adopted-ember-addons / ember-data-model-fragments

Ember Data addon to support nested JSON documents
MIT License
370 stars 114 forks source link

changedAttributes still return the dirty attributes until the record has been fully committed #476

Closed VincentMolinie closed 1 year ago

VincentMolinie commented 1 year ago

When trying to upgrade to the latest version of ember-data-model-fragments I realised there was an issue inside the changedAttributes(). changedAttributes() is supposed to return all the dirty attributes until the record has been fully committed not just when calling the save method

In the test I show what we do, we use it to send only the dirty attributes

knownasilya commented 1 year ago

Looks like there's a linting issue

VincentMolinie commented 1 year ago

Thanks @knownasilya, can you merge it 👼 ?

knownasilya commented 1 year ago

Released as v6.0.3