Skip to content

Commit

Permalink
Trigger a space reindex when the space has been renamed
Browse files Browse the repository at this point in the history
Fixes #6289 (in combination with cs3org/reva#3889)
  • Loading branch information
aduffeck authored and fschade committed Jul 10, 2023
1 parent 8fca2be commit ad24360
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/search/pkg/search/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func HandleEvents(s Searcher, bus events.Consumer, logger log.Logger, cfg *confi
events.FileVersionRestored{},
events.TagsAdded{},
events.TagsRemoved{},
events.SpaceRenamed{},
}

if cfg.Events.AsyncUploads {
Expand Down Expand Up @@ -103,6 +104,8 @@ func HandleEvents(s Searcher, bus events.Consumer, logger log.Logger, cfg *confi
indexSpaceDebouncer.Debounce(getSpaceID(ev.Ref), getUser(ev.SpaceOwner, ev.Executant))
case events.UploadReady:
indexSpaceDebouncer.Debounce(getSpaceID(ev.FileRef), getUser(ev.SpaceOwner, ev.ExecutingUser.Id))
case events.SpaceRenamed:
indexSpaceDebouncer.Debounce(ev.ID, getUser(ev.Executant))
}

if err != nil {
Expand Down

0 comments on commit ad24360

Please sign in to comment.