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

feat(editor): Workflow history [WIP]- Add restore and clone into new workflow actions (no-changelog) #7359

Merged

Conversation

cstuncsik
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 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.

…-and-clone-into-new-workflow-actions

# Conflicts:
#	packages/editor-ui/src/stores/workflowHistory.store.ts
@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Oct 5, 2023
@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Attention: 241 lines in your changes are missing coverage. Please review.

Comparison is base (3fa2764) 33.48% compared to head (8f965c3) 33.46%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7359      +/-   ##
==========================================
- Coverage   33.48%   33.46%   -0.03%     
==========================================
  Files        3388     3389       +1     
  Lines      206340   206596     +256     
  Branches    22283    22284       +1     
==========================================
+ Hits        69092    69128      +36     
- Misses     136129   136349     +220     
  Partials     1119     1119              
Files Coverage Δ
...components/WorkflowHistory/WorkflowHistoryList.vue 96.41% <100.00%> (+0.11%) ⬆️
packages/editor-ui/src/constants.ts 99.68% <100.00%> (+<0.01%) ⬆️
packages/editor-ui/src/stores/ui.store.ts 59.15% <100.00%> (+0.26%) ⬆️
...onents/WorkflowHistory/WorkflowHistoryListItem.vue 97.84% <92.30%> (+0.09%) ⬆️
packages/editor-ui/src/components/Modals.vue 0.00% <0.00%> (ø)
...ages/editor-ui/src/stores/workflowHistory.store.ts 42.72% <26.56%> (-24.62%) ⬇️
packages/editor-ui/src/views/WorkflowHistory.vue 66.66% <14.42%> (-15.90%) ⬇️
...flowHistory/WorkflowHistoryVersionRestoreModal.vue 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

krynble
krynble previously approved these changes Oct 9, 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.

Tested and it's working fine - just to make sure, testing more thoroughly is coming in the next PR right?

@cypress
Copy link

cypress bot commented Oct 9, 2023

Passing run #2434 ↗︎

0 250 0 0 Flakiness 0

Details:

🌳 pay-870-add-restore-and-clone-into-new-workflow-actions 🖥️ browsers:node18.1...
Project: n8n Commit: 8f965c30dc
Status: Passed Duration: 08:29 💡
Started: Oct 9, 2023 11:40 AM Ended: Oct 9, 2023 11:48 AM

Review all test suite changes for PR #7359 ↗︎

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2023

✅ All Cypress E2E specs passed

Copy link
Contributor

@ivov ivov left a comment

Choose a reason for hiding this comment

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

  1. Cloning does not offer a link to go to the new workflow in the toast? Or inform the name of the new workflow in the modal? I feel we are leaving the user to "go find it" rather than making it easy for them to locate it.
  2. Cloning twice doesn't work? Getting There is already an entry with this name
  3. Restoring a workflow to the latest version shouldn't work? I'd expect The workflow is already at the latest version
  4. Restoring does not display the new topmost version? The topmost version remains the same until refreshing.
  5. A workflow saved only once shows no versions instead of one version?
  6. Saving an activated workflow fails to reflect the new version on the column?
  7. Any answer about these?

packages/editor-ui/src/stores/workflowHistory.store.ts Outdated Show resolved Hide resolved
packages/editor-ui/src/stores/workflowHistory.store.ts Outdated Show resolved Hide resolved
@cstuncsik
Copy link
Contributor Author

  1. Cloning does not offer a link to go to the new workflow in the toast? Or inform the name of the new workflow in the modal? I feel we are leaving the user to "go find it" rather than making it easy for them to locate it.
  2. Cloning twice doesn't work? Getting There is already an entry with this name
  3. Restoring a workflow to the latest version shouldn't work? I'd expect The workflow is already at the latest version
  4. Restoring does not display the new topmost version? The topmost version remains the same until refreshing.
  5. A workflow saved only once shows no versions instead of one version?
  6. Saving an activated workflow fails to reflect the new version on the column?
  7. Any answer about these?

These should be addressed in another PR, forwarded them to UI/UX

@cstuncsik cstuncsik requested review from krynble and ivov October 9, 2023 11:18
@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2023

✅ All Cypress E2E specs passed

@cstuncsik cstuncsik merged commit b3247e5 into master Oct 9, 2023
61 checks passed
@cstuncsik cstuncsik deleted the pay-870-add-restore-and-clone-into-new-workflow-actions branch October 9, 2023 11:50
MiloradFilipovic added a commit that referenced this pull request Oct 10, 2023
* master: (42 commits)
  fix(editor): Make workflow history button available only for dev builds (#7392)
  refactor: Upgrade to pnpm 8.9 (no-changelog) (#7393)
  ci: Identify NPM releases as `stable` (no-changelog)
  fix(editor): Implement canvas zoom UX improvements (#7376)
  feat(core): Switch binary filesystem mode to nested path structure (#7307)
  fix(editor): Fix completions for `.json` on quoted node name in Code node (#7382)
  fix(Notion Node): Handle empty values correctly for Notion selects + multi selects (#7383)
  feat(editor): Make PDF and Audio binary-data viewable in the UI (#7367)
  fix(Google Sheets Node): Fix "Maximum call stack size exceeded" error on too many rows (#7384)
  refactor(core): Refactor nodes loading (no-changelog) (#7283)
  fix(core): Add an option to enable postgres ssl with default certs (#6889)
  feat(editor): Workflow history [WIP]- Add restore and clone into new workflow actions (no-changelog) (#7359)
  fix(HTML Node): Update property fields to not use expressions on drag (#7379)
  fix: Add role check for upgrade path (#7374)
  fix(editor): Remove excess margin below run data editor (#7372)
  fix(Google Drive Trigger Node): Add Shared Drives support (#7369)
  feat(core): Add Job Summary to Worker response (#7360)
  feat(Execute Workflow Node): Run once for each item mode (#7289)
  refactor(core): Move `copyInputItems` to node helpers (no-changelog) (#7299)
  refactor(core): Create controller for binary data (no-changelog) (#7363)
  ...

# Conflicts:
#	cypress/e2e/5-ndv.cy.ts
@janober
Copy link
Member

janober commented Oct 11, 2023

Got released with n8n@1.11.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.

4 participants