-
Notifications
You must be signed in to change notification settings - Fork 602
feat(sheets): data-validation get / set / clear commands #710
Copy link
Copy link
Open
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper 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 does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossThis issue is about lost, corrupted, or silently dropped user/session/config data.This 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.Very strong issue quality with high-confidence source-level or clear reproduction.
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper 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 does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossThis issue is about lost, corrupted, or silently dropped user/session/config data.This 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.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
There is currently no way to read or write data-validation rules (dropdowns, checkbox, number/date constraints, etc.) on a sheet.
gog sheetsexposes novalidationcommand, andsheets copy-paste --type DATA_VALIDATIONdoes not round-trip table-managed dropdowns.Why it matters
Requested
gog sheets validation get <spreadsheetId> <range>— dump theDataValidationRule(s) covering a range.gog sheets validation set <spreadsheetId> <range> ...— set a rule (at minimumONE_OF_LISTwith values, plus the common condition types:NUMBER_BETWEEN,DATE_*,BOOLEAN,ONE_OF_RANGE), with--strict/--show-custom-uitoggles.gog sheets validation clear <spreadsheetId> <range>.copy-paste --type DATA_VALIDATIONactually capture/restore validations.These map directly onto the Sheets API
setDataValidation/DataValidationRuleand theDATA_VALIDATIONpaste type.