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(core): Stringify all Luxon DateTimes in cleanupParameterData #8959

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Mar 22, 2024

Summary

After #8910, cleanupParameterData doesn't stringify all DateTime objects.

image

The bug in this Linear ticket is caused by the DateTime object not being converted to a string, and later on in the Set node being JSON.stringify-ed (causing it to be surrounded with "")

Related tickets and issues

https://linear.app/n8n/issue/N8N-7278/datetimes-are-given-extra-when-stringified

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

@elsmr elsmr changed the title fix(core): Stringify all Luxon DateTimes in getNodeParameter fix(core): Stringify all Luxon DateTimes in cleanupParameterData Mar 22, 2024
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Mar 22, 2024
Copy link

cypress bot commented Mar 25, 2024

1 flaky test on run #4451 ↗︎

0 343 12 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Project: n8n Commit: 540f18436e
Status: Passed Duration: 03:41 💡
Started: Mar 25, 2024 8:32 AM Ended: Mar 25, 2024 8:36 AM
Flakiness  cypress/e2e/5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Test Replay Screenshots Video

Review all test suite changes for PR #8959 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@krynble krynble merged commit 1fb0dd4 into master Mar 25, 2024
29 checks passed
@krynble krynble deleted the n8n-7278-datetimes-are-given-extra-when-stringified branch March 25, 2024 08:44
@github-actions github-actions bot mentioned this pull request Mar 25, 2024
@janober
Copy link
Member

janober commented Mar 25, 2024

Got released with n8n@1.34.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants