Skip to content

feat(search): index ArbitraryMetadataUpdated events#3035

Open
flash7777 wants to merge 1 commit into
opencloud-eu:mainfrom
flash7777:feature/search-metadata-event
Open

feat(search): index ArbitraryMetadataUpdated events#3035
flash7777 wants to merge 1 commit into
opencloud-eu:mainfrom
flash7777:feature/search-metadata-event

Conversation

@flash7777

Copy link
Copy Markdown

Summary

Subscribe to the new ArbitraryMetadataUpdated event and trigger UpsertItem + IndexSpace debounce in the search service. This matches the existing pattern for TagsAdded/TagsRemoved.

Motivation

Custom metadata set via WebDAV PROPPATCH or the Graph Metadata API was invisible to search until the next full space re-index, because SetArbitraryMetadata did not emit any event. This was the only write operation missing from the event pipeline.

Depends on

Changes

  • services/search/pkg/service/event/service.go: add events.ArbitraryMetadataUpdated{} to subscribe list, add case to event handler (+4 lines)

Test plan

  • Deployed reva patch on kosmos instance, verified event is published on NATS after PROPPATCH
  • End-to-end: set metadata via PROPPATCH, verify search finds it (requires reva#712 merge)

Subscribe to the new ArbitraryMetadataUpdated event from reva and
trigger UpsertItem + IndexSpace debounce, matching the existing
pattern for TagsAdded/TagsRemoved.

Without this, custom metadata set via WebDAV PROPPATCH or the Graph
Metadata API is invisible to search until the next full space re-index.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 duplication

Metric Results
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant