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

feat: store org data in mongo db #10379

Merged
merged 5 commits into from
Jun 3, 2024

Conversation

TheSussex
Copy link
Collaborator

What

I updated the lib/ProductOpener/Orgs.pm file with the code that stores organization objects in a new "orgs" collection of the "off" database in MongoDB.

This will be useful in particular to create a dashboard for the administrators of the pro platform, with a table that lists all organizations.

@github-actions github-actions bot added 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers 🏭 Orgs labels Jun 1, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.85%. Comparing base (dc04d18) to head (d3a7312).
Report is 369 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10379      +/-   ##
==========================================
+ Coverage   49.54%   49.85%   +0.31%     
==========================================
  Files          67       74       +7     
  Lines       20650    21286     +636     
  Branches     4980     5097     +117     
==========================================
+ Hits        10231    10613     +382     
- Misses       9131     9378     +247     
- Partials     1288     1295       +7     

☔ 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 1, 2024 14:58
@TheSussex TheSussex requested a review from a team as a code owner June 1, 2024 14:58
Copy link

sonarcloud bot commented Jun 1, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% 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.

Looks good, thank you!

@stephanegigandet stephanegigandet merged commit 8a3b1fe into openfoodfacts:main Jun 3, 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.

Store org data in MongoDB to ease pro platform dashboard
3 participants