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

fix: don't regenerate client id if UpdaterState successfully loaded #76

Merged
merged 4 commits into from
Sep 7, 2023

Conversation

bryanoltman
Copy link
Contributor

Description

Fixes issue where client_id was being regenerated when the app's release version changed or when the previous state failed to validate.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Patch coverage: 97.95% and project coverage change: -2.47% ⚠️

Comparison is base (e14f630) 100.00% compared to head (932ec2f) 97.53%.

Additional details and impacted files
@@             Coverage Diff             @@
##              main      #76      +/-   ##
===========================================
- Coverage   100.00%   97.53%   -2.47%     
===========================================
  Files            4        9       +5     
  Lines           57     1864    +1807     
===========================================
+ Hits            57     1818    +1761     
- Misses           0       46      +46     
Files Changed Coverage Δ
library/src/cache.rs 93.91% <97.95%> (ø)

... and 12 files with indirect coverage changes

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

Copy link
Contributor

@eseidel eseidel left a comment

Choose a reason for hiding this comment

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

Patch is fine, I'm not sure it's worth the hassle (since we don't currently use the client_id do we?) and it's just more functionality to maintain. But this does make the client_id more stable (as someone might expect) and does add more testing so 🤷

@bryanoltman bryanoltman merged commit 292f978 into main Sep 7, 2023
@bryanoltman bryanoltman deleted the bo/client-id branch September 7, 2023 14:48
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