Skip to content

Add partial row updates & remove fields.get#6

Merged
john-doherty merged 6 commits intomasterfrom
fixes
Apr 23, 2026
Merged

Add partial row updates & remove fields.get#6
john-doherty merged 6 commits intomasterfrom
fixes

Conversation

@john-doherty
Copy link
Copy Markdown
Contributor

@john-doherty john-doherty commented Apr 23, 2026

  • Add support for a partial option on rows.add and rows.updateOne (propagates ?partial=true to requests) and add the partial flag to TypeScript definitions.
  • Remove the deprecated fields.get API (implementation, type, and tests).
  • Update README examples and docs (field format labels, admin note, options docs, retry/backoff details
  • Adjust tests to cover the new partial behavior and the removed fields.get surface

Add support for a partial option on rows.add and rows.updateOne (propagates ?partial=true to requests) and add the partial flag to TypeScript definitions. Remove the deprecated fields.get API (implementation, type, and tests). Update README examples and docs (field format labels, admin note, options docs, retry/backoff details) and adjust tests to cover the new partial behavior and the removed fields.get surface.
@john-doherty john-doherty self-assigned this Apr 23, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for partial row updates by propagating ?partial=true for rows.add and rows.updateOne, updates TypeScript typings accordingly, and removes the deprecated fields.get API surface across implementation, docs, and tests.

Changes:

  • Add partial option support to rows.add and rows.updateOne (JS + TS types) and expand unit tests to verify query param behavior.
  • Remove fields.get from the runtime client and TypeScript definitions, and delete associated unit tests.
  • Update README/docs and introduce an opt-in e2e test suite (new Jasmine config + helpers + script).

Reviewed changes

Copilot reviewed 19 out of 21 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
index.js Adds partial query param support for rows.add / rows.updateOne; removes fields.get implementation.
index.d.ts Adds partial?: boolean to rows.add / rows.updateOne options; removes fields.get type.
tests/rows-spec.js Adds unit coverage asserting partial=true is (and isn’t) sent for add / updateOne.
tests/fields-spec.js Removes unit tests for the deleted fields.get API.
tests/interface-spec.js Updates interface expectations to reflect removal of fields.get and adjusted method counts.
tests/jasmine/config.json Excludes tests/e2e/** from the default npm test suite.
tests/e2e/setup.js Adds shared e2e client setup, .env loading, and shared sheetId state.
tests/e2e/jasmine-e2e.config.json Adds a dedicated Jasmine config for running e2e specs.
tests/e2e/01-sheets-e2e-spec.js Creates a sheet and stores sheetId for subsequent e2e specs.
tests/e2e/02-settings-e2e-spec.js Adds e2e coverage for settings get/update.
tests/e2e/03-fields-e2e-spec.js Adds e2e coverage for fields create/list/update/delete.
tests/e2e/04-rows-e2e-spec.js Adds e2e coverage for rows add/get/list/update/count/updateMany/delete.
tests/e2e/05-history-e2e-spec.js Adds e2e coverage for history endpoints with row lifecycle setup/cleanup.
tests/e2e/06-hooks-e2e-spec.js Adds e2e coverage for hooks events/list/get/create/update/delete.
tests/e2e/07-users-e2e-spec.js Adds e2e coverage for listing users.
tests/e2e/99-teardown-e2e-spec.js Cleans up by deleting the created sheet and verifying deletion.
README.md Updates examples/docs: field formats, partial support notes, admin note, and retry/backoff wording.
package.json Bumps version, adds files allowlist, and introduces test-e2e script.
package-lock.json Updates version to match package.json.
.npmrc Sets save-exact=true for dependency pinning in dev.
.env.example Adds example env vars for running the new e2e suite.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment thread tests/e2e/02-settings-e2e-spec.js
Comment thread tests/e2e/setup.js
@john-doherty john-doherty merged commit 54c26f7 into master Apr 23, 2026
1 check passed
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.

2 participants