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 details tab log url detection #42104

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

pierrejeambrun
Copy link
Member

Use the same regexp that we have for the legacy log page which is more complex and robust. This will also enforce consistancy between the two pages. Cf screenshot the url was not properly matched, !(( was causing trouble.

Before

Screenshot 2024-09-09 at 15 33 19

After

Screenshot 2024-09-09 at 15 32 37

@boring-cyborg boring-cyborg bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Sep 9, 2024
@pierrejeambrun pierrejeambrun added this to the Airflow 2.10.2 milestone Sep 9, 2024
@pierrejeambrun
Copy link
Member Author

Needs to be backported

@pierrejeambrun pierrejeambrun added the type:bug-fix Changelog: Bug Fixes label Sep 9, 2024
@pierrejeambrun
Copy link
Member Author

pierrejeambrun commented Sep 9, 2024

Just added a test as well. There's a couple of html entity decimal code involved for the assertion to escape the ' and &,I couldn't find a better way to assert this complex url in the test.

@potiuk
Copy link
Member

potiuk commented Sep 9, 2024

Just added a test as well. There's a couple of html entity decimal code involved for the assertion to escape the ' and &,I couldn't find a better way to assert this complex url in the test.

Nice.

You have problem - introduce regexp, now you have 2 problems.

Very apt.

@pierrejeambrun pierrejeambrun merged commit b543932 into apache:main Sep 9, 2024
51 checks passed
@pierrejeambrun pierrejeambrun deleted the url-detection-details-log branch September 9, 2024 15:14
pierrejeambrun added a commit to astronomer/airflow that referenced this pull request Sep 9, 2024
* Fix details tab log url detection

* Add test

(cherry picked from commit b543932)
potiuk pushed a commit that referenced this pull request Sep 9, 2024
* Fix details tab log url detection

* Add test

(cherry picked from commit b543932)
ephraimbuddy pushed a commit that referenced this pull request Sep 13, 2024
* Fix details tab log url detection

* Add test

(cherry picked from commit b543932)
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.

4 participants