Skip to content

Fix context merging #1722#1724

Merged
st0012 merged 2 commits intogetsentry:masterfrom
thomasjachmann:fix-context-merging
Feb 11, 2022
Merged

Fix context merging #1722#1724
st0012 merged 2 commits intogetsentry:masterfrom
thomasjachmann:fix-context-merging

Conversation

@thomasjachmann
Copy link
Copy Markdown
Contributor

When using the same key in a context hash, the new value should
overwrite the old value. Before, the value having been set first would
always win.

fixes #1722

When using the same key in a context hash, the new value should
overwrite the old value. Before, the value having been set first would
always win.

fixes #1722
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 11, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.38%. Comparing base (c65088f) to head (379d542).
⚠️ Report is 744 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1724      +/-   ##
==========================================
- Coverage   98.41%   98.38%   -0.03%     
==========================================
  Files         141      141              
  Lines        8004     8012       +8     
==========================================
+ Hits         7877     7883       +6     
- Misses        127      129       +2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@st0012 st0012 added this to the 5.2.0 milestone Feb 11, 2022
Copy link
Copy Markdown
Contributor

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

Yes, that's a bug. Thank you for reporting it and making the PR! 😄

@st0012 st0012 merged commit e960d02 into getsentry:master Feb 11, 2022
@thomasjachmann thomasjachmann deleted the fix-context-merging branch February 11, 2022 22:23
@rahul342
Copy link
Copy Markdown

Thank for you fixing! Curious, is there a timeline by which this goes live in new release?

@st0012 st0012 modified the milestones: 5.2.0, 5.1.1 Feb 20, 2022
@st0012
Copy link
Copy Markdown
Contributor

st0012 commented Feb 20, 2022

This should go out with version 5.1.1 next week 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

set_context doesn't allow to overwrite values

4 participants