-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Delete collection from Elasticsearch index #490
Delete collection from Elasticsearch index #490
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hole in one !
Nice catch on remembering to remove from the index, and nice PR with nothing to change!
Well done ! 💯
For my own curiosity, could you explain why you changed a few instances of UserCollectionItem({collectionId: collection.get('id')})
into UserCollectionItem().where('collectionId', collection.get('id'))
?
I saw the same in another PR, and I thought they were pretty much interchangeable (and now I'm thinking i've been missing something this whole time)
I've seen that sometimes |
Huh, interesting. I wonder why that is. |
I could be wrong too. But i experienced it at many places. |
Next time i see a similar issue, I'll check it properly. Will use debug true and see what happens |
Problem
After deleting the collection from Database, it has to be deleted from ES index as well