netmap: Add LIKE
operation for filter
#231
No reviewers
TrueCloudLab/storage-core-developers
Labels
No Label
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#231
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "acid-ant/frostfs-sdk-go:feature/policy-like"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Blocked by: TrueCloudLab/frostfs-api-go#87
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
netmap: Add `LIKE` operation for `filter`to WIP: netmap: Add `LIKE` operation for `filter`WIP: netmap: Add `LIKE` operation for `filter`to netmap: Add `LIKE` operation for `filter`604bddb803
to5b729e10d5
@ -111,2 +112,4 @@
case netmap.EQ:
return b.Attribute(f.GetKey()) == f.GetValue()
case netmap.LIKE:
if f.GetValue() == netmap.LikeWildcard {
The code below seems to work for this case, why have a separate branch in code?
Just to exit faster in this case. Removed.
@ -253,0 +294,4 @@
n, err := nm.ContainerNodes(pNamed, []byte{1})
require.NoError(t, err)
require.Equal(t, 1, len(n[0]))
Could you also add attributes check for all tests?
Added.
@ -253,0 +318,4 @@
n, err := nm.ContainerNodes(pNamed, []byte{1})
require.NoError(t, err)
require.Equal(t, 3, len(n[0]))
This does not differ from the previous test. Is there any reason we have 3 "Russia" in the test data?
No reason. Like this number. Updated a bit.
5b729e10d5
to50b2f45960
@ -3,1 +3,3 @@
go 1.20
go 1.21
replace git.frostfs.info/TrueCloudLab/frostfs-api-go/v2 v2.16.1-0.20240530152826-2f6d3209e1d3 => git.frostfs.info/acid-ant/frostfs-api-go/v2 v2.15.1-0.20240624130238-eed7162e683b
Debugee