Skip to content
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

Free apps from using github.com/nspcc-dev/neofs-api-go/v2 module #570

Merged
merged 5 commits into from
Apr 12, 2024

Conversation

cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider commented Mar 20, 2024

https://github.com/nspcc-dev/neo-go/ imports indirectly, all fine. https://github.com/nspcc-dev/neofs-node is maintained in a bundle and can be cleaned up last (not in this PR)

projects:

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 68.16%. Comparing base (69b50fa) to head (3efc5b3).
Report is 3 commits behind head on master.

❗ Current head 3efc5b3 differs from pull request most recent head d58930b. Consider uploading reports for the commit d58930b to get more accurate results

Files Patch % Lines
bearer/bearer.go 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #570   +/-   ##
=======================================
  Coverage   68.15%   68.16%           
=======================================
  Files         122      122           
  Lines        9990     9972   -18     
=======================================
- Hits         6809     6797   -12     
+ Misses       2805     2800    -5     
+ Partials      376      375    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

netmap/filter.go Outdated Show resolved Hide resolved
netmap/netmap.go Outdated Show resolved Hide resolved
netmap/netmap.go Outdated Show resolved Hide resolved
netmap/netmap.go Outdated Show resolved Hide resolved
netmap/selector.go Outdated Show resolved Hide resolved
It is in demand by apps exchanging unsigned tokens.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
They are in demand by apps exchanging unsigned tokens.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
They are not really needed for eACL setting - convenient methods are
provided. But `Filter.Key` method provides access to them, so user
should be fully equiped for switching or comparison.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
No reason to hide it when corresponding setters are provided. While
regular user is not so interested in such pretty complex information,
it could be required to implement protocol conversions.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Еhe need to expand a partially or fully formed storage policy is either
absent or fully covered by slice manipulations. The parameter
variability is also excessive: by default the list is empty and
resetting it by calling it without parameters is difficult to read.
Adding elements one-by-one is inefficient in terms of resources.

While this is breaking change, it forces more clear app code and
performance.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@@ -234,23 +234,21 @@ func (r ReplicaDescriptor) SelectorName() string {
return r.m.GetSelector()
}

// AddReplicas adds a bunch object replica's characteristics.
// SetReplicas sets list of object replica's characteristics.
Copy link
Member

Choose a reason for hiding this comment

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

Not sure it's an improvement, but let's see how it goes.

fKeyObjType
fKeyObjHomomorphicHash
fKeyObjLast // helper, used in tests
FilterObjectVersion = v2acl.FilterObjectVersion
Copy link
Member

Choose a reason for hiding this comment

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

some docs?

Copy link
Contributor Author

@cthulhu-rider cthulhu-rider Apr 12, 2024

Choose a reason for hiding this comment

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

naming as much straightforward as possible, i dont think writing FilterObjectVersion // object version is needed

netmap/filter.go Outdated Show resolved Hide resolved
@roman-khimov roman-khimov merged commit 830a0ff into master Apr 12, 2024
7 of 10 checks passed
@roman-khimov roman-khimov deleted the no-apigo branch April 12, 2024 07:46
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.

4 participants