Skip to content

Commit

Permalink
Question position bigint update (#368)
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
  • Loading branch information
kadey001 authored Nov 29, 2022
1 parent 362504d commit 78ebc69
Show file tree
Hide file tree
Showing 33 changed files with 136 additions and 92 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 @@ -135,7 +137,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 @@ -290,7 +292,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 @@ -676,7 +678,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 78ebc69

Please sign in to comment.