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(core): Change VariablesService to DI and use caching #6827

Merged
merged 36 commits into from
Aug 2, 2023

Conversation

flipswitchingmonkey
Copy link
Contributor

No description provided.

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Aug 1, 2023
@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Patch coverage: 84.74% and no project coverage change.

Comparison is base (3cad60e) 24.76% compared to head (ae8fa2b) 24.76%.
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6827   +/-   ##
=======================================
  Coverage   24.76%   24.76%           
=======================================
  Files        3131     3131           
  Lines      190781   190809   +28     
  Branches    21011    21012    +1     
=======================================
+ Hits        47239    47261   +22     
- Misses     142588   142592    +4     
- Partials      954      956    +2     
Files Changed Coverage Δ
...ts/sourceControl/sourceControlImport.service.ee.ts 8.94% <50.00%> (+0.71%) ⬆️
packages/cli/src/WorkflowHelpers.ts 48.90% <66.66%> (+0.56%) ⬆️
...ts/sourceControl/sourceControlExport.service.ee.ts 16.36% <66.66%> (+0.76%) ⬆️
...li/src/environments/variables/variables.service.ts 89.65% <89.28%> (+9.65%) ⬆️
.../environments/variables/variables.controller.ee.ts 90.24% <100.00%> (+0.24%) ⬆️
...src/environments/variables/variables.controller.ts 87.17% <100.00%> (+0.33%) ⬆️
...src/environments/variables/variables.service.ee.ts 96.42% <100.00%> (ø)

... and 4 files with indirect coverage changes

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

valya
valya previously requested changes Aug 1, 2023
Copy link
Contributor

@valya valya left a comment

Choose a reason for hiding this comment

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

Other than the one issue it looks good to me.

packages/cli/test/integration/shared/testDb.ts Outdated Show resolved Hide resolved
Base automatically changed from pay-639-make-redis-client-into-a-service-for-injection to master August 2, 2023 10:51
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 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 previously approved these changes Aug 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

⚠️ Some Cypress E2E specs are failing, please fix them before merging

@cypress
Copy link

cypress bot commented Aug 2, 2023

1 flaky tests on run #1753 ↗︎

0 221 0 0 Flakiness 1

Details:

🌳 pay-644-variables-loading-might-be-slow 🖥️ browsers:node18.12.0-chrome107 🤖...
Project: n8n Commit: ae8fa2b2fc
Status: Passed Duration: 07:57 💡
Started: Aug 2, 2023 12:39 PM Ended: Aug 2, 2023 12:47 PM
Flakiness  cypress/e2e/11-inline-expression-editor.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Inline expression editor > should resolve $parameter[] Output Screenshots Video

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 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.

Approving but ideally let's fix the test in a followup 🙏🏻

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.

ActiveWorkflowRunner tests are also failing

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 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.

Approving but let's wait for the tests!

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

✅ All Cypress E2E specs passed

@flipswitchingmonkey flipswitchingmonkey merged commit 659ca26 into master Aug 2, 2023
48 of 49 checks passed
@flipswitchingmonkey flipswitchingmonkey deleted the pay-644-variables-loading-might-be-slow branch August 2, 2023 12:51
@github-actions github-actions bot mentioned this pull request Aug 9, 2023
@janober
Copy link
Member

janober commented Aug 9, 2023

Got released with n8n@1.2.1

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants