Skip to content

AIP-38 Allow specifiying injectable server url#46900

Merged
pierrejeambrun merged 4 commits intoapache:mainfrom
astronomer:46550-injectable-server-url
Feb 21, 2025
Merged

AIP-38 Allow specifiying injectable server url#46900
pierrejeambrun merged 4 commits intoapache:mainfrom
astronomer:46550-injectable-server-url

Conversation

@pierrejeambrun
Copy link
Member

@pierrejeambrun pierrejeambrun commented Feb 19, 2025

Closes: #46550

How to test

  • Start the front-end with breeze with or without the dev-mode on.
  • In the airflow config set the fastapi.base_url to your fastapi server (localhost:9091)
  • Set the appropriate CORS rules for your server to allow vite to perform xhr requests: export AIRFLOW__API__ACCESS_CONTROL_ALLOW_ORIGINS="http://localhost:29090"
  • Start the fastapi server on the specified port (by default 9091) airflow fastapi-api with the (CORS env variable set in the previous step)
  • Go to the UI in breeze http://localhost:29091/webapp/ requests should go to your standalone fastapi server instead of the breeze one (9091 instead of 29091)

Screenshot 2025-02-19 at 16 52 14

Note: Follow up is #46548 and then documentation update on how to deploy the api server and the front-end separately without rebuilding artifacts.

@pierrejeambrun pierrejeambrun added the AIP-38 Modern Web Application label Feb 19, 2025
@pierrejeambrun pierrejeambrun added this to the Airflow 3.0.0 milestone Feb 19, 2025
@pierrejeambrun pierrejeambrun self-assigned this Feb 19, 2025
@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Feb 19, 2025
@pierrejeambrun
Copy link
Member Author

pierrejeambrun commented Feb 20, 2025

Need to fix the config endpoint that is reached, it’is not the correct one.

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.

As other endpoint, config is not fetched from the appropriate endpoint.

It behaved differently because it's used in a pre-loader.

Screenshot 2025-02-21 at 15 43 40

@pierrejeambrun pierrejeambrun force-pushed the 46550-injectable-server-url branch from 3cc8bb7 to 14b990e Compare February 21, 2025 14:46
@pierrejeambrun pierrejeambrun merged commit b751983 into apache:main Feb 21, 2025
45 checks passed
@pierrejeambrun pierrejeambrun deleted the 46550-injectable-server-url branch February 21, 2025 16:47
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
* AIP-38 Allow specifiying injectable server url

* Add templatable backend url from config

* Fix CI

* Move the base init logic to queryClient so the config loader uses the appropriate endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-38 Modern Web Application area:UI Related to UI/UX. For Frontend Developers.

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

AIP-38 Allow specifying injectable server url (XHR Requests)

5 participants

Comments