Skip to content
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

chore: add org update script #10393

Merged

Conversation

TheSussex
Copy link
Collaborator

What

Added a script to the /scripts folder. This script updates the newly created orgs collection in the MongoDB database with data from .sto files of existing organisations.

@github-actions github-actions bot added 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers 🏭 Orgs labels Jun 5, 2024
@TheSussex TheSussex changed the title Add org update script chore: add org update script Jun 5, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.84%. Comparing base (dc04d18) to head (45b23fa).
Report is 395 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10393      +/-   ##
==========================================
+ Coverage   49.54%   49.84%   +0.30%     
==========================================
  Files          67       74       +7     
  Lines       20650    21313     +663     
  Branches     4980     5107     +127     
==========================================
+ Hits        10231    10624     +393     
- Misses       9131     9389     +258     
- Partials     1288     1300      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TheSussex TheSussex marked this pull request as ready for review June 6, 2024 14:10
@TheSussex TheSussex requested a review from a team as a code owner June 6, 2024 14:10
Copy link
Contributor

@stephanegigandet stephanegigandet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

Copy link

sonarcloud bot commented Jun 10, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.1% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@stephanegigandet stephanegigandet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@stephanegigandet stephanegigandet merged commit 165bbde into openfoodfacts:main Jun 11, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏭 Orgs 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Write a script to go through all organizations .sto files on disk and save them to MongoDB orgs collection.
3 participants