Skip to content

Commit

Permalink
Question position bigint update (#384)
Browse files Browse the repository at this point in the history
* chore(prisma): updated question position to bigint with migrations

* feat(graphql): added BigInt as scalar for question position

* fix(server tests): moved plugin attachments to before mercurius test client initilization

* fix(server): updated position check to cast to bigint

* chore(prisma): removed old migrations

* chore(prisma): added bigint migration

* fix(position): updated calculated position parse the whole current time ms string

* chore(logs): removed console logs

* chore(position): removed unessisary type cast

* fix(bigint): cast position vals to bigint and wrapped a resolver in trycatch to log internal errors

* fix(bigint): updated type parser and added more logging

* fix(bigint): added bigint scalar to codegen yml
  • Loading branch information
kadey001 authored Feb 3, 2023
1 parent 045e512 commit 6264324
Show file tree
Hide file tree
Showing 35 changed files with 139 additions and 91 deletions.
8 changes: 5 additions & 3 deletions app/client/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ input AlterLike {
to: Boolean!
}

scalar BigInt

input CreateEvent {
description: String!
endDateTime: Date!
Expand Down Expand Up @@ -148,7 +150,7 @@ type Event implements Node {
"""
The question currently being asked, corresponds to a "position" value on the event question
"""
currentQuestion: Int
currentQuestion: BigInt
description: String

"""The planned end date time string"""
Expand Down Expand Up @@ -369,7 +371,7 @@ type EventQuestion implements Node {

"""Find the count of the likes only"""
likedByCount: Int
position: Int
position: BigInt

"""The actual content of the question"""
question: String
Expand Down Expand Up @@ -769,7 +771,7 @@ input UpdatePasswordForm {

input UpdateQuestionPosition {
eventId: ID!
position: Int!
position: BigInt!
questionId: ID!
}

Expand Down
4 changes: 2 additions & 2 deletions app/client/src/__generated__/DeleteButtonFragment.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions app/client/src/__generated__/QuestionQueueMutation.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/client/src/__generated__/QueueButtonFragment.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6264324

Please sign in to comment.