You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Mayankaggarwal8055 (via GitHub)" <gi...@apache.org> on 2026/04/08 09:35:42 UTC

[PR] fix(ui): cancel debounce on clear to prevent stale search value [airflow]

Mayankaggarwal8055 opened a new pull request, #64893:
URL: https://github.com/apache/airflow/pull/64893

   Fixes #64892
   
   ## Problem
   The SearchBar uses a debounced `onChange` handler. If a user types a query and immediately clears the input, the pending debounce callback is not cancelled.
   
   As a result, the old query value is applied again after the debounce delay, causing the cleared input to revert to the previous value.
   
   ## Solution
   Cancel the pending debounce when clearing the input before calling `onChange("")`.
   
   ## Tests
   - Added regression test to ensure stale values are not applied after clearing
   - Verified clearing emits empty value immediately


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(ui): cancel debounce on clear to prevent stale search value [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #64893:
URL: https://github.com/apache/airflow/pull/64893#issuecomment-4206862760

   ### Backport successfully created: v3-2-test
   
   Note: As of [Merging PRs targeted for Airflow 3.X](https://github.com/apache/airflow/blob/main/dev/README_AIRFLOW3_DEV.md#merging-prs-targeted-for-airflow-3x)
   the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.
   
   In matter of doubt please ask in [#release-management](https://apache-airflow.slack.com/archives/C03G9H97MM2) Slack channel.
   
   <table>
           <tr>
           <th>Status</th>
           <th>Branch</th>
           <th>Result</th>
       </tr>
       <tr>
           <td>✅</td>
           <td>v3-2-test</td>
           <td><a href="https://github.com/apache/airflow/pull/64907"><img src="https://img.shields.io/badge/PR-64907-blue" alt="PR Link"></a></td>
       </tr>
   </table>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(ui): cancel debounce on clear to prevent stale search value [airflow]

Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi merged PR #64893:
URL: https://github.com/apache/airflow/pull/64893


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org