[WEB-3039] fix: assignee count in dashboard#6418
Conversation
|
Pull Request Linked with Plane Issues Comment Automatically Generated by Plane |
WalkthroughThe pull request modifies the filtering logic for issues in dashboard-related functions within the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 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 (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
apiserver/plane/app/views/dashboard/base.py (1)
56-56: LGTM! Fix line length.The added condition correctly filters out deleted assignees, ensuring accurate counts. However, the line exceeds the length limit.
Break the line into multiple lines for better readability:
- (Q(assignees__in=[request.user]) & Q(issue_assignee__deleted_at__isnull=True)), + ( + Q(assignees__in=[request.user]) + & Q(issue_assignee__deleted_at__isnull=True) + ),🧰 Tools
🪛 Ruff (0.8.2)
56-56: Line too long (91 > 88)
(E501)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apiserver/plane/app/views/dashboard/base.py(2 hunks)
🧰 Additional context used
🪛 Ruff (0.8.2)
apiserver/plane/app/views/dashboard/base.py
56-56: Line too long (91 > 88)
(E501)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: lint-apiserver
- GitHub Check: Analyze (javascript)
- GitHub Check: Analyze (python)
🔇 Additional comments (2)
apiserver/plane/app/views/dashboard/base.py (2)
179-182: LGTM! Well-formatted filter condition.The added condition correctly filters out deleted assignees, ensuring consistency with the overview stats. The multi-line formatting improves readability.
56-56: Overall implementation looks good!The changes consistently filter out deleted assignees in both the overview stats and assigned issues, effectively fixing the assignee count in the dashboard. The implementation is thorough and maintains consistency across functions.
Also applies to: 179-182
🧰 Tools
🪛 Ruff (0.8.2)
56-56: Line too long (91 > 88)
(E501)
Description
fixed the count of the assigned issue in dashboard.
Type of Change
References
WEB-3039
Summary by CodeRabbit