Skip to content
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 pre-commit for auto update of fab migration versions #42382

Merged
merged 3 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,9 @@ repos:
(?x)
^scripts/ci/pre_commit/version_heads_map\.py$|
^airflow/migrations/versions/.*$|^airflow/migrations/versions|
^airflow/utils/db.py$
^airflow/providers/fab/migrations/versions/.*$|^airflow/providers/fab/migrations/versions|
^airflow/utils/db.py$|
^airflow/providers/fab/auth_manager/models/db.py$
additional_dependencies: ['packaging','google-re2']
- id: update-version
name: Update version to the latest version in the documentation
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/fab/alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[alembic]
# path to migration scripts
# Use forward slashes (/) also on windows to provide an os agnostic path
script_location = migrations
script_location = %(here)s/migrations

# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
# Uncomment the line below if you want the files to be prepended with date and time
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/fab/auth_manager/models/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
PACKAGE_DIR = os.path.dirname(airflow.__file__)

_REVISION_HEADS_MAP: dict[str, str] = {
"1.3.0": "6709f7a774b9",
"1.4.0": "6709f7a774b9",
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
down_revision = None
branch_labels = None
depends_on = None
fab_version = "1.3.0"
fab_version = "1.4.0"


def upgrade() -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion docs/apache-airflow-providers-fab/migrations-ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Here's the list of all the Database Migrations that are executed via when you ru
+-------------------------+--------------+---------------+------------------------+
| Revision ID | Revises ID | Fab Version | Description |
+=========================+==============+===============+========================+
| ``6709f7a774b9`` (head) | ``None`` | ``1.3.0`` | placeholder migration. |
| ``6709f7a774b9`` (head) | ``None`` | ``1.4.0`` | placeholder migration. |
+-------------------------+--------------+---------------+------------------------+

.. End of auto-generated table
Expand Down