Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger searchable when records are updated. #1699

Merged
merged 6 commits into from
May 7, 2024

Conversation

alecritson
Copy link
Collaborator

There are numerous places in the panel, like relationship managers, which don't trigger it's owner record's Observers and as a consequence it's not always clear if a searchable record has been updated on the index.

Whilst the use of observers will still work this PR looks to also hook into various after triggers in the panel to manually call searchable on the affected model.

Copy link

vercel bot commented Apr 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 1:31pm

@alecritson alecritson marked this pull request as ready for review April 18, 2024 10:50
@glennjacobs glennjacobs added this to the v1.0 milestone Apr 30, 2024
@glennjacobs
Copy link
Contributor

@alecritson I think we should be putting events into the admin panel and then listening to them for functionality like this.

@glennjacobs glennjacobs merged commit 3e85ee9 into 1.x May 7, 2024
23 checks passed
@glennjacobs glennjacobs deleted the feat/add-searchable-triggers branch May 7, 2024 14:10
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.

None yet

2 participants