n8n/packages/cli/test/unit
Iván Ovejero e4f041815a
perf(core): Cache roles (#6803)
* refactor: Create `RoleService`

* refactor: Refactor to use service

* refactor: Move `getUserRoleForWorkflow`

* refactor: Clear out old `RoleService`

* refactor: Consolidate utils into service

* refactor: Remove unused methods

* test: Add tests

* refactor: Remove redundant return types

* refactor: Missing utility

* chore: Remove commented out bit

* refactor: Make `Db.collections.Repository` inaccessible

* chore: Cleanup

* feat: Prepopulate cache

* chore: Remove logging

* fix: Account for tests where roles are undefined

* fix: Restore `prettier.prettierPath`

* test: Account for cache enabled and disabled

* fix: Restore `Role` in `Db.collections`

* refactor: Simplify by removing `orFail`

* refactor: Rename for clarity

* refactor: Use `cacheKey` for readability

* refactor: Validate role before creation

* refacator: Remove redundant `cache` prefix

* ci: Lint fix

* test: Fix e2e
2023-08-03 08:58:36 +02:00
..
controllers refactor: Remove pre-setup prompt on owner setup (#6495) 2023-06-22 21:11:38 +02:00
repositories perf(core): Cache roles (#6803) 2023-08-03 08:58:36 +02:00
services perf(core): Cache roles (#6803) 2023-08-03 08:58:36 +02:00
shared refactor(core): Improve instance owner setup and add unit tests (no-changelog) (#5499) 2023-02-17 10:59:09 +01:00
ActiveExecutions.test.ts refactor(core): Reduce boilterplate code in between tests 🧹, and fix the tests in node.js 20 (no-changelog) (#6654) 2023-07-13 10:14:48 +02:00
ActiveWorkflowRunner.test.ts fix(core): Change VariablesService to DI and use caching (#6827) 2023-08-02 14:51:09 +02:00
CommunityNodeHelpers.test.ts refactor(core): Reduce boilterplate code in between tests 🧹, and fix the tests in node.js 20 (no-changelog) (#6654) 2023-07-13 10:14:48 +02:00
CredentialsHelper.test.ts ci: Expand ESLint to tests in BE packages (no-changelog) (#6147) 2023-05-02 10:37:19 +02:00
CredentialTypes.test.ts refactor(core): Use an IoC container to manage singleton classes [Part-1] (no-changelog) (#5509) 2023-02-21 19:21:56 +01:00
CurlConverterHelper.test.ts ci: Expand ESLint to tests in BE packages (no-changelog) (#6147) 2023-05-02 10:37:19 +02:00
Helpers.ts ci: Expand ESLint to tests in BE packages (no-changelog) (#6147) 2023-05-02 10:37:19 +02:00
License.test.ts feat(API): Implement users account quota guards (#6434) 2023-07-12 14:11:46 +02:00
PermissionChecker.test.ts refactor(core): Cache workflow ownership (#6738) 2023-07-31 11:37:09 +02:00
PostHog.test.ts feat(core): Remove all floating promises. Enforce @typescript-eslint/no-floating-promises (#6281) 2023-05-24 02:01:45 +02:00
SourceControl.test.ts feat: Environments release using source control (#6653) 2023-07-26 09:25:01 +02:00
Telemetry.test.ts fix(core): Do not track errored workflow executions for automated executions (no-changelog) (#6322) 2023-05-28 12:08:46 +02:00
utils.test.ts fix(core): Better error message in Webhook node when using the POST method 2023-05-02 17:27:05 +03:00
webhooks.test.ts refactor(core): Parse Webhook request bodies on-demand (#6394) 2023-08-01 17:32:30 +02:00
WorkflowCredentials.test.ts feat(core): Remove all floating promises. Enforce @typescript-eslint/no-floating-promises (#6281) 2023-05-24 02:01:45 +02:00
WorkflowExecuteAdditionalData.test.ts refactor: Async functions don't need to explicitly return promises (no-changelog) (#6041) 2023-04-24 13:17:08 +02:00
WorkflowHelpers.test.ts ci: Expand ESLint to tests in BE packages (no-changelog) (#6147) 2023-05-02 10:37:19 +02:00