-
-
Notifications
You must be signed in to change notification settings - Fork 416
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: Missing Template Error: Update ecoscore_details.tt.html to environmental_score_details.tt.html #11505
base: main
Are you sure you want to change the base?
fix: Missing Template Error: Update ecoscore_details.tt.html to environmental_score_details.tt.html #11505
Conversation
…roduct/includes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@stephanegigandet is there a way to check globally for missing includes in templates ? Wouldn't that be a great test to write ? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11505 +/- ##
=======================================
Coverage 49.85% 49.86%
=======================================
Files 83 83
Lines 22964 22964
Branches 5501 5501
=======================================
+ Hits 11449 11450 +1
Misses 10121 10121
+ Partials 1394 1393 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Can anyone help me to know why was this job failed ?? I am seeing there was the issue of cache issue ??. @alexgarel |
@JagjeevanAK you can look at the details of the failed test, and in the log search for "fail": This is because your PR changes the HTML output on some pages (which in this case is a good thing: it removes the error message). You can run "make update_tests_results" to update the tests results locally. or /update_tests_results in a GitHub comment |
/update_tests_results |
@stephanegigandet /update_tests_results does not work when this is a PR from a forked repository… |
/update_tests_results does not work for PRs from forked repositories. Since this PR is from my fork, I need to manually update the test results. I'll run make update_tests_results locally and push the changes. |
Head branch was pushed to by a user without write access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this file change it was by mistake. which has already been committed in other PR.
Still having issue don't how to overcome it will look at the logs. |
For some reason the port is different:
|
@JagjeevanAK did you do something specific to change the port from 80 to 8080? or maybe it's done on MacOS |
Sir, It was just for my convenience should I re run the test and push again with port 80 ? |
4952997
to
5a41893
Compare
@stephanegigandet can you help me to resolve this failed test issue ? |
|
What
This PR updates references to
ecoscore_details.tt.html
, which was renamed as part of an earlier commit#11142
, to the new file nameenvironmental_score_details.tt.html
.Issue Fixed
The website was displaying an error on this page: https://world.openfoodfacts.org/cgi/product_image.pl?code=8033028910213&id=front_en
This happened because:
ecoscore_details.tt.html
template was renamed toenvironmental_score_details.tt.html
as part of the Eco-Score transition.Changes Made
ecoscore_details.tt.html
toenvironmental_score_details.tt.html
in:.tt.html
)ecoscore_details.tt.html
but there was no such thing present,..pm
).conf
,.json
,.yml
, etc.)[% INCLUDE ... %]
statements correctly reference the new template.Feature required changes
ecoscore_details.tt.html
, they may need updates as well.This should be good for submission! Let me know if you need refinements. 🚀
``
Screenshot
Original
Updated change
Related issue(s) and discussion
#11142: Rename Eco-Score fields to Environmental Score
I above issue there was about renaming of ecoscore to environmental_score by stephanegigandet but file names in templates was not made.
If there is an issue in my Pull request then I am open to make necessary changes to it.