fix: hide work items with Removed state from Kanban board (#277)#379
Open
akash2017sky wants to merge 3 commits into
Open
fix: hide work items with Removed state from Kanban board (#277)#379akash2017sky wants to merge 3 commits into
akash2017sky wants to merge 3 commits into
Conversation
Removed-category states were being bucketed into the Closed column on the Kanban board. Skip them when building the state lists for the standup query so they're never fetched, and drop the corresponding fallback mapping in the standup route. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Filters out Azure DevOps work items in the Removed state category so they no longer appear anywhere on the Kanban/standup board, addressing issue #277 where Removed items were previously being bucketed into Closed.
Changes:
- Exclude
Removedstate-category entries when building the standup WIQL state lists, preventing Removed items from being queried at all. - Remove the now-unreachable
Removed: 'Closed'category fallback mapping in the standup API route.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/lib/devops.ts |
Updates getStandupData to skip Removed categories when constructing queryable state lists, ensuring Removed items are never fetched for the board. |
src/app/api/devops/standup/route.ts |
Drops the Removed fallback column mapping since Removed items are filtered out upstream before column resolution. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Removed-category states into the Closed column. Filter them out at the source so removed work items never appear on the board.getStandupDataskipsRemovedwhen building the state lists used in the standup WIQL queries.Removed: 'Closed'fallback in the standup route.Fixes #277.
Test plan
/kanbanagainst an org with a project that has aRemovedstate — confirm no removed items appear in any column.Resolved/Completedcategories from the last 7 days.🤖 Generated with Claude Code