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

Backend: Add missing error translation #5979

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Dec 2, 2024

We were missing a translation here, but never noticed, because we were not testing for an actual human-understandable string.

This is broken in the v4.0, v4.1, v4.2 and v4.3 branches with a noisier error message, because in those branches, I18n.t("unavailable") is different from t("unavailable").

@mamhoff mamhoff requested a review from a team as a code owner December 2, 2024 16:48
@github-actions github-actions bot added changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem labels Dec 2, 2024
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks! 👏🏻

@tvdeyen tvdeyen added backport-v4.0 Backport this pull-request to v4.0 backport-v4.1 Backport this pull-request to v4.1 backport-v4.2 Backport this pull-request to v4.2 backport-v4.3 Backport this pull-request to v4.3 backport-v4.4 Backport this pull-request to v4.4 labels Dec 2, 2024
@tvdeyen tvdeyen enabled auto-merge December 2, 2024 16:50
@tvdeyen
Copy link
Member

tvdeyen commented Dec 2, 2024

@mamhoff there is this in the failing builds

The following files need to be normalized:
    config/locales/en.yml
  Please run `i18n-tasks normalize' to fix

auto-merge was automatically disabled December 2, 2024 17:55

Head branch was pushed to by a user without write access

@mamhoff mamhoff force-pushed the fix-missing-translation-spec branch from 6f06da5 to d2fa51b Compare December 2, 2024 17:56
@mamhoff
Copy link
Contributor Author

mamhoff commented Dec 2, 2024

Fixed

We were missing a translation here, but never noticed, because we were
not testing for an actual human-understandable string.

This is broken in the v4.0, v4.1, v4.2 and v4.3 branches with a noisier
error message, because in those branches, `I18n.t("unavailable")` is
different from `t("unavailable")`.
@mamhoff mamhoff force-pushed the fix-missing-translation-spec branch from d2fa51b to 506ddfc Compare December 3, 2024 09:10
@mamhoff
Copy link
Contributor Author

mamhoff commented Dec 3, 2024

Force-pushed to force a spec re-run, as the admin suite failed to build right.

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.81%. Comparing base (9013f71) to head (506ddfc).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5979   +/-   ##
=======================================
  Coverage   87.81%   87.81%           
=======================================
  Files         476      476           
  Lines       11656    11656           
=======================================
  Hits        10236    10236           
  Misses       1420     1420           

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

@tvdeyen tvdeyen added backport-v4.0 Backport this pull-request to v4.0 and removed backport-v4.0 Backport this pull-request to v4.0 labels Dec 3, 2024
@tvdeyen tvdeyen merged commit 1329331 into solidusio:main Dec 3, 2024
19 checks passed
Copy link

github-actions bot commented Dec 3, 2024

💚 All backports created successfully

Status Branch Result
v4.0
v4.1
v4.2
v4.3
v4.4

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v4.0 Backport this pull-request to v4.0 backport-v4.1 Backport this pull-request to v4.1 backport-v4.2 Backport this pull-request to v4.2 backport-v4.3 Backport this pull-request to v4.3 backport-v4.4 Backport this pull-request to v4.4 changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants