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(editor): Remove explicit parameter name scanning for code editors #6390

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

netroy
Copy link
Member

@netroy netroy commented Jun 6, 2023

The correct value to display in an editor is already passed in to ParameterInput. We do not need to scan for the correct parameter name again. This also fixes the issue of us accidentally using jsCode as the parameter name in the Code node when the language is set to Python.

NODE-558
https://community.n8n.io/t/python-code-is-not-saved-once-the-configuration-dialog-is-dismissed/26586
https://community.n8n.io/t/python-support-and-release-versions/26291/6?u=jan

The correct value to display in an editor is already passed in to `ParameterInput`. We do not need to scan for the correct parameter name again.
This also fixes the issue of us accidentally using `jsCode` as the parameter name in the Code node when the language is set to Python.
@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 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 **/*.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.

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

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jun 6, 2023
@codecov
Copy link

codecov bot commented Jun 6, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.09 ⚠️

Comparison is base (dba3f44) 28.33% compared to head (3282163) 28.25%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6390      +/-   ##
==========================================
- Coverage   28.33%   28.25%   -0.09%     
==========================================
  Files        2980     2980              
  Lines      184930   184913      -17     
  Branches    20306    20300       -6     
==========================================
- Hits        52406    52248     -158     
- Misses     131738   131879     +141     
  Partials      786      786              
Impacted Files Coverage Δ
...ckages/editor-ui/src/components/ParameterInput.vue 58.57% <100.00%> (+0.66%) ⬆️

... and 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

Nice job! Looks good to me.

@cypress
Copy link

cypress bot commented Jun 6, 2023

1 flaky tests on run #1116 ↗︎

0 227 0 0 Flakiness 1

Details:

🌳 NODE-558-fix-code-node-editor-resets 🖥️ browsers:node18.12.0-chrome107 🤖 ne...
Project: n8n Commit: 32821633ce
Status: Passed Duration: 07:09 💡
Started: Jun 6, 2023 11:28 AM Ended: Jun 6, 2023 11:35 AM
Flakiness  cypress/e2e/13-pinning.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Data pinning > Should be able to set pinned data Output Screenshots Video

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

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

✅ All Cypress E2E specs passed

@netroy netroy merged commit 97295f6 into master Jun 6, 2023
@netroy netroy deleted the NODE-558-fix-code-node-editor-resets branch June 6, 2023 12:01
MiloradFilipovic added a commit that referenced this pull request Jun 13, 2023
* master:
  test(editor): Unit test Version control frontend components (#6408)
  fix: Fist name to First Name in certain nodes (no-changelog) (#6404)
  fix(core): Allow all executions to be stopped (#6386)
  fix(core): RMC boolean value fix (#6397)
  fix(editor): Remove root level tag selector from css module to avoid making it a global style (#6392)
  fix(Ldap Node): Add DN field to update operation (#6371)
  feat: New trigger PostgreSQL  (#5495)
  build: Update pnpm lock file (no-changelog) (#6395)
  fix(Date & Time Node): Reset responseData at end of loop (#6385)
  refactor(core): Google service account remove duplicated functions (no-changelog) (#6368)
  refactor(LoneScale List Node)!: Rename to LoneScale (#6337)
  fix(editor): Update version control setup CTA tooltip (#6393)
  ci: Fix build (no-changelog) (#6391)
  fix(editor): Add button to refresh branches (#6387)
  fix(editor): Add Set up version control CTA (#6356)
  fix(editor): Remove explicit parameter name scanning for code editors (#6390)
  ci: Fix build (no-changelog) (#6379)
  fix(editor): Adding branch color (#6380)
  refactor(editor): Remove user activation modal (no-changelog) (#6361)
  feat(editor): Change upgrade CTA on community editions (no-changelog) (#6317)
@janober
Copy link
Member

janober commented Jun 14, 2023

Got released with [email protected]

netroy added a commit that referenced this pull request Jun 14, 2023
…#6390)

The correct value to display in an editor is already passed in to `ParameterInput`. We do not need to scan for the correct parameter name again.
This also fixes the issue of us accidentally using `jsCode` as the parameter name in the Code node when the language is set to Python.
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 Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants