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: 4853 - new "dist" subfolder for server attribute images #4854

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

monsieurtanuki
Copy link
Contributor

What

Changed https://static.openfoodfacts.org/images/attributes/ into https://static.openfoodfacts.org/images/attributes/dist/

Fixes bug(s)

Part of

@monsieurtanuki monsieurtanuki requested a review from a team as a code owner November 24, 2023 17:19
@github-actions github-actions bot added 🥫 Product page 🤗 Onboarding We need to onboard users on how the app works, but also on content like Nutri-Score, Eco-Score… labels Nov 24, 2023
@codecov-commenter
Copy link

Codecov Report

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

Comparison is base (5eb9db7) 9.87% compared to head (07ddb3f) 9.78%.
Report is 11 commits behind head on develop.

Files Patch % Lines
...app/lib/pages/product/product_incomplete_card.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #4854      +/-   ##
==========================================
- Coverage     9.87%   9.78%   -0.10%     
==========================================
  Files          312     313       +1     
  Lines        15820   15957     +137     
==========================================
- Hits          1562    1561       -1     
- Misses       14258   14396     +138     

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

Copy link
Member

@teolemon teolemon left a comment

Choose a reason for hiding this comment

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

Is there a way to factorize all of this ?

@teolemon teolemon merged commit 34f0001 into openfoodfacts:develop Nov 24, 2023
6 checks passed
@monsieurtanuki
Copy link
Contributor Author

Is there a way to factorize all of this ?

@teolemon In this PR there are 2 dart files, where we can use a const in order to share the same image root url.

There are also 2 json asset files.
One of them we won't need anymore: it's the onboarding "best product", to be deprecated with the new onboarding.
The other one is the default attribute list in English, when we cannot reach the server at onboarding/language time. I think we'll still need that file. Less immediate to refactor cleanly.

Thanks to @g123k's recent PR from now on we don't really care about wrong URLs of files we already have in assets.
Would be different for new files.

Please create a new issue if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤗 Onboarding We need to onboard users on how the app works, but also on content like Nutri-Score, Eco-Score… 🥫 Product page
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix the current hard-coded https://static.openfoodfacts.org/images/ URLs
3 participants