apache-airflow-providers-fab 2.4.0__py3-none-any.whl → 2.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "2.4.0"
32
+ __version__ = "2.4.1"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "3.0.2"
@@ -459,8 +459,6 @@ class FabAuthManager(BaseAuthManager[User]):
459
459
  return {dag.dag_id for dag in session.execute(select(DagModel.dag_id))}
460
460
  if resource.startswith(permissions.RESOURCE_DAG_PREFIX):
461
461
  resources.add(resource[len(permissions.RESOURCE_DAG_PREFIX) :])
462
- else:
463
- resources.add(resource)
464
462
  return set(session.scalars(select(DagModel.dag_id).where(DagModel.dag_id.in_(resources))))
465
463
 
466
464
  @cached_property
@@ -59,6 +59,11 @@ class FABDBManager(BaseDBManager):
59
59
  super().create_db_from_orm()
60
60
  _get_flask_db(settings.SQL_ALCHEMY_CONN).create_all()
61
61
 
62
+ def reset_to_2_x(self):
63
+ self.create_db_from_orm()
64
+ # And ensure it's at the oldest version
65
+ self.downgrade(_REVISION_HEADS_MAP["1.4.0"])
66
+
62
67
  def upgradedb(self, to_revision=None, from_revision=None, show_sql_only=False):
63
68
  """Upgrade the database."""
64
69
  if from_revision and not show_sql_only:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-fab
3
- Version: 2.4.0
3
+ Version: 2.4.1
4
4
  Summary: Provider package apache-airflow-providers-fab for Apache Airflow
5
5
  Keywords: airflow-provider,fab,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -35,8 +35,8 @@ Requires-Dist: werkzeug>=2.2,<4; python_version < '3.13'
35
35
  Requires-Dist: wtforms>=3.0,<4; python_version < '3.13'
36
36
  Requires-Dist: kerberos>=1.3.0 ; extra == "kerberos" and ( python_version < '3.13')
37
37
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
38
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-fab/2.4.0/changelog.html
39
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-fab/2.4.0
38
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-fab/2.4.1/changelog.html
39
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-fab/2.4.1
40
40
  Project-URL: Mastodon, https://fosstodon.org/@airflow
41
41
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
42
42
  Project-URL: Source Code, https://github.com/apache/airflow
@@ -68,7 +68,7 @@ Provides-Extra: kerberos
68
68
 
69
69
  Package ``apache-airflow-providers-fab``
70
70
 
71
- Release: ``2.4.0``
71
+ Release: ``2.4.1``
72
72
 
73
73
  Release Date: ``|PypiReleaseDate|``
74
74
 
@@ -82,7 +82,7 @@ This is a provider package for ``fab`` provider. All classes for this provider p
82
82
  are in ``airflow.providers.fab`` python package.
83
83
 
84
84
  You can find package information and changelog for the provider
85
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-fab/2.4.0/>`_.
85
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-fab/2.4.1/>`_.
86
86
 
87
87
  Installation
88
88
  ------------
@@ -133,5 +133,5 @@ Dependent package
133
133
  ================================================================================================================== =================
134
134
 
135
135
  The changelog for the provider package can be found in the
136
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-fab/2.4.0/changelog.html>`_.
136
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-fab/2.4.1/changelog.html>`_.
137
137
 
@@ -1,10 +1,10 @@
1
1
  airflow/providers/fab/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
- airflow/providers/fab/__init__.py,sha256=U6KANkYKIFdqY7XdSUeVdLIvUPdfvCPeWUEQpni8cYA,1490
2
+ airflow/providers/fab/__init__.py,sha256=k6iA28XvJQbtIidB0ditFS52nP0S33pWViJOlsyAEas,1490
3
3
  airflow/providers/fab/alembic.ini,sha256=_1SvObfjMAkuD7DN5VR2S6Rd7_F81pORZT-w7GJldIA,4461
4
4
  airflow/providers/fab/get_provider_info.py,sha256=7O205F5MMZZ2v7Z6jb-dqWfiUlHlMwDNWZ0ZSjIJCPU,9910
5
5
  airflow/providers/fab/version_compat.py,sha256=1qJhqKH0Bi4HG-pJW6npWYkLx76DBuXP-6A-cgGe77Y,1536
6
6
  airflow/providers/fab/auth_manager/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
7
- airflow/providers/fab/auth_manager/fab_auth_manager.py,sha256=PytRFQscE1PhESHIflUcMbzG83hCWAg57jpyzzR-Dsw,25440
7
+ airflow/providers/fab/auth_manager/fab_auth_manager.py,sha256=qhKZ8nhL_nI7Bjqg6L1qwe-hBcfQA3vOFzfFFHYPGFY,25366
8
8
  airflow/providers/fab/auth_manager/api/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
9
9
  airflow/providers/fab/auth_manager/api/auth/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
10
10
  airflow/providers/fab/auth_manager/api/auth/backend/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
@@ -32,7 +32,7 @@ airflow/providers/fab/auth_manager/cli_commands/user_command.py,sha256=jkJZnuw17
32
32
  airflow/providers/fab/auth_manager/cli_commands/utils.py,sha256=4MK6IYGtI8CtYPZSgj25IJL--42_gGUmQ72m47MYq7M,2921
33
33
  airflow/providers/fab/auth_manager/models/__init__.py,sha256=OpGLl3qlGyH8M2AY2i6qZteX8T6UHpMQ9H9pgQBXCx4,10785
34
34
  airflow/providers/fab/auth_manager/models/anonymous_user.py,sha256=F8Lc8mvm91sUZEcxwUpHFibguOruLlYgT_fFwcjdqM0,1947
35
- airflow/providers/fab/auth_manager/models/db.py,sha256=2dKp8RUeEi2wSti9dCqS-3GBJhuB8NV7FN0ZXsTKryw,5018
35
+ airflow/providers/fab/auth_manager/models/db.py,sha256=4IoWxuyfI7u5k3yJuDbBk-IG0_DaVbbIAtBGTkIRWEc,5182
36
36
  airflow/providers/fab/auth_manager/openapi/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
37
37
  airflow/providers/fab/auth_manager/openapi/v1-flask-api.yaml,sha256=9sAaTNXVBYfHKILn6fRKfROC3hAattsQu4wwG22nO64,20346
38
38
  airflow/providers/fab/auth_manager/schemas/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
@@ -125,9 +125,9 @@ airflow/providers/fab/www/templates/appbuilder/index.html,sha256=ZaZsNdD8fCENqdn
125
125
  airflow/providers/fab/www/templates/appbuilder/navbar.html,sha256=1Q8u90aONY_PKTBtApwyp0EeudSsJyysW2UYo9Fa1cc,10215
126
126
  airflow/providers/fab/www/templates/appbuilder/navbar_menu.html,sha256=WWQ-_QLMqcW4Cpx_1_yulaQO-soD6ztnY2zfmBAUAGI,2034
127
127
  airflow/providers/fab/www/templates/appbuilder/navbar_right.html,sha256=qrwZDBbzLi4yhLrfai842MJDdQ4C31Xz9hJ3NoG5mo0,2488
128
- apache_airflow_providers_fab-2.4.0.dist-info/entry_points.txt,sha256=m05kASp7vFi0ZmQ--CFp7GeJpPL7UT2RQF8EEP5XRX8,99
129
- apache_airflow_providers_fab-2.4.0.dist-info/licenses/3rd-party-licenses/LICENSES-ui.txt,sha256=C9vBr_KiUhI3jjCS754n_SPi-ylD8SiJgXlOWuNOO98,3688
130
- apache_airflow_providers_fab-2.4.0.dist-info/licenses/NOTICE,sha256=GrKwLaFNGIn3J86ucRfNIExRSCD6-7nty84-84F2ad4,448
131
- apache_airflow_providers_fab-2.4.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
132
- apache_airflow_providers_fab-2.4.0.dist-info/METADATA,sha256=agZHfVQ829kNjE6G9AQA9sAptujWH4fM7Ck4O_UfqdQ,6740
133
- apache_airflow_providers_fab-2.4.0.dist-info/RECORD,,
128
+ apache_airflow_providers_fab-2.4.1.dist-info/entry_points.txt,sha256=m05kASp7vFi0ZmQ--CFp7GeJpPL7UT2RQF8EEP5XRX8,99
129
+ apache_airflow_providers_fab-2.4.1.dist-info/licenses/3rd-party-licenses/LICENSES-ui.txt,sha256=C9vBr_KiUhI3jjCS754n_SPi-ylD8SiJgXlOWuNOO98,3688
130
+ apache_airflow_providers_fab-2.4.1.dist-info/licenses/NOTICE,sha256=GrKwLaFNGIn3J86ucRfNIExRSCD6-7nty84-84F2ad4,448
131
+ apache_airflow_providers_fab-2.4.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
132
+ apache_airflow_providers_fab-2.4.1.dist-info/METADATA,sha256=WuTu7ZB1OwS12Leq1e2d8OfYiCS8Er2Tw0y64O1dPQI,6740
133
+ apache_airflow_providers_fab-2.4.1.dist-info/RECORD,,