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 problem that links in legacy log view can not be clicked #38882

Merged

Conversation

jscheffl
Copy link
Contributor

@jscheffl jscheffl commented Apr 9, 2024

During production rollout of (my bad) contributions of Airflow 2.9.0 I realized that the links from the text in the legacy log view are generated but not clickable. The event-handler for the log grouping masks them.

This PR fixes the snipped of JavaScript and fixes the "non clickable links".

As making this fix in discussions with others we realized thatthe ansi_up library also creates links, in order to prevent problems with this in comparison with the link generation we do in the other script code, this PR disables link generation from ansi_up. Double link generation looks strange. Proposing to keep our "existing" regex as this was stable and the result I got from ansi_up were not directly working, might be a bug in this lib.

How to test:

  • Run Airflow from this PR
  • Run the example_bash_operator DAG
  • Open the logs from the task run_after_loop
  • Click on the log tab
  • Click in the "more Logs" link on the right side to get to legacy log view
  • Click on the link to apache, see it opens

@boring-cyborg boring-cyborg bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Apr 9, 2024
@jscheffl jscheffl added this to the Airflow 2.9.1 milestone Apr 9, 2024
@jscheffl jscheffl added the type:bug-fix Changelog: Bug Fixes label Apr 9, 2024
@jscheffl jscheffl merged commit 87acf61 into apache:main Apr 10, 2024
39 checks passed
@jscheffl jscheffl deleted the bugfix/double-linkification-by-coloring branch April 10, 2024 22:26
jedcunningham pushed a commit that referenced this pull request Apr 26, 2024
* Remove problems by double-linkification from coloring

* Fix problem that links in legacy log view can not be clicked

(cherry picked from commit 87acf61)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants