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

Fix saving persisted model and delete item attributes with nil values by andrykonchin · Pull Request #681 · Dynamoid/dynamoid · GitHub

Fix saving persisted model and delete item attributes with nil values - #681

Merged
andrykonchin merged 1 commit into
masterfrom
fix-updating-attributes-with-nil-values
Aug 20, 2023
Merged

Fix saving persisted model and delete item attributes with nil values#681
andrykonchin merged 1 commit into
masterfrom
fix-updating-attributes-with-nil-values

Conversation

Copy link
Copy Markdown
Member

Fix saving persisted model and delete item attributes with nil values if config.store_attribute_with_nil_value = false.

The issue was introduced in #623 by switching from PutItem to UpdateItem for persisted models.

Closes #679

… if config.store_attribute_with_nil_value = false

Copy link
Copy Markdown

Package Line Rate Health
dynamoid 90%
Summary 90% (2857 / 3162)

Minimum allowed line rate is 90%

codecov Bot commented Aug 20, 2023

Copy link
Copy Markdown

Codecov Report

Merging #681 (9da17f3) into master (7896f96) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 9da17f3 differs from pull request most recent head eb18c4a. Consider uploading reports for the commit eb18c4a to get more accurate results

@@            Coverage Diff             @@
##           master     #681      +/-   ##
==========================================
+ Coverage   90.33%   90.35%   +0.01%     
==========================================
  Files          62       62              
  Lines        3156     3162       +6     
==========================================
+ Hits         2851     2857       +6     
  Misses        305      305              
Files Changed Coverage Δ
...dynamoid/adapter_plugin/aws_sdk_v3/item_updater.rb 100.00% <100.00%> (ø)

andrykonchin merged commit b2103d9 into master Aug 20, 2023
andrykonchin deleted the fix-updating-attributes-with-nil-values branch August 20, 2023 20:49
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.

Updating an attribute that is a key of a GSI to nil (3.9.0)

1 participant


Back | FazBrowse Home | New Git URL