You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the adapter we get the changedAttributes by calling record.changedAttributes() and create the payload based on this method's response. And for the fragments we used to check the hasDirtyAttributes property in the fragment to check if this needs to be in the payload or not.
Up until the version 4.0.0 the record.changedAttributes() did not return the conditions property in the object. But after trying out the 5.0.0-beta.0 version, I see that the conditions attribute is returned in the record.changedAttributes() which is breaking our test cases. Is this the intentional behavior going forward?
The text was updated successfully, but these errors were encountered:
Summary
record.changedAttributes()
in the adapter is returning the fragment array of the model which was not returned in the older version say4.0.0
Details
Let's assume a model
models/filter.js
asand the
models/condition.js
asWhen I try to create a
filter
record like thisIn the adapter we get the
changedAttributes
by callingrecord.changedAttributes()
and create the payload based on this method's response. And for the fragments we used to check thehasDirtyAttributes
property in the fragment to check if this needs to be in the payload or not.Up until the version
4.0.0
therecord.changedAttributes()
did not return theconditions
property in the object. But after trying out the5.0.0-beta.0
version, I see that theconditions
attribute is returned in therecord.changedAttributes()
which is breaking our test cases. Is this the intentional behavior going forward?The text was updated successfully, but these errors were encountered: