6280d075b9
With updated specification of object related operation we don't have this search attribute any more and we should not use functions related to this attribute. This commit breaks object service logic, however it will be fixed later. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
31 lines
777 B
Go
31 lines
777 B
Go
package query
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
|
v2object "github.com/nspcc-dev/neofs-api-go/v2/object"
|
|
"github.com/nspcc-dev/neofs-node/pkg/services/object/search/query"
|
|
)
|
|
|
|
// FIXME: this is a temporary solution for object fields filters
|
|
|
|
// fixme: remove it, it is broken now
|
|
func NewRightChildQuery(par *object.ID) query.Query {
|
|
q := &Query{
|
|
filters: make(object.SearchFilters, 0, 2),
|
|
}
|
|
|
|
q.filters.AddFilter(v2object.FilterHeaderParent, idValue(par), object.MatchStringEqual)
|
|
|
|
return q
|
|
}
|
|
|
|
// fixme: remove it, it is broken now
|
|
func NewLinkingQuery(par *object.ID) query.Query {
|
|
q := &Query{
|
|
filters: make(object.SearchFilters, 0, 2),
|
|
}
|
|
|
|
q.filters.AddFilter(v2object.FilterHeaderParent, idValue(par), object.MatchStringEqual)
|
|
|
|
return q
|
|
}
|