use event executant to index tags (#5405)

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

No files matched your search

+5
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
+2 -2
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: