Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Google Sheets Node): Do not insert row_number as a new column, do not checkForSchemaChanges in update operation #10201

Conversation

michael-radency
Copy link
Contributor

@michael-radency michael-radency commented Jul 26, 2024

Summary

row_number column generated when reading data from sheet, if this data then used to upsert or update it would create row_number column in sheet, we prevent this to happen when in append operation and need to do this in upsert and update as well

After fix we would not insert row_number as a new column, but it would still be updated or appended if sheet already has one


checkForSchemaChanges intended to prevent shifts of columns if new one was added, it should not be checked in update as it is not positional bet key: value pair based

This fix removes checkForSchemaChanges from update operation

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-1489/google-sheets-deal-gracefully-with-column-updates
https://linear.app/n8n/issue/NODE-1381/google-sheets-insertupsert-shouldnt-create-a-row-number-col-by-default

@michael-radency michael-radency added n8n team Authored by the n8n team node/issue Issue with a node labels Jul 26, 2024
Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

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

Code looks good!
Please Update the PR description to make it clearer before merging

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Jul 26, 2024

1 flaky test on run #6155 ↗︎

0 389 0 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Project: n8n Commit: a1cd1afe87
Status: Passed Duration: 04:11 💡
Started: Jul 26, 2024 8:36 AM Ended: Jul 26, 2024 8:41 AM
Flakiness  e2e/30-langchain.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Langchain Integration > should be able to open and execute Basic LLM Chain node Test Replay Screenshots Video

Review all test suite changes for PR #10201 ↗︎

@michael-radency michael-radency merged commit 5136d10 into master Jul 26, 2024
29 checks passed
@michael-radency michael-radency deleted the node-1489-google-sheets-deal-gracefully-with-column-updates branch July 26, 2024 08:45
MiloradFilipovic added a commit that referenced this pull request Jul 29, 2024
* master:
  feat(HTTP Request Node): Add option to disable lowercase headers (#10154)
  feat: Recovery option for jsonParse helper (#10182)
  fix: Better error message when calling data transformation functions on a null value (#10210)
  refactor: Delete mistakenly commited node file (no-changelog) (#10213)
  refactor(editor): Add Infisical deprecation notice (#10191)
  feat(editor): Show new executions as `Queued` in the UI, until they actually start (#10204)
  refactor: Update Langchain modules & add Ollama tools support (#10208)
  feat(Sentiment Analysis Node): Implement Sentiment Analysis node (#10184)
  fix: Add original error message to messages, do not obfuscate if description provided in options (no-changelog) (#10202)
  fix(Google Sheets Node): Fix Google Sheet URL regex (#10195)
  fix(Google Sheets Node): Add column names row if sheet is empty (#10200)
  fix(Google Sheets Node): Do not insert row_number as a new column, do not checkForSchemaChanges in update operation (#10201)
  docs: Update credential urls (no-changelog) (#10193)
  fix(editor): Add back prompt requesting to save unsaved changes (no-changelog) (#10190)
  fix(HTTP Request Node): Resolve max pages expression (#10192)
cstuncsik pushed a commit that referenced this pull request Jul 31, 2024
… not checkForSchemaChanges in update operation (#10201)
@github-actions github-actions bot mentioned this pull request Jul 31, 2024
@janober
Copy link
Member

janober commented Jul 31, 2024

Got released with n8n@1.53.0

cstuncsik pushed a commit that referenced this pull request Aug 1, 2024
… not checkForSchemaChanges in update operation (#10201)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/issue Issue with a node Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants