From 37e9aeff963287d06413b369bfebdf6797c73821 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 14:57:42 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/99designs/gqlgen from 0.17.40 to 0.17.42 Bumps [github.com/99designs/gqlgen](https://github.com/99designs/gqlgen) from 0.17.40 to 0.17.42. - [Release notes](https://github.com/99designs/gqlgen/releases) - [Changelog](https://github.com/99designs/gqlgen/blob/master/CHANGELOG.md) - [Commits](https://github.com/99designs/gqlgen/compare/v0.17.40...v0.17.42) --- updated-dependencies: - dependency-name: github.com/99designs/gqlgen dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 24499ca4..85070aec 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/cleodora-forecasting/cleodora go 1.20 require ( - github.com/99designs/gqlgen v0.17.40 + github.com/99designs/gqlgen v0.17.42 github.com/Khan/genqlient v0.6.0 github.com/adrg/xdg v0.4.0 github.com/carolynvs/magex v0.9.0 diff --git a/go.sum b/go.sum index e6612cbb..eae6949b 100644 --- a/go.sum +++ b/go.sum @@ -58,8 +58,8 @@ 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/4meepo/tagalign v1.3.3 h1:ZsOxcwGD/jP4U/aw7qeWu58i7dwYemfy5Y+IF1ACoNw= github.com/4meepo/tagalign v1.3.3/go.mod h1:Q9c1rYMZJc9dPRkbQPpcBNCLEmY2njbAsXhQOZFE2dE= -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.42 h1:BVWDOb2VVHQC5k3m6oa0XhDnxltLLrU4so7x/u39Zu4= +github.com/99designs/gqlgen v0.17.42/go.mod h1:GQ6SyMhwFbgHR0a8r2Wn8fYgEwPxxmndLFPhU63+cJE= github.com/Abirdcfly/dupword v0.0.13 h1:SMS17YXypwP000fA7Lr+kfyBQyW14tTT+nRv9ASwUUo= github.com/Abirdcfly/dupword v0.0.13/go.mod h1:Ut6Ue2KgF/kCOawpW4LnExT+xZLQviJPE4klBPMK/5Y= github.com/AlekSi/pointer v1.2.0 h1:glcy/gc4h8HnG2Z3ZECSzZ1IX1x2JxRVuDzaJwQE0+w= @@ -145,6 +145,7 @@ github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c h1:kMFnB0vCcX github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f h1:tCbYj7/299ekTTXpdwKYF8eBlsYsDVoggDAuAjoK66k= github.com/ProtonMail/gopenpgp/v2 v2.7.1 h1:Awsg7MPc2gD3I7IFac2qE3Gdls0lZW8SzrFZ3k1oz0s= +github.com/PuerkitoBio/goquery v1.8.1 h1:uQxhNlArOIdbrH1tr0UXwdVFgDcZDrZVdcpygAcwmWM= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ= @@ -176,6 +177,7 @@ github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQ github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= github.com/andybalholm/brotli v1.0.1/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= +github.com/andybalholm/cascadia v1.3.1 h1:nhxRkql1kdYCc8Snf7D5/D3spOX+dBgjA6u8x004T2c= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= From 5cff9d549e348cd15ba0f7f0138594bf442a2ec1 Mon Sep 17 00:00:00 2001 From: Omar Kohl Date: Tue, 2 Jan 2024 11:16:21 +0000 Subject: [PATCH 2/2] refactor(cleosrv): automatic changes after gqlgen update to v0.17.42 --- cleosrv/graph/generated/generated.go | 24 ------------------------ cleosrv/graph/model/models_gen.go | 6 ++++++ 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/cleosrv/graph/generated/generated.go b/cleosrv/graph/generated/generated.go index 94b1d040..b5243381 100644 --- a/cleosrv/graph/generated/generated.go +++ b/cleosrv/graph/generated/generated.go @@ -3845,8 +3845,6 @@ func (ec *executionContext) unmarshalInputNewEstimate(ctx context.Context, obj i } switch k { case "reason": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reason")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -3854,8 +3852,6 @@ func (ec *executionContext) unmarshalInputNewEstimate(ctx context.Context, obj i } it.Reason = data case "probabilities": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("probabilities")) data, err := ec.unmarshalNNewProbability2ᚕᚖgithubᚗcomᚋcleodoraᚑforecastingᚋcleodoraᚋcleosrvᚋgraphᚋmodelᚐNewProbabilityᚄ(ctx, v) if err != nil { @@ -3863,8 +3859,6 @@ func (ec *executionContext) unmarshalInputNewEstimate(ctx context.Context, obj i } it.Probabilities = data case "created": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("created")) data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { @@ -3892,8 +3886,6 @@ func (ec *executionContext) unmarshalInputNewForecast(ctx context.Context, obj i } switch k { case "title": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -3901,8 +3893,6 @@ func (ec *executionContext) unmarshalInputNewForecast(ctx context.Context, obj i } it.Title = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -3910,8 +3900,6 @@ func (ec *executionContext) unmarshalInputNewForecast(ctx context.Context, obj i } it.Description = data case "resolves": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resolves")) data, err := ec.unmarshalNTime2timeᚐTime(ctx, v) if err != nil { @@ -3919,8 +3907,6 @@ func (ec *executionContext) unmarshalInputNewForecast(ctx context.Context, obj i } it.Resolves = data case "closes": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("closes")) data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { @@ -3928,8 +3914,6 @@ func (ec *executionContext) unmarshalInputNewForecast(ctx context.Context, obj i } it.Closes = data case "created": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("created")) data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { @@ -3957,8 +3941,6 @@ func (ec *executionContext) unmarshalInputNewOutcome(ctx context.Context, obj in } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -3986,8 +3968,6 @@ func (ec *executionContext) unmarshalInputNewProbability(ctx context.Context, ob } switch k { case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -3995,8 +3975,6 @@ func (ec *executionContext) unmarshalInputNewProbability(ctx context.Context, ob } it.Value = data case "outcome": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("outcome")) data, err := ec.unmarshalONewOutcome2ᚖgithubᚗcomᚋcleodoraᚑforecastingᚋcleodoraᚋcleosrvᚋgraphᚋmodelᚐNewOutcome(ctx, v) if err != nil { @@ -4004,8 +3982,6 @@ func (ec *executionContext) unmarshalInputNewProbability(ctx context.Context, ob } it.Outcome = data case "outcomeId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("outcomeId")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { diff --git a/cleosrv/graph/model/models_gen.go b/cleosrv/graph/model/models_gen.go index e4d7d91f..f2bcb19a 100644 --- a/cleosrv/graph/model/models_gen.go +++ b/cleosrv/graph/model/models_gen.go @@ -48,6 +48,9 @@ type Metadata struct { Version string `json:"version"` } +type Mutation struct { +} + type NewEstimate struct { Reason string `json:"reason"` Probabilities []*NewProbability `json:"probabilities"` @@ -101,6 +104,9 @@ type Probability struct { Outcome *Outcome `json:"outcome"` } +type Query struct { +} + type Resolution string const (