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

Make sure to dup the default value when setting it #2999

Merged

Conversation

GustavoCaso
Copy link
Member

@GustavoCaso GustavoCaso commented Jul 25, 2023

What does this PR do?

Extracted from ce03d19#r1273320023

The PR ensures that the default values get duplicated before storing as the setting value

Motivation

Additional Notes

How to test the change?

@GustavoCaso GustavoCaso requested a review from a team July 25, 2023 13:36
@github-actions github-actions bot added the core Involves Datadog core libraries label Jul 25, 2023
Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM, thanks for this!

@codecov-commenter
Copy link

Codecov Report

Merging #2999 (435183e) into master (ab57842) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #2999   +/-   ##
=======================================
  Coverage   98.09%   98.09%           
=======================================
  Files        1305     1305           
  Lines       72731    72740    +9     
  Branches     3360     3360           
=======================================
+ Hits        71343    71353   +10     
+ Misses       1388     1387    -1     
Files Changed Coverage Δ
lib/datadog/core/configuration/option.rb 98.46% <100.00%> (+0.01%) ⬆️
spec/datadog/appsec/configuration/settings_spec.rb 99.64% <100.00%> (ø)
spec/datadog/core/configuration/option_spec.rb 99.61% <100.00%> (+<0.01%) ⬆️
spec/datadog/core/configuration/options_spec.rb 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@GustavoCaso GustavoCaso merged commit f6ad9a0 into master Jul 25, 2023
@GustavoCaso GustavoCaso deleted the make-sure-to-duplicate-configuration-default-values branch July 25, 2023 14:08
@github-actions github-actions bot added this to the 1.13.0 milestone Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants