[WEB-3904] fix: sub work item fetching#6945
Conversation
WalkthroughThis change updates the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant IssueListItem
participant useSubIssueOperations
participant IssueService
User->>IssueListItem: Click expand sub-issues
IssueListItem->>useSubIssueOperations: fetchSubIssues (EIssueServiceType.ISSUES)
useSubIssueOperations->>IssueService: Fetch sub-issues
IssueService-->>useSubIssueOperations: Return sub-issues data
useSubIssueOperations-->>IssueListItem: Return sub-issues data
IssueListItem-->>User: Display sub-issues
Possibly related PRs
Suggested reviewers
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Pull Request Linked with Plane Work Items Comment Automatically Generated by Plane |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
web/core/components/issues/sub-issues/issue-list-item.tsx (1)
66-66: Consider using the issueServiceType prop instead of hardcoding EIssueServiceType.ISSUESThe hook is initialized with a hardcoded service type, but the component accepts an
issueServiceTypeprop (with a default value ofEIssueServiceType.ISSUES). For consistency and to ensure the hook behavior matches the component's expected service type, consider using the prop value.- const { fetchSubIssues } = useSubIssueOperations(EIssueServiceType.ISSUES); + const { fetchSubIssues } = useSubIssueOperations(issueServiceType);
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
web/core/components/issues/sub-issues/issue-list-item.tsx(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
web/core/components/issues/sub-issues/issue-list-item.tsx (1)
21-21: Good addition of the useSubIssueOperations hook importThis import allows the component to directly use the sub-issue operations from the hook instead of relying on the prop.
Description
This PR includes a fix for fetching sub-work items.
Type of Change
References
[WEB-3904]
Summary by CodeRabbit