Skip to content

chore: Remove dead duplicate urlparse in async create_keys_public_url#750

Merged
vdusek merged 1 commit intomasterfrom
fix/dead-urlparse-in-async-keys-public-url
Apr 22, 2026
Merged

chore: Remove dead duplicate urlparse in async create_keys_public_url#750
vdusek merged 1 commit intomasterfrom
fix/dead-urlparse-in-async-keys-public-url

Conversation

@vdusek
Copy link
Copy Markdown
Contributor

@vdusek vdusek commented Apr 22, 2026

Summary

The async KeyValueStoreClientAsync.create_keys_public_url assigned keys_public_url = urlparse(self._build_url('keys')) early in the method, but this value was unconditionally overwritten later by urlparse(self._build_url('keys', public=True)). The sync counterpart only has the single correct call — this was an asymmetric refactor artifact.

No behavior change: the second assignment always won. Removing the dead call eliminates a small wasted _build_url/urlparse on every call and removes a latent foot-gun where code inserted between the two assignments would silently see the non-public URL.

The first urlparse call was unconditionally overwritten by a second
call with public=True. Drop it so async mirrors the sync version and
so nobody gets tripped up by the non-public URL being silently shadowed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Apr 22, 2026
@vdusek vdusek self-assigned this Apr 22, 2026
@github-actions github-actions Bot added this to the 139th sprint - Tooling team milestone Apr 22, 2026
@vdusek vdusek changed the title fix: remove dead duplicate urlparse in async create_keys_public_url chore: Remove dead duplicate urlparse in async create_keys_public_url Apr 22, 2026
@vdusek vdusek requested a review from Pijukatel April 22, 2026 07:46
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.53%. Comparing base (6b8001e) to head (bb1003e).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #750      +/-   ##
==========================================
+ Coverage   95.45%   95.53%   +0.07%     
==========================================
  Files          45       45              
  Lines        5125     5124       -1     
==========================================
+ Hits         4892     4895       +3     
+ Misses        233      229       -4     
Flag Coverage Δ
integration 95.53% <ø> (+0.07%) ⬆️

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.

🚀 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.

@vdusek vdusek merged commit 69dde64 into master Apr 22, 2026
25 of 26 checks passed
@vdusek vdusek deleted the fix/dead-urlparse-in-async-keys-public-url branch April 22, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants