-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Product changes on the pro platform incorrectly written to the public platform MongoDB database #11064
Comments
Investigation
looking at import logs
-> looks ok Debugging The problem can be reproduced in local dev environment. Adding more logs in store_product() in Products.pm:
the output is a bit messy, but the issue seems to be that the database is off instead of off-pro…
Indeed I made a mistake when changing the code for the merge of the flavours, and off-pro is writing to MongoDB database of the public platform.. :( |
…ase (#11065) fixes #11064 debug notes in the issue: #11064 (comment)
Script used to refresh products in MongoDB, following the bug that created OFF pro products on the OFF mongodb database: #11064 --------- Co-authored-by: Alex Garel <[email protected]>
Bug reported by @manon-corneille on Slack: https://openfoodfacts.slack.com/archives/C01E2SPNQJW/p1732725011612459
There is a bug that was introduced in the recent code change for better support of product types that resulted in the pro platform writing products to the public platform MongoDB database.
We use MongoDB as a query cache and not at the source of truth, so there's no data loss, but we will need to clean MongoDB to reindex products from the pro platform.
The text was updated successfully, but these errors were encountered: