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

fix: facets for EU packager codes (EC) and for users #9380

Merged
merged 7 commits into from
Nov 28, 2023
Merged

Conversation

stephanegigandet
Copy link
Contributor

@stephanegigandet stephanegigandet requested a review from a team as a code owner November 23, 2023 09:21
@teolemon teolemon added the 📍🏭 Packager codes https://blog.openfoodfacts.org/en/news/discover-what-food-products-are-made-near-you-with-made-near- label Nov 23, 2023
@github-actions github-actions bot added the GitHub Actions Pull requests that update Github_actions code label Nov 23, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (3726da2) 48.81% compared to head (0692fdc) 48.84%.
Report is 17 commits behind head on main.

Files Patch % Lines
lib/ProductOpener/Display.pm 40.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9380      +/-   ##
==========================================
+ Coverage   48.81%   48.84%   +0.02%     
==========================================
  Files          66       66              
  Lines       20355    20380      +25     
  Branches     4883     4891       +8     
==========================================
+ Hits         9937     9955      +18     
- Misses       9161     9166       +5     
- Partials     1257     1259       +2     

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

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

LGTM although I don't understand how it solves the attribution bug (and don't we have any test on this ?).

@stephanegigandet
Copy link
Contributor Author

LGTM although I don't understand how it solves the attribution bug (and don't we have any test on this ?).

The attribution bug is fixed by
my %valid_params = (code => 1, creator => 1);

This is the list of parameters that can be used as filters even though they are not tag fields.

I'll add a comment and a test.

@stephanegigandet
Copy link
Contributor Author

@alexgarel I added a test and a comment to show that it fixes the contributors facet

Copy link

sonarcloud bot commented Nov 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

Perfect.

@alexgarel alexgarel merged commit f8584ad into main Nov 28, 2023
13 checks passed
@alexgarel alexgarel deleted the fix-facets branch November 28, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Display GitHub Actions Pull requests that update Github_actions code 📍🏭 Packager codes https://blog.openfoodfacts.org/en/news/discover-what-food-products-are-made-near-you-with-made-near- 🧪 tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Contribution count over-reported after server migration
4 participants