use event executant to index tags (#5405)

This commit is contained in:
Florian Schade
2023-01-13 17:31:34 +01:00
committed by GitHub
parent 38a43df924
commit 1afd7c2a4b
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
Bugfix: Fix Search tag indexing
We've fixed an issue where search is not able to index tags for space resources.
https://github.com/owncloud/ocis/pull/5405

View File

@@ -96,9 +96,9 @@ func HandleEvents(s Searcher, bus events.Consumer, logger log.Logger, cfg *confi
case events.FileVersionRestored:
indexSpaceDebouncer.Debounce(getSpaceID(ev.Ref), getUser(ev.SpaceOwner, ev.Executant))
case events.TagsAdded:
s.UpsertItem(ev.Ref, getUser(ev.SpaceOwner, ev.Executant))
s.UpsertItem(ev.Ref, ev.Executant)
case events.TagsRemoved:
s.UpsertItem(ev.Ref, getUser(ev.SpaceOwner, ev.Executant))
s.UpsertItem(ev.Ref, ev.Executant)
case events.FileUploaded:
indexSpaceDebouncer.Debounce(getSpaceID(ev.Ref), getUser(ev.SpaceOwner, ev.Executant))
case events.UploadReady: