-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Fix connection form meta when fab provider is missing #49446
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 connection form meta when fab provider is missing #49446
Conversation
|
Args, with the mocking I added the target was actually to be independent of FAB. But at time of implementation FAB still was mandatory... so maybe this had not been tested sufficiently... sorry. I am still on the move, will be home by tomorrow evening. Earliest Sunday I'm able to really review and understand. WHat is the outcome if the exception is catched because dependencies are missing? Will just be no element displayed? |
…s route Not sure why this was added, or if it still serves any purpose, but for the core to not depend on flask appbuilder, we can't have code that tries to patch it. Alternative to apache#49446
|
Here's an alternative that just rips out the mocking. Seems to work with my local testing. |
…s route Not sure why this was added, or if it still serves any purpose, but for the core to not depend on flask appbuilder, we can't have code that tries to patch it. Alternative to apache#49446
As I understand if the element is missing (module not installed) it means that no provider depends on fab provider, which means that no |
ashb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do for 3.0
(cherry picked from commit abd6b30)
|
Thanks for the fix! I am very Sorry this caused RC4 :-( |
#47588 introduces a dependency on fab provider from core. (or its transitive dependencies
wtformsflask_babelflask_appbuilder). This makes sure that the monkey patching only occurs when modules are installed. Also this passed the CI, I assume it means there's no API test suite without fab provider installed ?We are trying to patch modules that aren't there in the first place. This can happen if
fabprovider is not installed.To reproduce, just go into
airflow-core,uv sync --no-dev(fab provider should not be there), then startairflow api-serverand go to the connection page in the UI.To be honest this might be enough to cancel rc3 in my opinion as connection page in the UI will be broken for anybody that does not have the fab-provider installed. @kaxil I’ll wait for a discussion before casting my vote.
Before
After