Skip to content

UI: Fix preventRunningTasks showing as raw i18n key in Clear Task dialogs - #71045

Merged
bbovenzi merged 4 commits into
apache:mainfrom
krystianpl26:claude/airflow-issue-71007-ndqsk5
Aug 6, 2026
Merged

bbovenzi merged 4 commits into
apache:mainfrom
krystianpl26:claude/airflow-issue-71007-ndqsk5

Conversation

@krystianpl26

@krystianpl26 krystianpl26 commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Users on some non-English locales (Italian, Thai) saw the raw i18n key
runAndTaskActions.options.preventRunningTasks instead of translated text
in the Clear Task Instance / Bulk Clear dialogs, because those two locale
files were missing the key entirely.

Separately, an English-locale user reported the same raw-key symptom while
every other label in the same dialog rendered correctly translated. That
pointed at a second, more subtle bug: i18n/config.ts cache-busts the
translation loadPath with the running Airflow version, but silently fell
back to an un-versioned request whenever the version lookup failed. Behind
a caching CDN or browser cache (e.g. a managed deployment like Astronomer),
that can serve a translation bundle cached from before a key was added —
explaining why older keys translate fine while a newer one doesn't. The
fallback now uses a timestamp so the cache is always busted.

closes: #71007


Was generative AI tooling used to co-author this PR?
  • Yes (Claude Code)

Generated-by: Claude Code following the guidelines

@boring-cyborg

boring-cyborg Bot commented Aug 4, 2026

Copy link
Copy Markdown

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example Dag that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@boring-cyborg boring-cyborg Bot added area:translations area:UI Related to UI/UX. For Frontend Developers. translation:it translation:th labels Aug 4, 2026
krystianpl26 added 2 commits August 3, 2026 21:47
The Italian and Thai locale files were missing the
runAndTaskActions.options.preventRunningTasks key that was added to
the English locale, so users on those locales saw the raw
translation key instead of localized text in the clear task dialogs.
The i18n loadPath is cache-busted with the running Airflow version, but
on a failed VersionService.getVersion() call it silently fell back to
an un-versioned request. Behind a caching CDN or browser cache (e.g. a
managed deployment like Astronomer), that can serve a translation
bundle cached from before a key was added, so newer keys render as raw
i18n keys (see #71007) while older, already-cached keys translate
fine. Fall back to a timestamp instead so the cache is always busted.
@krystianpl26
krystianpl26 force-pushed the claude/airflow-issue-71007-ndqsk5 branch from f3801ea to ea72bd6 Compare August 4, 2026 02:47
@bbovenzi
bbovenzi merged commit 3dd1370 into apache:main Aug 6, 2026
88 checks passed
@boring-cyborg

boring-cyborg Bot commented Aug 6, 2026

Copy link
Copy Markdown

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-3-test PR Link

bbovenzi added a commit that referenced this pull request Aug 6, 2026
…ear Task dialogs (#71045) (#71240)

* UI: Add missing preventRunningTasks translation for Italian and Thai

The Italian and Thai locale files were missing the
runAndTaskActions.options.preventRunningTasks key that was added to
the English locale, so users on those locales saw the raw
translation key instead of localized text in the clear task dialogs.

* UI: Bust the translation cache when the version lookup fails

The i18n loadPath is cache-busted with the running Airflow version, but
on a failed VersionService.getVersion() call it silently fell back to
an un-versioned request. Behind a caching CDN or browser cache (e.g. a
managed deployment like Astronomer), that can serve a translation
bundle cached from before a key was added, so newer keys render as raw
i18n keys (see #71007) while older, already-cached keys translate
fine. Fall back to a timestamp instead so the cache is always busted.

* Apply suggestion from @bbovenzi

---------
(cherry picked from commit 3dd1370)

Co-authored-by: krystianpl26 <[email protected]>
Co-authored-by: krystianpl26 <[email protected]>
Co-authored-by: Brent Bovenzi <[email protected]>
Co-authored-by: Brent Bovenzi <[email protected]>
potiuk pushed a commit to jason810496/airflow that referenced this pull request Aug 13, 2026
…ear Task dialogs (apache#71045) (apache#71240)

* UI: Add missing preventRunningTasks translation for Italian and Thai

The Italian and Thai locale files were missing the
runAndTaskActions.options.preventRunningTasks key that was added to
the English locale, so users on those locales saw the raw
translation key instead of localized text in the clear task dialogs.

* UI: Bust the translation cache when the version lookup fails

The i18n loadPath is cache-busted with the running Airflow version, but
on a failed VersionService.getVersion() call it silently fell back to
an un-versioned request. Behind a caching CDN or browser cache (e.g. a
managed deployment like Astronomer), that can serve a translation
bundle cached from before a key was added, so newer keys render as raw
i18n keys (see apache#71007) while older, already-cached keys translate
fine. Fall back to a timestamp instead so the cache is always busted.

* Apply suggestion from @bbovenzi

---------
(cherry picked from commit 3dd1370)

Co-authored-by: krystianpl26 <[email protected]>
Co-authored-by: krystianpl26 <[email protected]>
Co-authored-by: Brent Bovenzi <[email protected]>
Co-authored-by: Brent Bovenzi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:translations area:UI Related to UI/UX. For Frontend Developers. translation:it translation:th

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runAndTaskActions.options.preventRunningTasks shows when clearing Tasks rather than proper display text

3 participants