-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Search records don't get deleted when related document is deleted #9443
Comments
Please add a reproduction in order for us to be able to investigate. Depending on the quality of reproduction steps, this issue may be closed if no reproduction is provided. Why was this issue marked with the
|
Hey @TimLanzi, I'm not able to reproduce your issue. The plugin itself hasn't changed much over the past several releases aside from some minor logging stuff. Some more details about your environment would be nice. Are you using db-sqlite by chance? Do you have a custom Try to include a minimal reproduction of the issue you're experiencing because I don't see anything out of the ordinary here. See here: |
Hey @akhrarovsaid I was using db-postgres in my project. Everything was directly from the website template I get from searchPlugin({
collections: ['posts'],
}), The search result record still does not delete for me with this change. To get this result:
All my environment info is above. I can confirm that with the db-mongo adapter, the delete functions as expected. All my issues have been when I use the db-postgres adpater. |
Yep, reproduced on monorepo with postgres. I also noticed that the tests in a PR I authored started to fail against relational db's like pg and thought it had something to do with the tests themselves even though the same tests were passing in The last time @r1tsuu You may find this interesting. |
Describe the Bug
When I delete a document that is synced with the search plugin, the search result document is still available.
Link to the code that reproduces this issue
N/A
Reproduction Steps
create-payload-app
. Use website template and postgres database.Which area(s) are affected? (Select all that apply)
plugin: search
Environment Info
The text was updated successfully, but these errors were encountered: