Skip to content

[Bug Fix] Directory Service - change settings init to deep copy#8434

Merged
bblommers merged 2 commits intogetmoto:masterfrom
zkarpinski:ds-fix-settings-copy
Dec 25, 2024
Merged

[Bug Fix] Directory Service - change settings init to deep copy#8434
bblommers merged 2 commits intogetmoto:masterfrom
zkarpinski:ds-fix-settings-copy

Conversation

@zkarpinski
Copy link
Copy Markdown
Contributor

The Settings list of dictionaries is a shadow copy, resulting in unexpected results when there are 2+ directories with changed settings.

A deep copy resolves this issue.

@bblommers
Copy link
Copy Markdown
Collaborator

Can you merge in the latest master @zkarpinski? That should fix the build - happy to merge afterwards

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.60%. Comparing base (4bfdfaf) to head (497f307).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8434   +/-   ##
=======================================
  Coverage   94.60%   94.60%           
=======================================
  Files        1168     1168           
  Lines      101701   101702    +1     
=======================================
+ Hits        96214    96215    +1     
  Misses       5487     5487           
Flag Coverage Δ
servertests 28.82% <100.00%> (+<0.01%) ⬆️
unittests 94.57% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Copy Markdown
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

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

Great, thank you!

@bblommers bblommers added this to the 5.0.25 milestone Dec 25, 2024
@bblommers bblommers merged commit 9a62985 into getmoto:master Dec 25, 2024
@zkarpinski zkarpinski deleted the ds-fix-settings-copy branch February 26, 2025 17:23
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.

2 participants