fix: use USER_ENTERED for proper value type handling#23
Open
dmitry-simple-it wants to merge 1 commit into
Open
fix: use USER_ENTERED for proper value type handling#23dmitry-simple-it wants to merge 1 commit into
dmitry-simple-it wants to merge 1 commit into
Conversation
…e_cell Change valueInputOption from RAW to USER_ENTERED to fix: - Boolean values (TRUE/FALSE) being stored as text with leading apostrophe - Formulas not being evaluated - Numbers and dates not being recognized Fixes isaacphi#22 Also addresses the issue described in PR isaacphi#21 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
valueInputOptionfromRAWtoUSER_ENTEREDingsheets_update_cellProblem
When using
gsheets_update_cell, values are stored as literal strings because ofvalueInputOption: "RAW". This causes:TRUE/FALSE) to be stored as text with leading apostrophe ('TRUE), breaking checkboxes=A1+B1) to be stored as text instead of being evaluatedSolution
Change
valueInputOptionto"USER_ENTERED", which makes Google Sheets interpret values as if typed by a user:TRUE'TRUE(text)TRUE(boolean) ✓=A1+B1'=A1+B1(text)123123(text)123(number) ✓2024-01-15Test plan
TRUE/FALSE- checkboxes now work correctlyRelated
🤖 Generated with Claude Code