forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apache#16692 show cron schedule description in UI (#5)
* Create ap_codeql-analysis.yml * 16692 - deleted file * 16692 - changes done * 16692 - test added * 16692 - pre-commits fixed * 16692 - pre-commits fixed * 16692 - pre-commits fixed * 16692 - Runs removed from description * Update airflow/www/templates/airflow/dags.html Co-authored-by: Ryan Hamilton <ryan@ryanahamilton.com> * 16692 - pre-commits fixed * 16692 - using timetable for showing description * 16692 - pre-commits fixed * Update airflow/timetables/base.py Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> * 16692 - fixed types * 16692 - used Base class for storing common properties * 16692 - using cached_property for description * 16692 - using cached_property for description * 16692 - merge fix * 16692 - removed dagbase * 16692 - removed unnecessary changes * 16692 - test name fixed * 16692 - timetable_description column added to dag table. * 16692 - None timetable description updated * 16692 - tests added * 16692 - review comments. * 16692 - precommit fixes * 16692 - precommit fixes * 16692 - fixed test checks * 16692 - ignoring description computation for 6th param in Cron expression * 16692 - pre-commit fixed * Update airflow/timetables/base.py Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> * 16692 - documentation added for timetable description * 16692 - resolving PR comments * 16692 - precommit fixes * 16692 - documentation fix * 16692 - using empty string as a default description * 16692 - test fixed * [apache#16692] - migration file updated Signed-off-by: Ashish Patel <ashishpatel0720@gmail.com> Co-authored-by: Ryan Hamilton <ryan@ryanahamilton.com> Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
- Loading branch information
1 parent
1f66257
commit 4f49b81
Showing
11 changed files
with
164 additions
and
11 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
airflow/migrations/versions/786e3737b18f_added_timetable_description_column.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
"""Added timetable description column | ||
Revision ID: 786e3737b18f | ||
Revises: 5e3ec427fdd3 | ||
Create Date: 2021-10-15 13:33:04.754052 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '786e3737b18f' | ||
down_revision = '5e3ec427fdd3' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
"""Apply Added timetable description column""" | ||
with op.batch_alter_table('dag', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('timetable_description', sa.String(length=1000), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
"""Unapply Added timetable description column""" | ||
with op.batch_alter_table('dag', schema=None) as batch_op: | ||
batch_op.drop_column('timetable_description') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters