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 url_for_asset fallback and 404 on DAG Audit Log #31233

Merged
merged 1 commit into from
May 12, 2023

Conversation

jedcunningham
Copy link
Member

There was a 404 on the DAG Audit Log for bootstrap toggle css, which as far as I can tell, we aren't even trying to use. So we will no longer try and add it to the page.

This highlighted the fact that if we don't have an asset in the manifest, url_for_asset would just leave off the filename completely. This resulted in the href being just /static/, with no filename as a breadcrumb in the eventual 404. Now we will just use the filename as-is so the 404 is more meaningful.

There was a 404 on the DAG Audit Log for bootstrap toggle css, which as
far as I can tell, we aren't even trying to use. So we will no longer
try and add it to the page.

This highlighted the fact that if we don't have an asset in the
manifest, `url_for_asset` would just leave off the filename completely.
This resulted in the href being just `/static/`, with no filename as a
breadcrumb in the eventual 404. Now we will just use the filename as-is
so the 404 is more meaningful.
@boring-cyborg boring-cyborg bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels May 11, 2023
@jedcunningham jedcunningham added this to the Airflow 2.6.2 milestone May 12, 2023
@jedcunningham jedcunningham merged commit 2b4ad8a into apache:main May 12, 2023
46 checks passed
@jedcunningham jedcunningham deleted the fix_url_for_asset_fallback branch May 12, 2023 19:12
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Jun 8, 2023
eladkal pushed a commit that referenced this pull request Jun 8, 2023
There was a 404 on the DAG Audit Log for bootstrap toggle css, which as
far as I can tell, we aren't even trying to use. So we will no longer
try and add it to the page.

This highlighted the fact that if we don't have an asset in the
manifest, `url_for_asset` would just leave off the filename completely.
This resulted in the href being just `/static/`, with no filename as a
breadcrumb in the eventual 404. Now we will just use the filename as-is
so the 404 is more meaningful.

(cherry picked from commit 2b4ad8a)
eladkal pushed a commit that referenced this pull request Jun 9, 2023
There was a 404 on the DAG Audit Log for bootstrap toggle css, which as
far as I can tell, we aren't even trying to use. So we will no longer
try and add it to the page.

This highlighted the fact that if we don't have an asset in the
manifest, `url_for_asset` would just leave off the filename completely.
This resulted in the href being just `/static/`, with no filename as a
breadcrumb in the eventual 404. Now we will just use the filename as-is
so the 404 is more meaningful.

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

None yet

3 participants