Moouna opened a new pull request, #18745:
URL: https://github.com/apache/dolphinscheduler/pull/18745

   ## Was this PR generated or assisted by AI?
   
   YES. Qoder assisted with root-cause analysis, the two-line fix, isolated 
regression checks, and this PR description.
   
   ## Purpose of the pull request
   
   Fixes #18744.
   
   When opening workflow instances from the workflow definition list, the 
navigation link and parent instance table use `workflowDefinitionCode`. 
However, `WorkflowInstanceCondition` reads `workflowDefineCode`, so the 
workflow dropdown is not initialized from the URL. Clicking Search or clearing 
another filter then emits an undefined workflow code and removes the intended 
workflow filter.
   
   ## Brief change log
   
   - Change the two route-query reads in `WorkflowInstanceCondition` to 
`workflowDefinitionCode`, matching the navigation link, parent table, and 
backend API.
   - Leave navigation links, API contracts, database schema, and other behavior 
unchanged.
   
   ## Verify this pull request
   
   Checks performed locally:
   
   - `vue-tsc --noEmit` for the UI project: passed.
   - Prettier check for the changed TSX file and `git diff --check`: passed.
   - Isolated component-setup checks with real Vue refs and mocked 
router/service dependencies: reproduced the original undefined selection/search 
code, then verified URL initialization and search retention after the fix; 
clearing another filter retains the workflow; selecting another workflow 
updates the code; clearing the workflow removes the filter; absent query leaves 
the filter unset.
   
   No permanent test files or test-framework dependencies were added.
   
   UI verification steps:
   
   1. Open a workflow definition's instance list and confirm the URL contains 
`workflowDefinitionCode`.
   2. Confirm the workflow dropdown selects that workflow.
   3. Click Search or clear another text filter and confirm the workflow 
remains selected and requests still include its code.
   4. Change or clear the workflow selection and confirm the corresponding 
filter behavior.
   
   ## Pull Request Notice
   
   [Pull Request 
Notice](https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)
   
   No incompatible changes.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to