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: Improve executions list polling performance #6355

Merged
merged 6 commits into from
Jun 1, 2023

Conversation

alexgrozav
Copy link
Member

Description:
Because setInterval does not have the concept of async/await executions, I've implemented a custom async polling function that only runs the refresh functions 4 seconds after the previous load promise has finished executing.

@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.

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

@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Patch coverage: 41.42% and project coverage change: +0.02 🎉

Comparison is base (33e7ff8) 28.30% compared to head (dbd01a7) 28.32%.

❗ Current head dbd01a7 differs from pull request most recent head 3edd7ab. Consider uploading reports for the commit 3edd7ab to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6355      +/-   ##
==========================================
+ Coverage   28.30%   28.32%   +0.02%     
==========================================
  Files        2982     2982              
  Lines      185106   185123      +17     
  Branches    20294    20297       +3     
==========================================
+ Hits        52396    52443      +47     
+ Misses     131925   131895      -30     
  Partials      785      785              
Impacted Files Coverage Δ
...i/src/components/ExecutionsView/ExecutionsList.vue 13.52% <7.31%> (-0.46%) ⬇️
...ckages/editor-ui/src/components/ExecutionsList.vue 71.58% <86.95%> (+2.97%) ⬆️
...rc/components/ExecutionsView/ExecutionsSidebar.vue 70.03% <100.00%> (+8.10%) ⬆️

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

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jun 1, 2023
cstuncsik
cstuncsik previously approved these changes Jun 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

✅ All Cypress E2E specs passed

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

✅ All Cypress E2E specs passed

@alexgrozav alexgrozav merged commit b5cabfe into master Jun 1, 2023
@alexgrozav alexgrozav deleted the pay-440-improvements-to-execution-list-2 branch June 1, 2023 13:59
MiloradFilipovic added a commit that referenced this pull request Jun 2, 2023
* master:
  fix(editor): Fix an issue with connections breaking during renaming (#6358)
  fix(core): Upgrade @n8n_io/riot-tmpl (no-changelog) (#6357)
  fix: Show actual execution data for production executions even if pin data exists (#6302)
  fix: Improve executions list polling performance (#6355)
  refactor: Revert 30k stars banner (no-changelog) (#6347)
  refactor: Add deprecation notice for basic auth and JWT auth (#6349)
  fix: Prevent redirect when outside of executions home (no-changelog) (#6305)
@janober
Copy link
Member

janober commented Jun 14, 2023

Got released with n8n@0.232.0

netroy pushed a commit that referenced this pull request Jun 14, 2023
* refactor: move auto-refresh logic to executions list

* fix: improve auto-refresh polling

* fix: update executions list view to use same interval mechanism as executions sidebar

* chore: fix linting issue

* fix: fix executions list test

* fix: fix linting issue
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