-
Notifications
You must be signed in to change notification settings - Fork 259
fix(storage): add namespace ETag support across multiple files #4500
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4500 +/- ##
==========================================
+ Coverage 63.73% 63.75% +0.01%
==========================================
Files 171 171
Lines 17622 17631 +9
==========================================
+ Hits 11231 11240 +9
Misses 5720 5720
Partials 671 671
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
431da34
to
68c3e0e
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.
one minor question, otherwise lgtm!
hash.Write([]byte(etag)) | ||
sum := hash.Sum(nil) | ||
etag = hex.EncodeToString(sum) | ||
etag = etag[:12] // truncate to 12 characters for consistency |
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.
just curious why 12 and not something larger like 32?
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.
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.
@markphelps Docker and Git typically display a shortened version of the hash. Docker, for example, uses 12 characters. We don't use it for security reason so I decided to have a short version of it
* main: chore: bump etag length for multi-docs to 32 (#4501) fix(storage): add namespace ETag support across multiple files (#4500) fix(ui): variant with no name is not shown in the rules (#4499) Update github.com/bufbuild/buf in _tools to v1.55.1 (#4460) chore: ensure v1 release workflows only run on a v1 release (#4458) chore: remove the sandbox section from readme (#4447) chore: Release/1.59 (#4446)
https://discord.com/channels/960634591000014878/1400563697092657203