Skip to content

Backend: Add missing error translation#5979

Merged
tvdeyen merged 1 commit intosolidusio:mainfrom
mamhoff:fix-missing-translation-spec
Dec 3, 2024
Merged

Backend: Add missing error translation#5979
tvdeyen merged 1 commit intosolidusio:mainfrom
mamhoff:fix-missing-translation-spec

Conversation

@mamhoff
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

mamhoff commented Dec 3, 2024

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

@codecov
Copy link
Copy Markdown

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.

@github-actions
Copy link
Copy Markdown

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