Skip to content

Fix url_for_asset fallback and 404 on DAG Audit Log#31233

Merged
jedcunningham merged 1 commit into
apache:mainfrom
astronomer:fix_url_for_asset_fallback
May 12, 2023
Merged

Fix url_for_asset fallback and 404 on DAG Audit Log#31233
jedcunningham merged 1 commit into
apache:mainfrom
astronomer:fix_url_for_asset_fallback

Conversation

@jedcunningham

Copy link
Copy Markdown
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
@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.

3 participants