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

99designs / gqlgen / 28686012432
0%

Build:
DEFAULT BRANCH: master
Ran 03 Jul 2026 10:31PM UTC
Jobs 1
Files 0
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

03 Jul 2026 10:28PM UTC coverage: 0.0%. Remained the same
28686012432

push

github

web-flow
feat(federation): per-field computed @requires via @computedRequires (#4251)

The computed @requires strategy was entity-level all-or-nothing: computed_requires
turned *every* @requires field on its entities into a field resolver, so an entity
could not compute one field while delivering the rest through the entity resolver.

Add a federation-owned @computedRequires directive on FIELD_DEFINITION that marks a
single @requires field as computed: it is routed to a standalone field resolver
(receiving federationRequires), while the entity's other @requires fields follow
its strategy. This lets a preloaded entity keep its scalar @requires on the batch
input and hand an object-typed @requires — which preloaded cannot reconstruct — to
a field resolver, both on the same entity.

The directive is camelCase with no @go prefix, matching the federation plugin's own
@entityResolver rather than the general Go-mapping directives (@goField, @goModel);
its name mirrors the computed_requires package option it is the per-field form of.

Backward compatible: computed_requires still computes every @requires field, and
existing schemas regenerate unchanged apart from the injected @computedRequires
declaration in the embedded SDL.

- inject `directive @computedRequires on FIELD_DEFINITION` in both federation
  version schemas; register it SkipRuntime
- resolve the per-field decision once (requiresFieldIsComputed), store it on
  Requires.Computed, and read it from both the schema mutation and the template
- mutateSchemaForRequires forces a resolver + injects _federationRequires per
  computed field over the live cfg.Schema (the schema is re-parsed after
  InjectSourcesLate, so entity.Def fields are stale); injectPreloadedRequiresFields
  and the three template sites skip computed fields
- gate the computed schema mutation and its Federation 2 +
  call_argument_directives_with_null prerequisite on any computed field
- validate: @computedRequires only on @requires fields, and ... (continued)

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28686012432.1 03 Jul 2026 10:31PM UTC 0
0.0
GitHub Action Run
Source Files on build 28686012432
Detailed source file information is not available for this build.
  • Back to Repo
  • f4474387 on github
  • Prev Build on master (#28609043539)
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

© 2026 Coveralls, Inc