-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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. |
looks like the same issue I reported earlier this year which may have been closed by mistake #5709 |
I think this has been closed by mistake! the commit message in 29ad1fc diverges from the description of #9932. The original description claimed to fix this issue, but was later updated to note that it fixes a tangential problem. The fix for this bug remains WIP in #9623, but somehow the stale PR description got included in the merge (?) - Fixes https://github.com/payloadcms/payload/issues/9443 (partially, see also: https://github.com/payloadcms/payload/pull/9623)
+ Related https://github.com/payloadcms/payload/issues/9443 (see also: https://github.com/payloadcms/payload/pull/9623) |
🚀 This is included in version v3.9.0 |
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: