-
Notifications
You must be signed in to change notification settings - Fork 677
default_version for publish
#9722
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
default_version for publish
#9722
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another approach would be to calculate from all versions. Since TopVersion already needs to calculate from all versions, we could consider pre-sorting the versions and providing methodologies for TopVersion and default_versions to determine values from the sorted versions.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9722 +/- ##
==========================================
- Coverage 88.88% 88.88% -0.01%
==========================================
Files 289 289
Lines 29552 29568 +16
==========================================
+ Hits 26268 26282 +14
- Misses 3284 3286 +2 ☔ View full report in Codecov by Sentry. |
|
☔ The latest upstream changes (presumably #9723) made this pull request unmergeable. Please resolve the merge conflicts. |
338ff27 to
095cba4
Compare
095cba4 to
3d5d899
Compare
3d5d899 to
9e6a5d1
Compare
The value is determined by comparing the existing `default_value` to the published version. This could potentially result in upserting an outdated version. A subsequent background job is necessary to ensure correctness and eventual consistency.
9e6a5d1 to
a5d24b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
Since we will respond with the
default_versionto the client, this PR always upsert thedefault_valuefor publish.