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 Luxon date parsing of ExecutionsUsage component #6333

Merged
merged 2 commits into from May 29, 2023

Conversation

OlegIvaniv
Copy link
Contributor

We have identified an issue where users, under certain circumstances, were presented with a {n} day left. | {n} days left. fallback locale. This problem originated from the incorrect parsing of the daysLeftOnTrial computation in the ExecutionsUsage component. Specifically, the error surfaced only on canvas when a node contained a subtitle.

The root cause of this problem was traced back to an improper call to getSimpleParameterValue in nodeHelpers.ts. Here, PLACEHOLDER_FILLED_AT_EXECUTION_TIME was inaccurately passed as the fourth argument, which should have been the timezone instead.

Subsequently, this timezone argument was incorrectly utilized to establish the global Luxon Settings.defaultZone within the WorkflowDataProxy constructor. This action resulted in an error, as PLACEHOLDER_FILLED_AT_EXECUTION_TIME is not a recognized timezone.

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

@github-actions
Copy link
Contributor

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/editor-ui/src/mixins/**:

  • Avoided adding new mixins (use composables instead). Only removed code from here.

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 May 29, 2023
@codecov
Copy link

codecov bot commented May 29, 2023

Codecov Report

Patch coverage: 25.00% and no project coverage change.

Comparison is base (0e4c615) 27.67% compared to head (5365056) 27.67%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6333   +/-   ##
=======================================
  Coverage   27.67%   27.67%           
=======================================
  Files        2958     2958           
  Lines      181374   181379    +5     
  Branches    19727    19726    -1     
=======================================
+ Hits        50189    50191    +2     
- Misses     130438   130441    +3     
  Partials      747      747           
Impacted Files Coverage Δ
packages/editor-ui/src/App.vue 0.00% <0.00%> (ø)
packages/editor-ui/src/stores/cloudPlan.store.ts 20.48% <0.00%> (ø)
packages/editor-ui/src/mixins/nodeHelpers.ts 26.36% <40.00%> (+0.11%) ⬆️

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

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@OlegIvaniv OlegIvaniv merged commit 8f0ff46 into master May 29, 2023
24 checks passed
@OlegIvaniv OlegIvaniv deleted the ado-688-implement-local-instance-mocking branch May 29, 2023 11:29
maspio pushed a commit that referenced this pull request May 30, 2023
* fix(editor): Fix luxon date parsing of ExecutionsUsage component

* Fix wrong indent
@janober
Copy link
Member

janober commented May 31, 2023

Got released with n8n@0.230.2

MiloradFilipovic added a commit that referenced this pull request Jun 1, 2023
* master: (54 commits)
  feat: Version control mvp (#6271)
  feat(editor): Implement Resource Mapper component (#6207)
  fix(editor): Update SSO settings styles (#6342)
  fix: Show `Ask AI` only on Code Node (#6336)
  feat(core): Add metadata (customdata) to event log (#6334)
  refactor: Add telemetry to upgrade paths (no-changelog) (#6313)
  fix(Code Node): Fix `item` and `items` alias regression (#6331)
  feat: Add manual login option and password reset link for SSO (#6328)
  fix(editor): Fix Luxon date parsing of ExecutionsUsage component (#6333)
  fix(core): Do not track errored workflow executions for automated executions (no-changelog) (#6322)
  fix(core): Prevent prototype pollution on injectable services (#6309)
  fix(core): Optimize getSharedWorkflowIds query (#6314)
  ci: Reset DB only once per e2e test (no-changelog) (#6216)
  feat(editor): Bring back checklist experiment (no-changelog) (#6307)
  fix: Add ldapts to nodes-base package (no-changelog) (#6315)
  fix(Code Node): Update vm2 to address CVE-2023-32313 (#6318)
  feat: Add tab visibility change detection when polling executions (no-changelog) (#6311)
  fix(editor): Fix locale plularisation if count is 0 (#6312)
  🚀 Release 0.230.0 (#6310)
  fix(Execute Command Node): Block executions when `command` is empty (#6308)
  ...
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