n8n/packages
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
..
@n8n/client-oauth2 refactor: Consolidate tsconfig and eslintrc files (no-changelog) (#6816) 2023-08-01 17:32:43 +02:00
@n8n_io/eslint-config ci: Update most of the dev tooling (no-changelog) (#6780) 2023-07-28 13:55:16 +02:00
cli perf(core): Cache roles (#6803) 2023-08-03 08:58:36 +02:00
core refactor: Consolidate tsconfig and eslintrc files (no-changelog) (#6816) 2023-08-01 17:32:43 +02:00
design-system fix: Fix horizontal overflow for dialogs (#6830) 2023-08-02 14:45:58 +02:00
editor-ui fix: Fix double hiring banner logging (no-changelog) (#6829) 2023-08-02 14:37:49 +03:00
node-dev refactor: Consolidate tsconfig and eslintrc files (no-changelog) (#6816) 2023-08-01 17:32:43 +02:00
nodes-base fix(Code Node): Consistent redirection of stdout for JS and Python sandboxes (#6818) 2023-08-01 17:47:43 +02:00
workflow fix: Fix replacing node empty string value with default value (no-changelog) (#6832) 2023-08-02 14:19:01 +03:00