Skip to content

Conversation

@dstandish
Copy link
Contributor

This looks like it used to be a backcompat thing. But now the permissons module is included in fab provider, so the if getattr logic always evaluates true. So the else block does nothing. So we can remove it and remove this _resource_name helper. Additionally, I remove some root_dag_id logic that is also obsolete, since min provider version for fab is 3.0.0.

Copy link
Contributor

@vincbeck vincbeck left a comment

Choose a reason for hiding this comment

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

This is great!

This looks like it used to be a backcompat thing.  But now the permissons module is included in fab provider, so the `if getattr` logic always evaluates true.  So the else block does nothing.  So we can remove it and remove this `_resource_name` helper.  Additionally, I remove some `root_dag_id` logic that is also obsolete, since min provider version for fab is 3.0.0.
@dstandish dstandish force-pushed the remove-dynamice-attr-access-fab branch from c131655 to b2d6023 Compare April 24, 2025 17:17
@dstandish dstandish merged commit e3c221d into apache:main Apr 24, 2025
66 checks passed
@dstandish dstandish deleted the remove-dynamice-attr-access-fab branch April 24, 2025 23:06
prabhusneha pushed a commit to astronomer/airflow that referenced this pull request Apr 25, 2025
…ache#49669)

This looks like it used to be a backcompat thing.  But now the permissons module is included in fab provider, so the `if getattr` logic always evaluates true.  So the else block does nothing.  So we can remove it and remove this `_resource_name` helper.  Additionally, I remove some `root_dag_id` logic that is also obsolete, since min provider version for fab is 3.0.0.
jroachgolf84 pushed a commit to jroachgolf84/airflow that referenced this pull request Apr 30, 2025
…ache#49669)

This looks like it used to be a backcompat thing.  But now the permissons module is included in fab provider, so the `if getattr` logic always evaluates true.  So the else block does nothing.  So we can remove it and remove this `_resource_name` helper.  Additionally, I remove some `root_dag_id` logic that is also obsolete, since min provider version for fab is 3.0.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants