-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8540649
commit 61120b5
Showing
12 changed files
with
183 additions
and
50 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from airflow.models import Param | ||
|
||
FORM_NUMBER_DAG_PARAM = "form_number" | ||
START_DATE_DAG_PARAM = "start_date" | ||
END_DATE_DAG_PARAM = "end_date" | ||
XSD_VERSION_DAG_PARAM = "xsd_version" | ||
|
||
REPROCESS_DATE_RANGE_DAG_PARAMS = { | ||
START_DATE_DAG_PARAM: Param( | ||
default=None, | ||
type=["null", "string"], | ||
format="date", | ||
title="Start Date", | ||
description="""This field is optional. If you want to filter notices by start date, please insert a date. | ||
This field needs to be used with the end date field. | ||
""" | ||
), | ||
END_DATE_DAG_PARAM: Param( | ||
default=None, | ||
type=["null", "string"], | ||
format="date", | ||
title="End Date", | ||
description="""This field is optional. If you want to filter notices by end date, please insert a date. | ||
This field needs to be used with the start date field. | ||
""", | ||
) | ||
} | ||
|
||
REPROCESS_DAG_PARAMS = { | ||
FORM_NUMBER_DAG_PARAM: Param( | ||
default=None, | ||
type=["null", "string"], | ||
title="Form Number", | ||
description="This field is optional. If you want to filter notices by form number, please insert a form number."), | ||
**REPROCESS_DATE_RANGE_DAG_PARAMS, | ||
XSD_VERSION_DAG_PARAM: Param( | ||
default=None, | ||
type=["null", "string"], | ||
format="string", | ||
title="XSD Version", | ||
description="This field is optional. If you want to filter notices by XSD version, please insert a XSD version." | ||
) | ||
} |
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
Oops, something went wrong.