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

99designs / gqlgen / 28561790933
0%
master: 0%

Build:
Build:
LAST BUILD BRANCH: gocomputed
DEFAULT BRANCH: master
Ran 02 Jul 2026 02:51AM 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

02 Jul 2026 02:46AM UTC coverage: 0.0%. Remained the same
28561790933

Pull #4251

github

StevenACoffman
feat(federation): per-field computed @requires via @goComputed

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 @goComputed 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.

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

- inject `directive @goComputed 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: @goComputed only on @requires fields, and not with the explicit
  strategy (whose Populate<Entity>Requires hook already owns every @requires field)
- add testdata/gocomputed (preloaded scalar + @goComputed object on one entity)
  and TestGoComputed; add TestValidateComputedFields
- remove the now-unused IsComputedRequires method
-... (continued)
Pull Request #4251: feat(federation): per-field computed @requires via @goComputed

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28561790933.1 02 Jul 2026 02:51AM UTC 0
0.0
GitHub Action Run
Source Files on build 28561790933
Detailed source file information is not available for this build.
  • Back to Repo
  • Pull Request #4251
  • PR Base - master (#28555658791)
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