-
Notifications
You must be signed in to change notification settings - Fork 52.6k
chore(editor): Update format for showing execution time #16099
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic found 1 issue across 4 files. Review it in cubic.dev
React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai to give specific feedback.
| const nodeType = activeNodeType ? this.shortNodeType(activeNodeType) : ''; // unused in eventTriggerDescription | ||
| const initialKey = `n8n-nodes-base.nodes.${nodeType}.nodeView`; | ||
| const shortNodeType = activeNodeType ? this.shortNodeType(activeNodeType) : ''; // unused in eventTriggerDescription | ||
| const initialKey = `n8n-nodes-base.nodes.${shortNodeType}.nodeView`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just fixing shadowed variable name
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
| expect(new I18nClass().displayTimer(1120, true)).toBe('1.12s'); | ||
| expect(new I18nClass().displayTimer(1234, true)).toBe('1.234s'); | ||
| expect(new I18nClass().displayTimer(600000, true)).toBe('10m 0s'); | ||
| expect(new I18nClass().displayTimer(601234, true)).toBe('10m 1.234s'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not we handle ms separately here and follow the general pattern? As in 1s 1ms instead of 1.001s?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha. Might be worth discussing with David where this should show fully or partial?
|
✅ All Cypress E2E specs passed |
|
Got released with |

Summary
This PR updates the format used for showing execution time in editor UI to make it more commonly used one
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/SUG-71/feature-adjust-time-formatting-to-xh-xm-xs-in-the-log-view
Review / Merge checklist
release/backport(if the PR is an urgent fix that needs to be backported)