Skip to content

fix: Remove active filter from TaskListAPI queryset#3069

Merged
DevWithPranav merged 2 commits into
dev-serverfrom
dev
Jul 22, 2026
Merged

fix: Remove active filter from TaskListAPI queryset#3069
DevWithPranav merged 2 commits into
dev-serverfrom
dev

Conversation

@DevWithPranav

Copy link
Copy Markdown
Collaborator

No description provided.

@DevWithPranav
DevWithPranav merged commit 93ceaf0 into dev-server Jul 22, 2026
3 checks passed
@greptile-apps

greptile-apps Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR expands the dashboard task list to include inactive tasks. The main change is:

  • Removes the default active=True filter from TaskListAPI.

Confidence Score: 5/5

This looks mergeable after aligning the list and CSV export scopes.

  • Inactive tasks are now returned by the dashboard list as intended.
  • The related CSV export still omits those records, producing inconsistent task sets.

api/dashboard/task/dash_task_view.py

Important Files Changed

Filename Overview
api/dashboard/task/dash_task_view.py The management list now returns active and inactive tasks, but its scope no longer matches the CSV export.

Reviews (1): Last reviewed commit: "Merge pull request #3068 from DevWithPra..." | Re-trigger Greptile

).annotate(
total_karma_gainers_count=Count("karma_activity_log_task", filter=Q(karma_activity_log_task__appraiser_approved=True))
).filter(active=True)
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 List And Export Scopes Diverge

When inactive tasks exist, the dashboard list now includes them while TaskListCSV still filters on active=True. An administrator exporting the tasks shown in the dashboard receives fewer rows than the JSON list, so inactive records visible in the UI are silently omitted from the export.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants