Skip to content

Conversation

@pierrejeambrun
Copy link
Member

@pierrejeambrun pierrejeambrun commented Apr 9, 2025

closes: #48825

This need additional work:

  • Adjust tests
  • Make sure outside of breeze and with a url prefix things are working as expected
  • This is a rough POC but need cleaning

Screenshot 2025-04-10 at 10 52 11

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:dev-tools area:UI Related to UI/UX. For Frontend Developers. labels Apr 9, 2025
@ashb ashb force-pushed the 48825-fix-default-base-url branch from 1fe0297 to ed9adac Compare April 9, 2025 21:41
@ashb ashb requested review from eladkal and o-nikolas as code owners April 9, 2025 21:41
@ashb
Copy link
Member

ashb commented Apr 9, 2025

I pushed a couple of changes -- (not tests yet, sorry) -- this was enough to get it working locally under any name I could reach in the browser, localhost, 127.0.0.1, and airflow.breeze.orb.local

@pierrejeambrun
Copy link
Member Author

I just fixed / added a few tests. I was able to verify the dagrun link for triggered dag run too:
Screenshot 2025-04-10 at 02 24 27

Copy link
Member Author

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breeze is working nicely (dev-mode vs non-dev mode as well as with url prefix /d12345/).

Screenshot 2025-04-10 at 02 26 37

@pierrejeambrun
Copy link
Member Author

A couple more tests need fixing and we should be good to go.

pierrejeambrun and others added 5 commits April 10, 2025 09:44
Whatever URL the browser made the request on obviously works, so lets use that
for the base url in our templates, rather than what ever is hard-coded in the
config.
This also adjusts `is_safe_url` so that it validates against wither the
configure base_url, or against the incoming base URL -- either one is allowed.
@pierrejeambrun pierrejeambrun force-pushed the 48825-fix-default-base-url branch from 6020625 to 7fa0eba Compare April 10, 2025 08:26
@pierrejeambrun pierrejeambrun requested a review from XD-DENG as a code owner April 10, 2025 08:26
@pierrejeambrun pierrejeambrun force-pushed the 48825-fix-default-base-url branch from 7fa0eba to 6b3fc59 Compare April 10, 2025 09:03
@ashb ashb changed the title Fix default base value Automatically set API base_url to a good value so UI is reachable locally Apr 10, 2025
@pierrejeambrun pierrejeambrun merged commit b58f027 into apache:main Apr 10, 2025
95 checks passed
@pierrejeambrun pierrejeambrun deleted the 48825-fix-default-base-url branch April 10, 2025 10:32
@vincbeck
Copy link
Contributor

This introduced a bug when running Airflow with Breeze, it redirects the user to http://localhost:8080/ which does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:dev-tools area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webserver URL returns blank page for airflow standalone for 3.0.0rc1

3 participants