You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/22 09:04:33 UTC
[GitHub] [airflow] jhtimmins opened a new pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
jhtimmins opened a new pull request #19153:
URL: https://github.com/apache/airflow/pull/19153
<!--
Thank you for contributing! Please make sure that your code changes
are covered with tests. And in case of new features or big changes
remember to adjust the documentation.
Feel free to ping committers for the review!
In case of existing issue, reference it using one of the following:
closes: #ISSUE
related: #ISSUE
How to write a good git commit message:
http://chris.beams.io/posts/git-commit/
-->
---
**^ Add meaningful description above**
Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)** for more information.
In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/main/UPDATING.md).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] jhtimmins merged pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
Posted by GitBox <gi...@apache.org>.
jhtimmins merged pull request #19153:
URL: https://github.com/apache/airflow/pull/19153
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] uranusjr commented on a change in pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
Posted by GitBox <gi...@apache.org>.
uranusjr commented on a change in pull request #19153:
URL: https://github.com/apache/airflow/pull/19153#discussion_r734397697
##########
File path: airflow/models/dagbag.py
##########
@@ -630,25 +631,24 @@ def _serialize_dag_capturing_errors(dag, session):
@provide_session
def _sync_perm_for_dag(self, dag, session: Optional[Session] = None):
"""Sync DAG specific permissions, if necessary"""
- from flask_appbuilder.security.sqla import models as sqla_models
-
from airflow.security.permissions import DAG_ACTIONS, resource_name_for_dag
+ from airflow.www.fab_security.sqla.models import Action, Permission
Review comment:
Why do these need to be imported locally while `Resource` can be imported globally?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] jhtimmins merged pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
Posted by GitBox <gi...@apache.org>.
jhtimmins merged pull request #19153:
URL: https://github.com/apache/airflow/pull/19153
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] github-actions[bot] commented on pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #19153:
URL: https://github.com/apache/airflow/pull/19153#issuecomment-957802383
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] github-actions[bot] commented on pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #19153:
URL: https://github.com/apache/airflow/pull/19153#issuecomment-957802383
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] uranusjr commented on a change in pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
Posted by GitBox <gi...@apache.org>.
uranusjr commented on a change in pull request #19153:
URL: https://github.com/apache/airflow/pull/19153#discussion_r734402853
##########
File path: airflow/www/views.py
##########
@@ -4530,29 +4530,49 @@ def _node_dict(node_id, label, node_class):
}
-class CustomPermissionModelView(PermissionModelView):
- """Customize permission names for FAB's builtin PermissionModelView."""
+class ActionModelView(PermissionModelView):
+ """Customize permission names for FAB's builtin PermissionModelView.."""
Review comment:
```suggestion
"""Customize permission names for FAB's builtin PermissionModelView."""
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] ashb commented on a change in pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
Posted by GitBox <gi...@apache.org>.
ashb commented on a change in pull request #19153:
URL: https://github.com/apache/airflow/pull/19153#discussion_r734498693
##########
File path: airflow/migrations/versions/03afc6b6f902_increase_length_of_fab_ab_view_menu_.py
##########
@@ -38,58 +38,58 @@
def upgrade():
- """Apply Increase length of FAB ab_view_menu.name column"""
+ """Apply Increase length of FAB ab_resource.name column"""
conn = op.get_bind()
inspector = Inspector.from_engine(conn)
tables = inspector.get_table_names()
- if "ab_view_menu" in tables:
+ if "ab_resource" in tables:
Review comment:
If don't think you want to change this migration? It's already been applied hasn't it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] ashb commented on a change in pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
Posted by GitBox <gi...@apache.org>.
ashb commented on a change in pull request #19153:
URL: https://github.com/apache/airflow/pull/19153#discussion_r734498693
##########
File path: airflow/migrations/versions/03afc6b6f902_increase_length_of_fab_ab_view_menu_.py
##########
@@ -38,58 +38,58 @@
def upgrade():
- """Apply Increase length of FAB ab_view_menu.name column"""
+ """Apply Increase length of FAB ab_resource.name column"""
conn = op.get_bind()
inspector = Inspector.from_engine(conn)
tables = inspector.get_table_names()
- if "ab_view_menu" in tables:
+ if "ab_resource" in tables:
Review comment:
If don't think you want to change this migration?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] github-actions[bot] commented on pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #19153:
URL: https://github.com/apache/airflow/pull/19153#issuecomment-957802383
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] jhtimmins merged pull request #19153: Removes unused state transitions to handle auto-changing view permissions.
Posted by GitBox <gi...@apache.org>.
jhtimmins merged pull request #19153:
URL: https://github.com/apache/airflow/pull/19153
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org