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 infinite loading in not found workflow level execution #5174

Merged
merged 3 commits into from
Jan 23, 2023

Conversation

cstuncsik
Copy link
Contributor

@cstuncsik cstuncsik commented Jan 16, 2023

No description provided.

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jan 16, 2023
@cstuncsik cstuncsik marked this pull request as ready for review January 23, 2023 10:40
@cstuncsik cstuncsik changed the title fix(editor): Getting rid of infinite loading in workflow level execut… fix(editor): Remove infinite loading in not found workflow level execution Jan 23, 2023
Copy link
Contributor

@krynble krynble left a comment

Choose a reason for hiding this comment

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

LGTM; left a comment with a minor nitpic

const executions: IExecutionsSummary[] =
await this.workflowsStore.loadCurrentWorkflowExecutions(this.filter);
return executions;
return await this.workflowsStore.loadCurrentWorkflowExecutions(this.filter);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return await this.workflowsStore.loadCurrentWorkflowExecutions(this.filter);
return this.workflowsStore.loadCurrentWorkflowExecutions(this.filter);

I think the await statement is not needed here since we return a promise anyway, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Depending on the use case, here return await is desired I think (usually that's the case inside a try-catch block).

https://jakearchibald.com/2017/await-vs-return-vs-return-await/

@cstuncsik cstuncsik merged commit 96dddf1 into master Jan 23, 2023
@cstuncsik cstuncsik deleted the pay-56-bug-if-i-try-to-access-execution-dont branch January 23, 2023 13:29
@n8n-assistant n8n-assistant bot added the Upcoming Release Will be part of the upcoming release label Jan 23, 2023
@janober
Copy link
Member

janober commented Jan 23, 2023

Got released with n8n@0.212.1

@janober janober removed the Upcoming Release Will be part of the upcoming release label Jan 23, 2023
MiloradFilipovic added a commit that referenced this pull request Jan 24, 2023
* master:
  📚 Update CHANGELOG.md and main package.json to 0.212.1
  🔖 Release n8n@0.212.1
  ⬆️ Set n8n-core@0.151.2, n8n-editor-ui@0.178.1, n8n-nodes-base@0.210.1 and n8n-workflow@0.133.2 on n8n
  🔖 Release n8n-editor-ui@0.178.1
  ⬆️ Set n8n-workflow@0.133.2 on n8n-editor-ui
  🔖 Release n8n-nodes-base@0.210.1
  ⬆️ Set n8n-core@0.151.2 and n8n-workflow@0.133.2 on n8n-nodes-base
  🔖 Release n8n-node-dev@0.90.2
  ⬆️ Set n8n-core@0.151.2 and n8n-workflow@0.133.2 on n8n-node-dev
  🔖 Release n8n-core@0.151.2
  ⬆️ Set n8n-workflow@0.133.2 on n8n-core
  🔖 Release n8n-workflow@0.133.2
  ci: Fix typing issues in cli tests (no-changelog) (#5227)
  fix(editor): Remove infinite loading in not found workflow level execution (#5174)
  fix: IsWeekend not checking if DateTime (#5221) (no-changelog)
  fix(core): Fix execute-once incoming data handling (#5211)
  fix(core): Make pindata with webhook responding on last node manual-only (#5223)
  fix(core): Fix onWorkflowPostExecute not being called (#5224)
  fix(core): Fix expression extension misdetection (#5219)
  fix: Add schema to postgres migrations (hotfix) (#5218)
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 ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants