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

Rework Params UI Tutorial DAG #47265

Merged

Conversation

jscheffl
Copy link
Contributor

@jscheffl jscheffl commented Mar 1, 2025

I noticed that the Params UI Tutorial DAG had quite a lengthy list of parameters... and as the new trigger form is a modal it was hard to see all values.

I consolidated a few fields and added more form sections to make the view better.

FYI @shubhamraj-git

@jscheffl jscheffl force-pushed the feature/rework-params-ui-tutorial-dag branch from f175332 to cfd5e91 Compare March 1, 2025 22:52
@jscheffl jscheffl changed the title Rework Params UI Utuorial DAG Rework Params UI Tutorial DAG Mar 1, 2025
@jscheffl jscheffl requested a review from Copilot March 2, 2025 08:50
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR refactors the Params UI Tutorial DAG to improve the form UI by consolidating parameters and organizing them into clearer sections.

  • Renames parameter keys to be more descriptive (e.g. changing "x" to "number_param").
  • Adds section attributes to group parameters by type and functionality.
  • Introduces additional parameters (boolean, date/time, required/optional text fields) to broaden form functionality.

Reviewed Changes

File Description
airflow/example_dags/example_params_ui_tutorial.py Parameter keys are renamed and reorganized into sections to improve UI clarity and form usability.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (2)

airflow/example_dags/example_params_ui_tutorial.py:83

  • Consider renaming the parameter key 'bool' to a more descriptive name (e.g., 'confirm_param') to avoid confusion with Python's built-in bool type.
"bool": Param(

airflow/example_dags/example_params_ui_tutorial.py:207

  • [nitpick] Consider renaming the section to a more concise and standard title, such as 'Advanced Form Fields', for clarity.
section="Special advanced stuff with form fields",

@jscheffl jscheffl force-pushed the feature/rework-params-ui-tutorial-dag branch from 006dcf0 to 75e7813 Compare March 2, 2025 22:26
@jscheffl jscheffl requested a review from potiuk as a code owner March 2, 2025 22:26
@jscheffl jscheffl requested a review from eladkal March 2, 2025 22:27
@jscheffl jscheffl force-pushed the feature/rework-params-ui-tutorial-dag branch from 3753b5e to 740b051 Compare March 3, 2025 10:55
@jscheffl jscheffl force-pushed the feature/rework-params-ui-tutorial-dag branch from 740b051 to 7ccf877 Compare March 4, 2025 21:55
@jscheffl
Copy link
Contributor Author

jscheffl commented Mar 5, 2025

@eladkal can you re-review? Or shall I ask somebody else?

Copy link
Contributor

@shubhamraj-git shubhamraj-git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jscheffl jscheffl merged commit 2a39959 into apache:main Mar 8, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants