Skip to content

Commit

Permalink
merge dev into main
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisjanisP committed Jan 3, 2024
2 parents 2c60731 + 8f77bfe commit 98add36
Show file tree
Hide file tree
Showing 23 changed files with 924 additions and 114 deletions.
2 changes: 2 additions & 0 deletions api/task.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ type Task {
constraints: Constraints!
metadata: Metadata!

solved: Boolean

tests: [Test!]!

createdAt: String!
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21.1
toolchain go1.21.3

require (
github.com/99designs/gqlgen v0.17.40
github.com/99designs/gqlgen v0.17.41
github.com/alexedwards/scs/redisstore v0.0.0-20231113091146-cef4b05350c8
github.com/alexedwards/scs/v2 v2.7.0
github.com/go-git/go-git/v5 v5.10.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/99designs/gqlgen v0.17.40 h1:/l8JcEVQ93wqIfmH9VS1jsAkwm6eAF1NwQn3N+SDqBY=
github.com/99designs/gqlgen v0.17.40/go.mod h1:b62q1USk82GYIVjC60h02YguAZLqYZtvWml8KkhJps4=
github.com/99designs/gqlgen v0.17.41 h1:C1/zYMhGVP5TWNCNpmZ9Mb6CqT1Vr5SHEWoTOEJ3v3I=
github.com/99designs/gqlgen v0.17.41/go.mod h1:GQ6SyMhwFbgHR0a8r2Wn8fYgEwPxxmndLFPhU63+cJE=
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 h1:bvDV9vkmnHYOMsOr4WLk+Vo07yKIzd94sVoIqshQ4bU=
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8=
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0=
Expand Down
2 changes: 1 addition & 1 deletion internal/database/funcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

var (
once sync.Once
dbProvider testdb.TestDBProvider
dbProvider testdb.DbProvider
)

func TestMain(m *testing.M) {
Expand Down
6 changes: 3 additions & 3 deletions internal/database/testdb/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/testcontainers/testcontainers-go"
)

// TestDBProvider provides a migrated database
// DbProvider provides a migrated database
// and a method to close it (don't forget to do it).
type TestDBProvider interface {
type DbProvider interface {
GetTestDB() *sqlx.DB
Close()
}
Expand All @@ -25,7 +25,7 @@ const (
defaultDBName = "proglv"
)

func NewPostgresTestcontainerProvider() (TestDBProvider, error) {
func NewPostgresTestcontainerProvider() (DbProvider, error) {
return initPostgresContainerTestDB()
}

Expand Down
2 changes: 1 addition & 1 deletion internal/graphql/execution.resolvers.go

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

77 changes: 77 additions & 0 deletions internal/graphql/generated.go

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

40 changes: 15 additions & 25 deletions internal/graphql/language.resolvers.go

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

1 change: 1 addition & 0 deletions internal/graphql/models_gen.go

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

2 changes: 1 addition & 1 deletion internal/graphql/schema.resolvers.go

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

2 changes: 1 addition & 1 deletion internal/graphql/submission.resolvers.go

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

Loading

0 comments on commit 98add36

Please sign in to comment.