-
Notifications
You must be signed in to change notification settings - Fork 50
Container attributes #3733
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
base: master
Are you sure you want to change the base?
Container attributes #3733
Conversation
a28ae50 to
1abb88b
Compare
d136d4e to
257168b
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3733 +/- ##
==========================================
- Coverage 26.50% 26.23% -0.28%
==========================================
Files 655 657 +2
Lines 41412 41838 +426
==========================================
- Hits 10978 10977 -1
- Misses 29429 29854 +425
- Partials 1005 1007 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
257168b to
e0d6ff2
Compare
Support nspcc-dev/neofs-contract#564. Signed-off-by: Leonard Lyubich <[email protected]>
Support nspcc-dev/neofs-contract#564, nspcc-dev/neofs-api#360. Signed-off-by: Leonard Lyubich <[email protected]>
Follow nspcc-dev/neofs-api#360. Signed-off-by: Leonard Lyubich <[email protected]>
e0d6ff2 to
303fea6
Compare
|
Is #3728 obsolete with this? |
| req := ev.(containerEvent.RemoveAttributeRequest) | ||
|
|
||
| cp.log.Info("notification", | ||
| zap.String("type", "set attribute"), |
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.
remove
| ID: id, | ||
| Attribute: req.Attribute, | ||
| Value: req.Value, | ||
| ValidUntil: time.Unix(req.ValidUntil, 0), |
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.
Check ValidUntil here as well, fail fast.
|
|
||
| err = cp.verifySignature(signatureVerificationData{ | ||
| ownerContainer: cnr.Owner(), | ||
| verb: session.VerbContainerDelete, // TODO: session V2 |
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 is VerbContainerRemoveAttribute defined already.
| commonflags.CIDFlag, | ||
| setAttributeNameFlag, | ||
| setAttributeValueFlag, | ||
| setAttributeValidForFlag, |
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.
Shouldn't be required, have some sane default for it. Users don't care much about these things.
No description provided.