Skip to content

Deduplicate object request fields' handling#4007

Open
cthulhu-rider wants to merge 3 commits into
masterfrom
object-deduplicate-refs
Open

Deduplicate object request fields' handling#4007
cthulhu-rider wants to merge 3 commits into
masterfrom
object-deduplicate-refs

Conversation

@cthulhu-rider
Copy link
Copy Markdown
Contributor

No description provided.

Check once and reuse wherever needed.

Signed-off-by: cthulhurider <ctulhurider@gmail.com>
Stale since e4a034c.

Signed-off-by: cthulhurider <ctulhurider@gmail.com>
Check once and reuse wherever needed.

Signed-off-by: cthulhurider <ctulhurider@gmail.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

❌ Patch coverage is 27.44565% with 267 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.80%. Comparing base (7586939) to head (53ac095).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/object/server.go 15.70% 155 Missing and 6 partials ⚠️
pkg/services/object/acl/v2/service.go 43.75% 41 Missing and 4 partials ⚠️
pkg/services/object/common.go 37.70% 24 Missing and 14 partials ⚠️
pkg/services/object/get.go 0.00% 13 Missing and 1 partial ⚠️
pkg/services/object/util.go 0.00% 4 Missing ⚠️
pkg/services/object/acl/acl.go 0.00% 2 Missing ⚠️
pkg/services/object/util/prm.go 0.00% 2 Missing ⚠️
cmd/neofs-node/object.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4007      +/-   ##
==========================================
- Coverage   27.80%   27.80%   -0.01%     
==========================================
  Files         681      681              
  Lines       46763    46676      -87     
==========================================
- Hits        13003    12978      -25     
+ Misses      32522    32468      -54     
+ Partials     1238     1230       -8     

☔ 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 June 3, 2026 15:01
return code, nil
}

func checkRequiredObjectAddress(m *protorefs.Address) (cid.ID, oid.ID, string) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why returning string, not an error?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it's written to status message which is of string type

// first object not defined, unexpected, do not attach any header
}
}
case *protoobject.SearchRequest:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why dont we have SearchV2Request there? it also has cID

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it's never been there 🤷‍♂️

}

func WithOID(v *oid.ID) Option {
func WithOID(v oid.ID) Option {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

isnt it a separate change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it could be, but i decided to change everything related to CID/OID in one change

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