Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration option to persist empty strings as is #794

Merged

Conversation

andrykonchin
Copy link
Member

Add Config.store_empty_string_as_nil options that is true by default. If it's true - empty strings will be persisted as nil otherwise as is. DynamoDB added support of storing empty strings so this logic isn't required anymore.

Close #788

@andrykonchin andrykonchin force-pushed the add-configuration-option-to-persist-empty-strings branch 2 times, most recently from 98cf17a to 191ecff Compare August 18, 2024 14:02
Copy link

codecov bot commented Aug 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.18%. Comparing base (3fc2fc7) to head (191ecff).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #794      +/-   ##
==========================================
+ Coverage   91.08%   91.18%   +0.10%     
==========================================
  Files          71       73       +2     
  Lines        3453     3496      +43     
==========================================
+ Hits         3145     3188      +43     
  Misses        308      308              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrykonchin andrykonchin force-pushed the add-configuration-option-to-persist-empty-strings branch from 191ecff to 4e20e64 Compare August 18, 2024 14:17
@andrykonchin andrykonchin merged commit ade8e73 into master Aug 18, 2024
56 of 58 checks passed
@andrykonchin andrykonchin deleted the add-configuration-option-to-persist-empty-strings branch August 18, 2024 14:32
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.

Saving Empty Strings To The Database (non-key fields)
1 participant