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
It seems that changing the value of the serialized field called "options" does not set "changed?" to true. It works correctly when the entire "options" field is modified.
Is this the expected behavior?
Reproduction
Dynamoid: v3.9.0
Ruby: 3.3.0
Sample Test
context'serialized field'dolet(:model)donew_classdofield:options,:serializedendendit'returns true if serialized field has unsaved changes'doobj=model.new(options: {})expect(obj.changed?).toeqtrueobj=model.create(options: {})obj.options['name']='Alex'expect(obj.changed?).toeqtrueendit'returns true if serialized field has unsaved changes other object 'doobj=model.new(options: {})expect(obj.changed?).toeqtrueobj=model.create(options: {})obj.options={'name'=>'Alex'}expect(obj.changed?).toeqtrueendend
The text was updated successfully, but these errors were encountered:
It seems that changing the value of the serialized field called "options" does not set "changed?" to true. It works correctly when the entire "options" field is modified.
Is this the expected behavior?
Reproduction
Dynamoid: v3.9.0
Ruby: 3.3.0
Sample Test
The text was updated successfully, but these errors were encountered: