Skip to content

[WEB-4074]fix: removed sub-work item filters at nested levels - #7047

Merged
sriramveeraghanta merged 1 commit into
previewfrom
fix-sub_issue_fiters
May 12, 2025
Merged

sriramveeraghanta merged 1 commit into
previewfrom
fix-sub_issue_fiters

Conversation

@vamsikrishnamathala

@vamsikrishnamathala vamsikrishnamathala commented May 12, 2025 •

Copy link
Copy Markdown
Member

Description

This updated fixes the filtering of sub work items at levels other than the root level.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

References

WEB-4074

Summary by CodeRabbit

  • Bug Fixes

    • Improved filtering and grouping of sub-issues to consistently use the root issue context.
    • Refined display logic so that the empty state is only shown at the root level when no sub-issues are present.
  • New Features

    • Enhanced sub-issues list groups to utilize the root issue identifier for more accurate grouping and filtering.

@vamsikrishnamathala vamsikrishnamathala self-assigned this May 12, 2025
@vamsikrishnamathala vamsikrishnamathala added the 🐛bug Something isn't working label May 12, 2025
@coderabbitai

coderabbitai Bot commented May 12, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

The changes update the sub-issues listing components so that filtering, grouping, and rendering logic now use the rootIssueId instead of the parentIssueId. This involves updating props, internal logic, and conditional rendering to ensure sub-issues are managed in the context of the root issue. The SubIssuesListGroup interface and usage were updated accordingly.

Changes

File(s) Change Summary
web/core/components/issues/issue-detail-widgets/sub-issues/issues-list/list-group.tsx Added rootIssueId to props interface and component; updated to pass rootIssueId to sub-issue items.
web/core/components/issues/issue-detail-widgets/sub-issues/issues-list/root.tsx Switched logic from parentIssueId to rootIssueId for filtering/grouping; updated rendering and prop passing.

Sequence Diagram(s)

sequenceDiagram
    participant ParentComponent
    participant SubIssuesListRoot
    participant SubIssuesListGroup
    participant SubIssuesListItem

    ParentComponent->>SubIssuesListRoot: Render with rootIssueId
    SubIssuesListRoot->>SubIssuesListGroup: Pass rootIssueId as prop
    SubIssuesListGroup->>SubIssuesListItem: Pass rootIssueId to each item
    SubIssuesListRoot->>SubIssuesListRoot: Filter/group sub-issues by rootIssueId
Loading

Poem

In the warren of issues, a root now shines bright,
Guiding each sub-issue with context just right.
No more confusion from parents above,
The root leads the way, with a rabbit’s soft shove.
🥕 Code hops forward, as clean as the light!

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 26c8cba and 292461d.

📒 Files selected for processing (2)
  • web/core/components/issues/issue-detail-widgets/sub-issues/issues-list/list-group.tsx (3 hunks)
  • web/core/components/issues/issue-detail-widgets/sub-issues/issues-list/root.tsx (3 hunks)
🔇 Additional comments (7)
web/core/components/issues/issue-detail-widgets/sub-issues/issues-list/list-group.tsx (2)

18-18: Appropriate addition of rootIssueId property to interface

The addition of the rootIssueId string property to the TSubIssuesListGroupProps interface is correct and necessary for the fix. This allows the component to work with the root issue context rather than just the immediate parent.


35-35: Properly implemented prop propagation

The changes correctly consume the new rootIssueId prop in the component and pass it down to child SubIssuesListItem components. This ensures consistent use of the root issue context throughout the component hierarchy.

Also applies to: 84-84

web/core/components/issues/issue-detail-widgets/sub-issues/issues-list/root.tsx (5)

53-53: Correctly updated filter retrieval to use rootIssueId

This is a key change that addresses the core issue. Filters are now retrieved using the root issue ID rather than the parent issue ID, ensuring consistent filtering behavior across all nesting levels.


69-69: Updated sub-work item grouping to use rootIssueId

The change properly updates the grouping logic to use the root issue ID, which aligns with the filter retrieval change. This ensures that all filtering and grouping operations use the same context.


75-75: Properly updated dependency array

The dependency array now correctly includes rootIssueId and getGroupedSubWorkItems, which is necessary since the callback depends on these values. This ensures the callback is re-evaluated when these dependencies change.


82-119: Fixed conditional rendering logic

The updated rendering logic now correctly shows the empty state only at the root level when there are no filtered sub-work items. This fixes the issue where filter messaging would appear at nested levels, improving the user experience.


113-113: Properly passing rootIssueId to child component

This line correctly passes the rootIssueId prop to the SubIssuesListGroup component, which is consistent with the interface changes made in the list-group file.

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@vamsikrishnamathala
vamsikrishnamathala marked this pull request as ready for review May 12, 2025 11:11
@pushya22 pushya22 changed the title []fix: removed sub-work item filters at nested levels [WEB-4074]fix: removed sub-work item filters at nested levels May 12, 2025
@makeplane

makeplane Bot commented May 12, 2025

Copy link
Copy Markdown

Pull Request Linked with Plane Work Items

Comment Automatically Generated by Plane

@sriramveeraghanta
sriramveeraghanta merged commit e68d344 into preview May 12, 2025
@sriramveeraghanta
sriramveeraghanta deleted the fix-sub_issue_fiters branch May 12, 2025 12:51
al-jaber-nishad pushed a commit to Xinotrix-Home/task-and-meeting-management that referenced this pull request May 27, 2025
TheJohnFogarty pushed a commit to TheJohnFogarty/plane that referenced this pull request Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛bug Something isn't working ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants