diff --git a/dags/test_dag_a.py b/dags/test_dag_a.py index c5e4183b..dfdd358f 100644 --- a/dags/test_dag_a.py +++ b/dags/test_dag_a.py @@ -2,6 +2,7 @@ from airflow.decorators import dag, task from airflow.models.param import Param +from airflow.utils.types import NOTSET from dags import DEFAULT_DAG_ARGUMENTS from dags.dags_utils import get_dag_param @@ -17,20 +18,21 @@ tags=['test', 'new-ui'], params={ FORM_NUMBER_DAG_PARAM: Param( - type="string", + default=NOTSET, + type=["null", "string"], title="Form number", description="""Form number of the notice"""), START_DATE_DAG_PARAM: Param( - f"{datetime.date.today()}", - type="string", + default=f"{datetime.date.today()}", + type=["null", "string"], format="date", title="Date Picker", description="Please select a date, use the button on the left for a pup-up calendar. " "See that here are no times!", ), END_DATE_DAG_PARAM: Param( - f"{datetime.date.today()}", - type="string", + default=f"{datetime.date.today()}", + type=["null", "string"], format="date", title="Date Picker", description="Please select a date, use the button on the left for a pup-up calendar. "