1
0
Fork 0
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:
Jannis Metrikat 2025-05-06 17:52:51 +02:00
parent 7580817d03
commit 9ae5cc1243
No known key found for this signature in database
GPG key ID: B223CAC5AAF85615
3 changed files with 25 additions and 0 deletions

View file

@ -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(),

View file

@ -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(),

View file

@ -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(),