Skip to content

feat(breg)!: key statistical measure declarations by ID - #2954

Open
jeremi wants to merge 4 commits into
mainfrom
jeremi/breg-statistics-authoring
Open

jeremi wants to merge 4 commits into
mainfrom
jeremi/breg-statistics-authoring

Conversation

@jeremi

@jeremi jeremi commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Change statistical dataset authoring to use recordType and a measures map keyed by measure ID. Update package fixtures, schema, authoring docs, and migration diagnostics for the breaking configuration change.
  • Publish optional dataset and measure display labels in caller-filtered registry metadata and expose typed measure descriptors in the Rust, Node, and Python clients.
  • Report retained release series that would become hidden after activation due to a changed definition digest in the database-aware bregctl plan report.

Security and compatibility

  • Discovery uses the existing dataset grants. Display labels are scoped to the metadata projection. Existing response fields, cell and CSV measure IDs, and formula digest inputs keep their current contract.
  • The sealed-package reader preserves the original order and identity of historical definitions. Newly authored measures compile in ID order. Existing configurations need to rename unit to recordType and move each measure's id into its map key.
  • The activation preview reads dataset IDs and definition digests for retained non-withdrawn series. It uses the existing migration authority and reports the impact before activation.

Verification

  • Focused compiler, generated schema and SDK contract checks, Rust metadata, Node and Python binding suites, product fixture validation, formatting and targeted Clippy.
  • Disposable PostgreSQL 17 and 18 checks for release access, exact and protected result behavior, and activation preview. Regression cases include display-only edits, ID-sorted and unsorted legacy definitions, and series with only withdrawn releases.

Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T13:53:59.750025Z 0ef0a55 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>

This branch has not been deployed

No deployments
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