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

feat(Set Node): Overhaul #6348

Merged
merged 94 commits into from
Sep 19, 2023
Merged

feat(Set Node): Overhaul #6348

merged 94 commits into from
Sep 19, 2023

Conversation

michael-radency
Copy link
Contributor

@michael-radency michael-radency commented Jun 1, 2023

Github issue / Community forum post (link here to close automatically): #6348

@michael-radency michael-radency added node/improvement New feature or request n8n team Authored by the n8n team labels Jun 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

Great PR! Please pay attention to the following items before merging:

Files matching packages/**:

  • If fixing bug, added test to cover scenario.
  • If addressing forum or Github issue, added link to description.

Files matching packages/**/*.ts:

  • Added unit tests to cover new or updated functionality.

Files matching **/*.vue:

  • Used composition API for all new components.
  • Added component or unit tests to cover functionality.

Files matching packages/editor-ui/**/*.vue:

  • Added E2E if adding new features.
  • Used design system tokens (colors, spacings...) where possible.

Files matching packages/nodes-base/nodes/**:

  • Added workflow tests for nodes if possible.

Files matching cypress/e2e/**:

  • Avoided chaining commands more than two or three times (to avoid flakiness because only last one will be retried).
  • Spoofed endpoints that are not critical for the test (to avoid flakiness).
  • Picked most efficient path to start the test (for example skipped account setup and starting at /workflow/new for a canvas test).
  • Avoided adding waits on time (use request intercepts instead).
  • Ensured each spec does not depend on any another spec to pass.

Make sure to check off this list before asking for review.

@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Patch coverage: 62.89% and project coverage change: +0.03% 🎉

Comparison is base (cf776b8) 32.65% compared to head (e81b7fa) 32.69%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6348      +/-   ##
==========================================
+ Coverage   32.65%   32.69%   +0.03%     
==========================================
  Files        3340     3346       +6     
  Lines      199463   199748     +285     
  Branches    21850    21889      +39     
==========================================
+ Hits        65133    65298     +165     
- Misses     133250   133355     +105     
- Partials     1080     1095      +15     
Files Changed Coverage Δ
...es/editor-ui/src/components/ParameterInputList.vue 54.66% <0.00%> (-0.31%) ⬇️
...des/Code/descriptions/JavascriptCodeDescription.ts 100.00% <ø> (ø)
...e/nodes/Code/descriptions/PythonCodeDescription.ts 100.00% <ø> (ø)
packages/nodes-base/nodes/CrateDb/CrateDb.node.ts 0.00% <ø> (ø)
...uery/v2/actions/database/executeQuery.operation.ts 41.89% <ø> (ø)
...odes-base/nodes/Microsoft/Sql/MicrosoftSql.node.ts 0.00% <0.00%> (ø)
packages/nodes-base/nodes/MySql/v1/MySqlV1.node.ts 0.00% <ø> (ø)
...es/nodes-base/nodes/Postgres/v1/PostgresV1.node.ts 0.00% <ø> (ø)
...ges/nodes-base/nodes/Postgres/v2/actions/router.ts 0.00% <0.00%> (ø)
packages/nodes-base/nodes/QuestDb/QuestDb.node.ts 0.00% <ø> (ø)
... and 19 more

... and 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@luizeof
Copy link
Contributor

luizeof commented Jun 1, 2023

it would be nice to have an option to remove some fields

maspio
maspio previously approved these changes Sep 18, 2023
@github-actions
Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

@cypress
Copy link

cypress bot commented Sep 18, 2023

2 flaky tests on run #2210 ↗︎

0 234 3 0 Flakiness 2

Details:

🌳 node-559-set-node-overhaul 🖥️ browsers:node18.12.0-chrome107 🤖 michael-rade...
Project: n8n Commit: e81b7fa1e7
Status: Passed Duration: 08:14 💡
Started: Sep 19, 2023 10:07 AM Ended: Sep 19, 2023 10:16 AM
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Output Screenshots Video
Flakiness  28-debug.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Debug > should be able to debug executions Output Screenshots Video

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

Copy link
Contributor

@MiloradFilipovic MiloradFilipovic left a comment

Choose a reason for hiding this comment

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

Looking good, thanks for addressing previous comments, @michael-radency 🙌
There is one minor thing that I noticed but ultimately it's a product decision:
When Ignore type conversion is turned on, inline validation errors (warnings next to inputs) are still showing up which could look confusing to users:
image

@github-actions
Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

maspio
maspio previously approved these changes Sep 19, 2023
@github-actions
Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@michael-radency michael-radency merged commit 3a47455 into master Sep 19, 2023
18 checks passed
@michael-radency michael-radency deleted the node-559-set-node-overhaul branch September 19, 2023 10:16
@github-actions github-actions bot mentioned this pull request Sep 20, 2023
krynble added a commit that referenced this pull request Sep 20, 2023
# [1.8.0](https://github.com/n8n-io/n8n/compare/[email protected]@1.8.0)
(2023-09-20)


### Bug Fixes

* **core:** Make parsing of content-type and content-disposition headers
more flexible ([#7217](#7217))
([d41546b](d41546b)),
closes [#7149](#7149)
* **core:** Resolve domains to IPv4 first
([#7206](#7206))
([e9ce531](e9ce531))
* **editor:** Add ssh key type selection to source control settings when
regenerating key ([#7172](#7172))
([54bf66d](54bf66d))
* **editor:** No need to add click emitting click events, VUE delegates
the handler to the root element of the component
([#7182](#7182))
([3c055e4](3c055e4))
* **editor:** Prevent duplicate creation of credential for OAuth2
([#7163](#7163))
([07a6417](07a6417))
* **editor:** Testing flaky resource mapper feature in e2e tests
([#7165](#7165))
([aaf87c3](aaf87c3))
* **HTML Node:** Add pairedItem support for 'Convert to HTML Table'
operation ([#7196](#7196))
([6bc477b](6bc477b))
* **HTTP Request Node:** Decrease default timeout to 5min
([#7177](#7177))
([321780d](321780d))
* **seven Node:** Rename sms77 to seven, fix credentials test
([#7180](#7180))
([cf776b8](cf776b8))
* **X (Formerly Twitter) Node:** Rename Twitter to X (keep Twitter
alias) ([#7179](#7179))
([d317e09](d317e09))


### Features

* **core:** Add command to trigger license refresh on workers
([#7184](#7184))
([9f797b9](9f797b9))
* **core:** Add rsa option to ssh key generation
([#7154](#7154))
([fdac2c8](fdac2c8))
* **Linear Node:** Add support for OAuth2
([#7201](#7201))
([12a3168](12a3168))
* **Microsoft Outlook Node:** Node overhaul
([#4449](#4449))
([556a613](556a613))
* **Set Node:** Overhaul
([#6348](#6348))
([3a47455](3a47455))

Co-authored-by: krynble <[email protected]>
MiloradFilipovic added a commit that referenced this pull request Sep 20, 2023
* master:
  refactor(core): Implement soft-deletions for executions (#7092)
  docs(Google Sheets Node): Operations naming update (no-changelog) (#7211)
  fix(core): Make parsing of content-type and content-disposition headers more flexible (#7217)
  fix(HTML Node): Add pairedItem support for 'Convert to HTML Table' operation (#7196)
  fix(HTTP Request Node): Decrease default timeout to 5min (#7177)
  feat(Linear Node): Add support for OAuth2 (#7201)
  refactor: Ignore large-scale revisions (no-changelog) (#7210)
  fix(core): Resolve domains to IPv4 first (#7206)
  ci: Fix tests failing on MySQL (no-changelog) (#7208)
  feat(Set Node): Overhaul (#6348)
  fix: Attempt license renewal when n8n starts (no-changelog) (#7204)
@janober
Copy link
Member

janober commented Sep 21, 2023

Got released with [email protected]

@artemdzyuba
Copy link

In 1.8.2, this Set node messes with null and undefined values. See this thread.

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/improvement New feature or request Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants