-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix incorrect document count in stats after clearing all documents #5754
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
Fix incorrect document count in stats after clearing all documents #5754
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.
Hey @kametsun 👋
Thank you very much for your work. I just rebased on another branch, release-v1.16.0,
as I would like to have it for v1.16 🎉 Can you rebase and/or cherry-pick your commits so that your PR only has your two commits, please?
Have a nice day 🌵
Update database stats after clearing documents to ensure /stats endpoint returns correct numberOfDocuments: 0 instead of stale count.
9133b3f
to
9a9be76
Compare
@Kerollmops |
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.
Thank you very much for the changes 🙏
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.
fd8b245
Pull Request
Related issue
Fixes #5750
What does this PR do?
/stats
endpoint after clearing all documentsClearDocuments::execute()
PR checklist
Please check if your PR fulfills the following requirements: