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

nautilus / gateway / 42871367578
93%

Build:
DEFAULT BRANCH: master
Ran 10 Nov 2026 06:05PM UTC
Jobs 1
Files 12
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

10 Nov 2026 06:04PM UTC coverage: 92.292% (-0.2%) from 92.503%
42871367578

push

github

web-flow
Fix union selection planning regressions from #231 (#239)

* Keep union member fields inside their type fragments

The union collapse from #231 planned each member type's selections
against the member type, but then appended the planned fields directly
under the union field. A query like

    foo { ... on Bar { bar } }

was sent downstream as `foo { bar }`, which is invalid because a union
has no fields of its own. The same applied to the `id` the planner adds
for node lookups, so the existing test asserted an invalid query.

Wrap each member type's planned selection set back into an inline
fragment on that type before adding it to the union field.

* Allow __typename on union selections and fix fragment spread lookup

The union collapse from #231 rejected any plain field inside a union
selection set with "unsupported selection type inside union:
*ast.Field". __typename is the one field the spec allows directly on a
union, and clients like Apollo add it to every selection set, so every
union-returning field failed to plan.

Route __typename to the service that owns the union field. Also resolve
fragment spreads by the spread's own name instead of the parent field's
name (which dereferenced a nil fragment), falling back to the
operation's fragment definitions.

Inline fragments and named fragments whose type condition is the union
itself (`fragment f on Union { ... }`), or which have no type condition
at all, apply to the union rather than to a member type. Flatten their
selections into the same per-type groups, so that member fragments
nested inside them are still planned against the member type. Otherwise
they fall through to the pre-#231 path, which sends `... on Union` to
services that do not know the union and puts the lookup `id` directly on
the union field.

38 of 49 new or added lines in 1 file covered. (77.55%)

3 existing lines in 2 files now uncovered.

2718 of 2945 relevant lines covered (92.29%)

403.07 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
90.54
-0.48% plan.go

Coverage Regressions

Lines Coverage ∆ File
2
93.23
-0.65% http.go
1
90.54
-0.48% plan.go
Jobs
ID Job ID Ran Files Coverage
1 42871367578.1 10 Nov 2026 06:05PM UTC 12
92.29
GitHub Action Run
Source Files on build 42871367578
  • Tree
  • List 12
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 76a93a31 on github
  • Prev Build on master (#28961195305)
  • Next Build on master (#42873849544)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc