Skip to content

fix(eol): declare the federation key on the catalog remediation type - #36

Merged
facundo-herodevs merged 1 commit into
mainfrom
fix/nes-remediation-stub
Sep 29, 2026
Merged

facundo-herodevs merged 1 commit into
mainfrom
fix/nes-remediation-stub

Conversation

@facundo-herodevs

Copy link
Copy Markdown
Member

What This Branch Does

Declares the federation key on NesRemediation, the catalog remediation type attached to a scan component.

  • Adds target?: string. The scan service emits only this key; the catalog subgraph owns and resolves remediations.
  • target is optional because a GraphQL client receives it only when it selects it. Clients that select only remediations keep type-checking unchanged.
  • Documents the ownership split on the type.

Test Coverage

  • Type-level assertions pin NesRemediation['target'] to string | undefined and EolScanComponent['nesRemediation'] to NesRemediation | null | undefined.

Known Gaps

  • The remediations item shape still declares non-null purls.nes and urls.main, while the catalog fields are nullable. That is unchanged here.
  • No consumer needs this change yet; it can ship with the next release.

Refs neverendingsupport/evergreen-ui#427

NesRemediation omitted the target the scan service emits and every gateway
client can select, so it disagreed with the schema and the service model. Add
target as optional, since a GraphQL client receives it only when it selects it,
and document that the scan service emits only the key while the catalog
subgraph owns and resolves the remediations. A type-level spec pins the shape.
@facundo-herodevs
facundo-herodevs marked this pull request as ready for review September 29, 2026 16:16
@facundo-herodevs
facundo-herodevs merged commit 3534d0d into main Sep 29, 2026
7 checks passed
@facundo-herodevs
facundo-herodevs deleted the fix/nes-remediation-stub branch September 29, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants