Skip to content

feat(sheets): data-validation get / set / clear commands #710

@chrischall

Description

@chrischall

Summary

There is currently no way to read or write data-validation rules (dropdowns, checkbox, number/date constraints, etc.) on a sheet. gog sheets exposes no validation command, and sheets copy-paste --type DATA_VALIDATION does not round-trip table-managed dropdowns.

Why it matters

  • Validations can't be backed up before a destructive op (e.g. before deleting a table — see the table-delete data-loss issue) nor recreated afterward. Dropdown columns survive only as plain text, permanently losing the pickers.
  • Any task that must touch a validated column has no non-destructive path.

Requested

  • gog sheets validation get <spreadsheetId> <range> — dump the DataValidationRule(s) covering a range.
  • gog sheets validation set <spreadsheetId> <range> ... — set a rule (at minimum ONE_OF_LIST with values, plus the common condition types: NUMBER_BETWEEN, DATE_*, BOOLEAN, ONE_OF_RANGE), with --strict / --show-custom-ui toggles.
  • gog sheets validation clear <spreadsheetId> <range>.
  • Make copy-paste --type DATA_VALIDATION actually capture/restore validations.

These map directly onto the Sheets API setDataValidation / DataValidationRule and the DATA_VALIDATION paste type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossThis issue is about lost, corrupted, or silently dropped user/session/config data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions