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): Fix typing $ in inline expression field reloading node parameters form #6374

Merged
merged 2 commits into from
Jun 3, 2023

Conversation

MiloradFilipovic
Copy link
Contributor

@MiloradFilipovic MiloradFilipovic commented Jun 3, 2023

In #6101 we implemented dependent parameters support for the Resource Locator Component which reloaded RLC if any of the node parameters it depends on is updated. However, this solution was causing a reload every time watch is triggered without checking if the value actually changed.

This PR fixes that and few other minor things:

  • Typo in ParameterInput: void --> await,
  • Missing import and wrong parameter type in ParameterInputList
  • Making some props in ResourceMapper component optional

@MiloradFilipovic MiloradFilipovic self-assigned this Jun 3, 2023
@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jun 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 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.

@codecov
Copy link

codecov bot commented Jun 3, 2023

Codecov Report

Patch coverage: 50.00% and project coverage change: -0.07 ⚠️

Comparison is base (f61b776) 28.32% compared to head (260d5df) 28.26%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6374      +/-   ##
==========================================
- Coverage   28.32%   28.26%   -0.07%     
==========================================
  Files        2982     2982              
  Lines      185204   185215      +11     
  Branches    20304    20303       -1     
==========================================
- Hits        52465    52344     -121     
- Misses     131952   132084     +132     
  Partials      787      787              
Impacted Files Coverage Δ
...ckages/editor-ui/src/components/ParameterInput.vue 57.90% <0.00%> (+0.37%) ⬆️
...src/components/ResourceLocator/ResourceLocator.vue 43.29% <0.00%> (-0.31%) ⬇️
...es/editor-ui/src/components/ParameterInputList.vue 49.23% <85.71%> (+0.48%) ⬆️
...ui/src/components/ResourceMapper/MappingFields.vue 89.03% <100.00%> (ø)
...i/src/components/ResourceMapper/ResourceMapper.vue 67.20% <100.00%> (ø)

... and 5 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.

michael-radency
michael-radency previously approved these changes Jun 3, 2023
Copy link
Contributor

@michael-radency michael-radency left a comment

Choose a reason for hiding this comment

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

LGTM, fixes issue

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2023

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

@cypress
Copy link

cypress bot commented Jun 3, 2023

1 flaky tests on run #1092 ↗︎

0 228 0 0 Flakiness 1

Details:

🌳 NODE-567-node-reference-in-expression-fix 🖥️ browsers:node18.12.0-chrome107 ...
Project: n8n Commit: 260d5df951
Status: Passed Duration: 08:01 💡
Started: Jun 3, 2023 2:46 PM Ended: Jun 3, 2023 2:54 PM
Flakiness  cypress/e2e/1-workflows.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Workflows > should delete all the workflows 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 3, 2023

✅ All Cypress E2E specs passed

@MiloradFilipovic MiloradFilipovic merged commit 4c0d4eb into master Jun 3, 2023
23 of 24 checks passed
@MiloradFilipovic MiloradFilipovic deleted the NODE-567-node-reference-in-expression-fix branch June 3, 2023 15:58
krynble pushed a commit that referenced this pull request Jun 5, 2023
… parameters form (#6374)

* fix(editor): Fix typing `$` in inline expression field reloading node parameters form
* ⚡ Setting resource mapper empty field values to empty strings
MiloradFilipovic added a commit that referenced this pull request Jun 5, 2023
* master:
  fix(editor): Handle null object on saving user settings (no-changelog) (#6341)
  docs: Fix trigger node link for Lonescale (#6376)
  ci: Improve Test-worklows messages (#6290)
  refactor: Upgrade to TypeScript 5.1 (no-changelog) (#6373)
  fix(editor): Fix typing `$` in inline expression field reloading node parameters form (#6374)
  🚀 Release 0.231.0 (#6344)

# Conflicts:
#	pnpm-lock.yaml
krynble pushed a commit that referenced this pull request Jun 6, 2023
… parameters form (#6374)

* fix(editor): Fix typing `$` in inline expression field reloading node parameters form
* ⚡ Setting resource mapper empty field values to empty strings
@janober
Copy link
Member

janober commented Jun 14, 2023

Got released with n8n@0.232.0

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.

None yet

3 participants