-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix/Child objects ACL #543
Conversation
object/object.go
Outdated
} | ||
|
||
// todo | ||
func (o *Object) InitID() (v oid.ID, isSet bool) { |
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.
I suggest replacing isSet
with error
. Anyway, we return the second variable. The error is more informative and sometimes required to understand what it is
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.
agree it can be improved somehow but suggest doing it all together (these flags are common to the Object
)
db0231f
to
df4081c
Compare
My IDE says they are vulnerable: - github.com/containerd/containerd v1.7.13 - github.com/opencontainers/runc v1.1.8 Signed-off-by: Pavel Karpy <[email protected]>
Signed-off-by: Pavel Karpy <[email protected]>
2f08bda
to
c9eeaeb
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.
overall ok, slicer tests fail
object/splitinfo.go
Outdated
@@ -39,7 +39,8 @@ func (s *SplitInfo) ToV2() *object.SplitInfo { | |||
return (*object.SplitInfo)(s) | |||
} | |||
|
|||
// SplitID returns [SplitID] if it has been set. | |||
// SplitID returns [SplitID] if it has been set.New objects may miss it, |
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.
// SplitID returns [SplitID] if it has been set.New objects may miss it, | |
// SplitID returns [SplitID] if it has been set. New objects may miss it, |
object/link.go
Outdated
oid "github.com/nspcc-dev/neofs-sdk-go/object/id" | ||
) | ||
|
||
// Link represents a helper object with information about |
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.
object/link.go
Outdated
// [Object.WriteLink]/[Object.ReadLink]. | ||
type Link v2object.Link | ||
|
||
// WriteLink writes [Link] to the [Object], and sets its type to [TypeLink]. |
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.
[...]
notations for prms are redundant: they all are links already (e.g. https://pkg.go.dev/github.com/nspcc-dev/[email protected]/object#Object.WriteLock)
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.
dropped but i cannot understand why it is a problem. i literally copied the Lock docs (like from the link), what should your link say to me?
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.
I'd rather have [Link]
, but if it's autodetected for these cases then it's not an error at least to not have brackets.
Includes the new LINK object (type and fixed payload) and the first object part instead of split ID. Signed-off-by: Pavel Karpy <[email protected]>
- Split ID is deprecated; - First object part is a replacement for Split ID: every part should have its ID, and also it has a root object header (without payload fields); - Link object now stores child objects as a payload and has its own object type. Signed-off-by: Pavel Karpy <[email protected]>
c9eeaeb
to
e1a82c5
Compare
Fixed but #554 (comment). That was the reason i missed it. |
No description provided.