[v11.1.x] Annotations: Fix composite store read (#94181)

* Annotations: Fix composite store read (#94158)

* Annotations: Fix composite store read

* Add test

* check error

(cherry picked from commit bd1741653d)

* re-format

* re-format
This commit is contained in:
Alexander Zobnin
2024-10-03 18:32:51 +03:00
committed by GitHub
parent 7ecfc9e2e4
commit 2331c4b6a9
10 changed files with 89 additions and 67 deletions
@@ -20,8 +20,8 @@ type commonStore interface {
type readStore interface {
commonStore
Get(ctx context.Context, query *annotations.ItemQuery, accessResources *accesscontrol.AccessResources) ([]*annotations.ItemDTO, error)
GetTags(ctx context.Context, query *annotations.TagsQuery) (annotations.FindTagsResult, error)
Get(ctx context.Context, query annotations.ItemQuery, accessResources *accesscontrol.AccessResources) ([]*annotations.ItemDTO, error)
GetTags(ctx context.Context, query annotations.TagsQuery) (annotations.FindTagsResult, error)
}
type writeStore interface {