fix: include workflows in folders when filtering by tags #23970
+10
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes workflow tag filtering so that workflows inside folders are included, not just workflows at the project root level.
Closes: #23948
Problem
When filtering workflows by tag on the Project Workflows page, only workflows at the root level were shown.
Workflows inside folders were incorrectly excluded from the results.
Steps to reproduce
test)testtagOnly the workflow at the root level appears
Expected: both workflows should appear
Root Cause
Two issues were identified in
workflow.repository.ts:Folder hierarchy expansion was limited to text search
PROJECT_ROOT always restricted results to root-level workflows
parentFolderId IS NULLcondition was always applied at the project rootSolution
Change 1: Extend folder hierarchy expansion to include tag filtering
Change 2: Skip root-level folder restriction when tag or query filter is active
How to Verify
testtestBoth workflows (inside and outside folders) should appear