Skip to content

Strengthen PII redaction docs and regression tests#25

Merged
andreagrandi merged 1 commit into
masterfrom
pii-redaction-docs-tests
May 18, 2026
Merged

Strengthen PII redaction docs and regression tests#25
andreagrandi merged 1 commit into
masterfrom
pii-redaction-docs-tests

Conversation

@andreagrandi

Copy link
Copy Markdown
Owner

Summary

Closes #17.

  • Make RunCard fetch the source card so semantic-type enrichment runs on the non-parameterized path, matching RunCardWithParams and RunDashboardCard. Native saved questions whose result columns lack a semantic type are now redacted just like the parameterized variants.
  • Expand the regression test suite for representative result shapes:
    • RunStructuredQuery redaction
    • ExportStructuredQuery blocked when redaction is enabled
    • GetTableData redaction
    • RunCard redaction, including a native-card case where enrichment must fill in missing semantic types
    • RunCardWithParams and RunDashboardCard redaction (parameterized paths)
    • GetFieldValues matrix: PII field on, non-PII field on, PII field off, plus an assertion that field metadata is only fetched when redaction is on
    • EnrichSemanticTypes direct tests: fills missing types, picks PII when duplicate names disagree, skips network when all types are present
  • Rewrite the README PII section: defaults and the stderr warning, full semantic-type list, table of covered commands, limits and known gaps (custom types, derived columns, aliases), export block with opt-out, and flag/env precedence.

Test plan

  • make test
  • make vet
  • make build

- Make RunCard fetch the card so semantic-type enrichment runs on the
  non-parameterized path, matching RunCardWithParams and RunDashboardCard.
- Add regression tests covering redaction for structured queries, table
  data, native saved cards (with and without parameters), dashboard
  run-card, field values, and the ExportStructuredQuery block.
- Expand README PII section with covered commands, semantic-type
  enrichment behavior, known gaps, export opt-out, and flag/env precedence.

Closes #17
@andreagrandi andreagrandi merged commit 80ad9d7 into master May 18, 2026
7 checks passed
@andreagrandi andreagrandi deleted the pii-redaction-docs-tests branch May 18, 2026 20:46
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.

Strengthen PII redaction documentation and regression tests

1 participant