Skip to content

Deep audit: fill reachable fields and align docs - #2

Merged
tamnd merged 2 commits into
mainfrom
field-coverage-audit
Jun 14, 2026
Merged

Deep audit: fill reachable fields and align docs#2
tamnd merged 2 commits into
mainfrom
field-coverage-audit

Conversation

@tamnd

@tamnd tamnd commented Jun 14, 2026

Copy link
Copy Markdown
Owner

A field-coverage and docs audit over every page type, record type, and field.

Source

Three record fields were declared but never filled, even though a logged-out GraphQL query returns all of them:

  • Stream.mature, now read from broadcaster.broadcastSettings.isMature.
  • Channel.partner and Channel.affiliate on channel search, now read from roles.

The top-stream and game-stream queries now share one node selection, so a category's streams show the category display name instead of backfilling the slug. Removed two node fields that were selected but unused.

Tests updated: the top-streams fixture carries isMature, search carries roles, and both assert the new values.

Docs

  • The site index and introduction said "crawl" and "Twitch Interactive"; the README and tago.toml had settled on "read" and "Twitch". Wording now matches across pages.
  • Added markdown to the -o format list in the README and the quick start, the only pages missing it.
  • The add-a-command guide pointed at a parse.go that does not exist; it now points at toClip in clips.go, and the example op's summary and arg help match the real registration.

Checks

gofmt, vet, test, and build are clean. The docs site builds (16 pages).

tamnd added 2 commits June 15, 2026 01:15
The mature flag on a stream, and the partner and affiliate flags on a
searched channel, were declared on the records but never populated. All
three come back fine from a logged-out GraphQL query, so they were dead
columns rather than walled fields.

Read broadcastSettings.isMature for streams and roles on channel search,
and share one node selection between the top-stream and game-stream
queries so a category's streams now show the category display name
instead of backfilling the slug.
The site index and introduction still said "crawl" and "Twitch
Interactive" while the README and tago.toml had settled on "read" and
"Twitch", so make the wording match. Add markdown to the format list in
the README and the quick start, where it was the only page missing it.

The add-a-command guide pointed at a parse.go that does not exist; the
wire-to-record mapping lives next to each query, so point at toClip in
clips.go instead, and match the example op's summary and arg help to the
real registration.
@tamnd
tamnd merged commit 5cd2ff5 into main Jun 14, 2026
7 checks passed
@tamnd
tamnd deleted the field-coverage-audit branch June 14, 2026 18:20
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.

1 participant