Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update UserGroupUserStatsType & UserGroupUserMembershipType username type #976

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions django/apps/existing_database/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class UserGroupLatestStatsType:
@strawberry.type
class UserGroupUserStatsType:
user_id: str
username: str
username: str | None
total_mapping_projects: int
total_swipes: int
total_swipe_time: TimeInSeconds
Expand Down Expand Up @@ -545,7 +545,7 @@ async def id(self, info: Info, root: UserGroup) -> strawberry.ID:
class UserGroupUserMembershipType:
id: strawberry.ID
user_id: str
username: str
username: str | None
is_active: bool
# Stats
total_mapping_projects: int
Expand Down
4 changes: 2 additions & 2 deletions django/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ type UserGroupTypeCountList {
type UserGroupUserMembershipType {
id: ID!
userId: String!
username: String!
username: String
isActive: Boolean!
totalMappingProjects: Int!
totalSwipes: Int!
Expand All @@ -241,7 +241,7 @@ type UserGroupUserMembershipTypeCountList {

type UserGroupUserStatsType {
userId: String!
username: String!
username: String
totalMappingProjects: Int!
totalSwipes: Int!
totalSwipeTime: TimeInSeconds!
Expand Down
Loading