-
-
Notifications
You must be signed in to change notification settings - Fork 596
Open
Description
Description
The issues field resolver on RepositoryNode is misleadingly named — it does not return all issues for a repository. It returns only the most recent ones, limited by RECENT_ISSUES_LIMIT = 5.
File: backend/apps/github/api/internal/nodes/repository.py, line 51
@strawberry_django.field(prefetch_related=["issues"])
def issues(self, root: Repository) -> list[IssueNode]:
"""Resolve recent issues."""
# TODO(arkid15r): rename this to recent_issues.
return root.issues.order_by("-created_at")[:RECENT_ISSUES_LIMIT]What needs to change
- Rename the field method from
issuestorecent_issues - Update the
prefetch_relatedkey if necessary - Update any GraphQL queries or frontend code that references
issueson a repository node
Acceptance Criteria
- Field is renamed to
recent_issuesin the node definition - All consumers of this GraphQL field are updated
- Existing tests pass; new/updated tests cover the renamed field
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog