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

refactor(core): Create controller for binary data (no-changelog) #7363

Merged
merged 8 commits into from Oct 6, 2023

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Oct 6, 2023

This PR adds a controller for binary data + integration tests.

@github-actions
Copy link
Contributor

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

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

@ivov ivov changed the title refactor: Create controller for binary data (no-changelog) refactor(core): Create controller for binary data (no-changelog) Oct 6, 2023
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Oct 6, 2023
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

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

Comparison is base (cd12a59) 33.43% compared to head (3a3f743) 33.44%.
Report is 8 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7363   +/-   ##
=======================================
  Coverage   33.43%   33.44%           
=======================================
  Files        3378     3379    +1     
  Lines      206089   206106   +17     
  Branches    22238    22243    +5     
=======================================
+ Hits        68897    68923   +26     
+ Misses     136074   136063   -11     
- Partials     1118     1120    +2     
Files Coverage Δ
packages/cli/src/ResponseHelper.ts 67.67% <100.00%> (+1.36%) ⬆️
packages/cli/src/Server.ts 0.00% <0.00%> (ø)
packages/core/src/BinaryData/utils.ts 73.33% <50.00%> (-3.59%) ⬇️
packages/core/src/index.ts 0.00% <0.00%> (ø)
packages/editor-ui/src/stores/workflows.store.ts 30.12% <0.00%> (ø)
packages/cli/src/license/license.controller.ts 77.58% <33.33%> (-2.42%) ⬇️
...kages/cli/src/controllers/binaryData.controller.ts 66.66% <66.66%> (ø)

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

Copy link
Member

@netroy netroy left a comment

Choose a reason for hiding this comment

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

Thanks for doing this 🙏🏽
Left some minor comments.

packages/cli/src/Server.ts Outdated Show resolved Hide resolved
packages/cli/src/controllers/binaryData.controller.ts Outdated Show resolved Hide resolved
packages/cli/src/Server.ts Outdated Show resolved Hide resolved
Copy link
Member

@netroy netroy left a comment

Choose a reason for hiding this comment

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

🙏🏽

@cypress
Copy link

cypress bot commented Oct 6, 2023

1 flaky test on run #2418 ↗︎

0 245 3 0 Flakiness 1

Details:

🌳 binary-data-controller 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Project: n8n Commit: 3a3f7431de
Status: Passed Duration: 09:20 💡
Started: Oct 6, 2023 2:11 PM Ended: Oct 6, 2023 2:20 PM
Flakiness  cypress/e2e/5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > can link and unlink run selectors between input and output Output Screenshots Video

Review all test suite changes for PR #7363 ↗︎

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2023

✅ All Cypress E2E specs passed

@ivov ivov merged commit 34bda53 into master Oct 6, 2023
54 of 55 checks passed
@ivov ivov deleted the binary-data-controller branch October 6, 2023 14:21
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
core Enhancement outside /nodes-base and /editor-ui 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