FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix .import and mark attributes of persisted models as not changed/dirty by andrykonchin · Pull Request #628 · Dynamoid/dynamoid · GitHub

Fix .import and mark attributes of persisted models as not changed/dirty - #628

Merged
andrykonchin merged 1 commit into
masterfrom
fix-import-and-attribute-changes
Jan 14, 2023
Merged

Fix .import and mark attributes of persisted models as not changed/dirty#628
andrykonchin merged 1 commit into
masterfrom
fix-import-and-attribute-changes

Conversation

andrykonchin commented Jan 14, 2023
edited
Loading

Copy link
Copy Markdown
Member

After importing models their attributes were still marked as dirty despite the fact that the changes are saved.

Example to illustrate:

users = User.import([{}])
users[0].changes? # => true

Copy link
Copy Markdown

Package Line Rate Health
dynamoid 90%
Summary 90% (2755 / 3055)

Minimum allowed line rate is 90%

codecov Bot commented Jan 14, 2023

Copy link
Copy Markdown

Codecov Report

Merging #628 (4daa35a) into master (77f956b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #628   +/-   ##
=======================================
  Coverage   90.17%   90.18%           
=======================================
  Files          60       60           
  Lines        3053     3055    +2     
=======================================
+ Hits         2753     2755    +2     
  Misses        300      300           
Impacted Files Coverage Δ
lib/dynamoid/persistence/import.rb 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

andrykonchin merged commit b4038b5 into master Jan 14, 2023
andrykonchin deleted the fix-import-and-attribute-changes branch January 14, 2023 10:15
andrykonchin added this to the v3.9.0 milestone Apr 13, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL