• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

99designs / gqlgen / 10929653265
0%

Build:
DEFAULT BRANCH: master
Ran 18 Sep 2024 08:31PM UTC
Jobs 1
Files 127
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Sep 2024 08:29PM UTC coverage: 58.813% (-0.7%) from 59.525%
10929653265

push

github

web-flow
feat: create @requires integration that functions like a normal resolver (#3292)

* feat: create @requires integration that functions like a normal resolver

The "explicit_requires" flag current generates the @requires resolver inside the execution context. It also doesn't use the normal resolver resolution process and adds a custom implementation that is always called, even if the field isn't requested.

The new "computed_requires" flag looks for @requires directives and mutates the schema to add dynamic field arguments and directives that are used internally by gqlgen.

These additional directives (@entityReference and @populateFromRepresentations) are runtime directives that "computed_requires" adds implementations for that enable us to fetch the correct data from the representations array and populated it into the dynamic argument for the @requires field.

* Add mechanism for supporting statically provided directive implementations.

* Get @populateFromRepresentations working

* Add tests for computedrequires

* Update documentation

* Ensure everyone that should be is using version 2

* Fix linter issues

215 of 470 new or added lines in 10 files covered. (45.74%)

1 existing line in 1 file now uncovered.

7404 of 12589 relevant lines covered (58.81%)

509.68 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
67.61
0.0% codegen/args.go
1
72.94
0.0% codegen/field.go
2
67.27
-0.65% api/generate.go
6
79.01
-1.81% codegen/data.go
14
0.0
plugin/federation/testdata/computedrequires/generated/models/models.go
17
53.49
-7.57% codegen/directive.go
42
27.59
plugin/federation/testdata/computedrequires/schema.resolvers.go
58
52.07
plugin/federation/testdata/computedrequires/entity.resolvers.go
114
72.12
-10.23% plugin/federation/federation.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.12
-10.23% plugin/federation/federation.go
Jobs
ID Job ID Ran Files Coverage
1 10929653265.1 18 Sep 2024 08:31PM UTC 127
58.81
GitHub Action Run
Source Files on build 10929653265
  • Tree
  • List 127
  • Changed 57
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b020c09e on github
  • Prev Build on master (#10910159347)
  • Next Build on master (#10960757633)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc