Skip to content

Conversation

@cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider commented Dec 11, 2025

No description provided.

@cthulhu-rider cthulhu-rider force-pushed the container-attributes branch 6 times, most recently from d136d4e to 257168b Compare December 24, 2025 12:41
@codecov
Copy link

codecov bot commented Dec 24, 2025

Codecov Report

❌ Patch coverage is 1.39211% with 425 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.23%. Comparing base (9e6c376) to head (303fea6).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/container/server.go 4.80% 119 Missing ⚠️
cmd/neofs-cli/modules/container/attributes.go 0.00% 103 Missing ⚠️
...nnerring/processors/container/process_container.go 0.00% 93 Missing ⚠️
pkg/morph/event/container/notary_requests.go 0.00% 42 Missing ⚠️
pkg/innerring/processors/container/handlers.go 0.00% 20 Missing ⚠️
pkg/morph/client/container/attributes.go 0.00% 18 Missing ⚠️
pkg/innerring/processors/container/processor.go 0.00% 12 Missing ⚠️
cmd/neofs-node/container.go 0.00% 10 Missing ⚠️
cmd/neofs-cli/modules/container/root.go 0.00% 6 Missing ⚠️
pkg/morph/client/notary.go 0.00% 2 Missing ⚠️
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.
📢 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.

@cthulhu-rider cthulhu-rider marked this pull request as ready for review December 24, 2025 12:52
@roman-khimov
Copy link
Member

Is #3728 obsolete with this?

req := ev.(containerEvent.RemoveAttributeRequest)

cp.log.Info("notification",
zap.String("type", "set attribute"),
Copy link
Member

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),
Copy link
Member

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
Copy link
Member

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,
Copy link
Member

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.

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.

3 participants