Skip to content

Conversation

@pierrejeambrun
Copy link
Member

@pierrejeambrun pierrejeambrun commented May 28, 2025

Fix widget warning error:
Screenshot 2025-05-28 at 18 40 03

That's caused in core hooks, because those are initialized when instanciating the ProvidersManager and then cached. (ProvidersManager is a singleton therefore we end up with unmocked hooks in the hook_meta endpoint).

After the fix, no more error, we have the form available in the front-end for the fs hook:
Screenshot 2025-05-28 at 18 41 17

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label May 28, 2025
@pierrejeambrun pierrejeambrun self-assigned this May 28, 2025
@pierrejeambrun pierrejeambrun added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label May 28, 2025
@pierrejeambrun pierrejeambrun added this to the Airflow 3.0.2 milestone May 28, 2025
@pierrejeambrun pierrejeambrun merged commit 4fd29c5 into apache:main Jun 2, 2025
97 checks passed
@pierrejeambrun pierrejeambrun deleted the fix-widget-error branch June 2, 2025 14:06
github-actions bot pushed a commit that referenced this pull request Jun 2, 2025
* Fix widget error for core hooks

* Fix CI
(cherry picked from commit 4fd29c5)

Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
@github-actions
Copy link

github-actions bot commented Jun 2, 2025

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

@pierrejeambrun
Copy link
Member Author

This makes me realize that even before that PR we were storing mocked non core hooks in the Providers manager. Now all of them are mocked and in the cache, that's not a big deal because the api server process does not use the ProviderManager hooks, but that's not clean and to keep in mind.

pierrejeambrun added a commit that referenced this pull request Jun 2, 2025
* Fix widget error for core hooks

* Fix CI
(cherry picked from commit 4fd29c5)

Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
kaxil pushed a commit that referenced this pull request Jun 3, 2025
* Fix widget error for core hooks

* Fix CI
(cherry picked from commit 4fd29c5)

Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
* Fix widget error for core hooks

* Fix CI
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 backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants