Skip to content

feat(api): typed response structs, batch 7 — tags (#1197) - #1209

Merged
athvin merged 2 commits into
mainfrom
issue/1197-typed-tags
Nov 24, 2026
Merged

athvin merged 2 commits into
mainfrom
issue/1197-typed-tags

Conversation

@athvin

@athvin athvin commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Closes #1197

Part of #864 (batch 7 of 10: tags).

🚧 Claimed by an agent session — 2026-11-24T16:34:46Z, session Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306 on Mac.
The claim is this open draft PR: closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

Batch 7 of #864 converts tag create, list and retire, apply and unapply, a tag's subjects, the dataset's taggings and the staged-action count to typed structs over the registered TagWire/TaggingWire. 8 more operations now publish a $ref success schema (64 → 72 of 119).

Why

OpenAPI is the customer integration contract (#857).

Proof

  • make check: 1,155 passed, 0 failed.
  • er-server --tests against Postgres: 389 passed.
  • Frontend tsc --noEmit is clean against the regenerated schema.d.ts.
  • envelopes.json is unchanged.

Risk & rollback

Bodies are value-equal to the old ones; only key order changes. Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306 on Mac · 2026-11-24T17:04:24Z

Specific to this change

Context — plan, discoveries, measurements, files

Plan

  • Structs: TagList, TagSubjects, TaggingList, TagApplied, TagRemoved, TagRetired, StagedCount. Create serializes through TagWire::from.
  • Value-equality test in response_shape_tests, including entity vs wire for Tag and Tagging.

Discoveries

Measurements

Files

rust/crates/er-server/src/{lib.rs,openapi.rs}, frontend/src/lib/api/{openapi.json,openapi.public.json,schema.d.ts}

Tag create/list/retire, apply/unapply, a tag's subjects, the dataset's
taggings and the staged-action count now return Serialize + ToSchema
structs over the registered TagWire/TaggingWire (field-identical to
their entities). 8 more operations publish a $ref success schema
(64 -> 72).

Value equality against the previous json! builds is pinned in
response_shape_tests; envelopes.json is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

The marketing preview was removed because this PR is closed or merged.

@athvin
athvin merged commit fb33f63 into main Nov 24, 2026
46 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 24, 2026 16:52 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — 7cb84b84 Deployed Nov 24, 2026 by athvin via remove closed PR previews #28
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.

#864 batch 7: typed responses for tags

2 participants