[v10.4.x] Annotations: Fix composite store read (#94179)

* Annotations: Fix composite store read (#94158)

* Annotations: Fix composite store read

* Add test

* check error

(cherry picked from commit bd1741653d)

* re-format
This commit is contained in:
Alexander Zobnin
2024-10-04 11:02:05 +02:00
committed by GitHub
parent 8db7d753cb
commit e8b2507d97
10 changed files with 91 additions and 68 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 {