File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
backend/apps/github/api/internal/nodes Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 66from apps .github .api .internal .nodes .pull_request import PullRequestNode
77from apps .github .api .internal .nodes .user import UserNode
88from apps .github .models .issue import Issue
9- from apps .mentorship .models import IssueUserInterest # add import
109
1110
1211@strawberry_django .type (
@@ -55,7 +54,12 @@ def labels(self) -> list[str]:
5554 @strawberry .field
5655 def interested_users (self ) -> list [UserNode ]:
5756 """Return all users who have expressed interest in this issue."""
58- return [interest .user for interest in IssueUserInterest .objects .filter (issue = self )]
57+ return [
58+ interest .user
59+ for interest in self .participant_interests .select_related ("user" ).order_by (
60+ "user__login"
61+ )
62+ ]
5963
6064 @strawberry .field
6165 def pull_requests (self ) -> list [PullRequestNode ]:
You can’t perform that action at this time.
0 commit comments