mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-11 02:13:41 +09:00
GO-4969: Add !isHidden filter tagMap search
This commit is contained in:
parent
7580817d03
commit
9ae5cc1243
3 changed files with 25 additions and 0 deletions
|
@ -191,6 +191,11 @@ func TestObjectService_ListObjects(t *testing.T) {
|
|||
Condition: model.BlockContentDataviewFilter_Equal,
|
||||
Value: pbtypes.Int64(int64(model.ObjectType_relationOption)),
|
||||
},
|
||||
{
|
||||
RelationKey: bundle.RelationKeyIsHidden.String(),
|
||||
Condition: model.BlockContentDataviewFilter_NotEqual,
|
||||
Value: pbtypes.Bool(true),
|
||||
},
|
||||
},
|
||||
Keys: []string{
|
||||
bundle.RelationKeyId.String(),
|
||||
|
@ -478,6 +483,11 @@ func TestObjectService_GetObject(t *testing.T) {
|
|||
Condition: model.BlockContentDataviewFilter_Equal,
|
||||
Value: pbtypes.Int64(int64(model.ObjectType_relationOption)),
|
||||
},
|
||||
{
|
||||
RelationKey: bundle.RelationKeyIsHidden.String(),
|
||||
Condition: model.BlockContentDataviewFilter_NotEqual,
|
||||
Value: pbtypes.Bool(true),
|
||||
},
|
||||
},
|
||||
Keys: []string{
|
||||
bundle.RelationKeyId.String(),
|
||||
|
|
|
@ -238,6 +238,11 @@ func TestSearchService_GlobalSearch(t *testing.T) {
|
|||
Condition: model.BlockContentDataviewFilter_Equal,
|
||||
Value: pbtypes.Int64(int64(model.ObjectType_relationOption)),
|
||||
},
|
||||
{
|
||||
RelationKey: bundle.RelationKeyIsHidden.String(),
|
||||
Condition: model.BlockContentDataviewFilter_NotEqual,
|
||||
Value: pbtypes.Bool(true),
|
||||
},
|
||||
},
|
||||
Keys: []string{
|
||||
bundle.RelationKeyId.String(),
|
||||
|
@ -542,6 +547,11 @@ func TestSearchService_Search(t *testing.T) {
|
|||
Condition: model.BlockContentDataviewFilter_Equal,
|
||||
Value: pbtypes.Int64(int64(model.ObjectType_relationOption)),
|
||||
},
|
||||
{
|
||||
RelationKey: bundle.RelationKeyIsHidden.String(),
|
||||
Condition: model.BlockContentDataviewFilter_NotEqual,
|
||||
Value: pbtypes.Bool(true),
|
||||
},
|
||||
},
|
||||
Keys: []string{
|
||||
bundle.RelationKeyId.String(),
|
||||
|
|
|
@ -202,6 +202,11 @@ func (s *Service) GetTagMapFromStore(spaceId string) (map[string]apimodel.Tag, e
|
|||
Condition: model.BlockContentDataviewFilter_Equal,
|
||||
Value: pbtypes.Int64(int64(model.ObjectType_relationOption)),
|
||||
},
|
||||
{
|
||||
RelationKey: bundle.RelationKeyIsHidden.String(),
|
||||
Condition: model.BlockContentDataviewFilter_NotEqual,
|
||||
Value: pbtypes.Bool(true),
|
||||
},
|
||||
},
|
||||
Keys: []string{
|
||||
bundle.RelationKeyId.String(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue