Skip to content

Conversation

@vedantmamgain
Copy link
Contributor

@vedantmamgain vedantmamgain commented Sep 26, 2025

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue'
for try number selection, ensuring the selected value updates correctly with state changes.

This ensures that the stale <select> gets updated just like <option>

closes: 55830

Test Plan

  • Locally reproduced the bug and ensured that with the fix the <select> isn't stale anymore.

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.
@boring-cyborg
Copy link

boring-cyborg bot commented Sep 26, 2025

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

@bbovenzi
Copy link
Contributor

Makes sense. Do you mind running pnpm lint && pnpm format to fix the linting issues with prop ordering?

@bbovenzi bbovenzi added this to the Airflow 3.1.1 milestone Sep 29, 2025
Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
@vedantmamgain
Copy link
Contributor Author

Makes sense. Do you mind running pnpm lint && pnpm format to fix the linting issues with prop ordering?

Done :)

@vedantmamgain
Copy link
Contributor Author

@bbovenzi looks like you've need to approve again after I updated from main.

@vedantmamgain
Copy link
Contributor Author

@bbovenzi Another query but do the maintainers merge the pr themselves or can we do it as well ?

@pierrejeambrun
Copy link
Member

Another query but do the maintainers merge the pr themselves or can we do it as well ?

Only Maintainers with write permissions to the project are able to merge PRs

@pierrejeambrun pierrejeambrun added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Sep 30, 2025
@vedantmamgain
Copy link
Contributor Author

Another query but do the maintainers merge the pr themselves or can we do it as well ?

Only Maintainers with write permissions to the project are able to merge PRs

Got it thanks for the clarification, the tests have passed now.

@pierrejeambrun pierrejeambrun merged commit 3f7991f into apache:main Sep 30, 2025
103 of 104 checks passed
@boring-cyborg
Copy link

boring-cyborg bot commented Sep 30, 2025

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

@pierrejeambrun pierrejeambrun added the type:bug-fix Changelog: Bug Fixes label Sep 30, 2025
github-actions bot pushed a commit that referenced this pull request Sep 30, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
(cherry picked from commit 3f7991f)

Co-authored-by: Vedant Mamgain <mamgainvedant@gmail.com>
@github-actions
Copy link

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

jscheffl pushed a commit that referenced this pull request Sep 30, 2025
…#56258)

* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
(cherry picked from commit 3f7991f)

Co-authored-by: Vedant Mamgain <mamgainvedant@gmail.com>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 1, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 2, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 3, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 4, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 7, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 8, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 9, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 10, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 11, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 12, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
dabla pushed a commit to dabla/airflow that referenced this pull request Oct 12, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 14, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 15, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 17, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 19, 2025
* Replace defaultValue with value in TaskTrySelect

Changed the Select component to use the controlled 'value' prop instead of 'defaultValue' for try number selection, ensuring the selected value updates correctly with state changes.

* fix: Reorder props in TaskTrySelect for linting compliance

Applied prop ordering fix as requested in code review.
Props are now alphabetically ordered in the Select.Root component.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task Attempt Selection dropdown out of sync with state visible in the options itself

3 participants