n8n/packages/cli/test/unit
Iván Ovejero dceff675ec
perf(core): Add filtering and pagination to GET /workflows (#6845)
* Initial setup

* Specify max paginated items

* Simplify

* Add tests

* Add more tests

* Add migrations

* Add top-level property

* Add field selection

* Cleanup

* Rename `total` to `count`

* More cleanup

* Move query logic into `WorkflowRepository`

* Create `AbstractRepository`

* Cleanup

* Fix name

* Remove leftover comments

* Replace reference

* Add default for `rawSkip`

* Remove unneeded typing

* Switch to `class-validator`

* Simplify

* Simplify

* Type as optional

* Make typing more accurate

* Fix lint

* Use `getOwnPropertyNames`

* Use DSL

* Set schema at repo level

* Cleanup

* Remove comment

* Refactor repository methods to middleware

* Add middleware tests

* Remove old test files

* Remove generic experiment

* Reuse `reportError`

* Remove unused type

* Cleanup

* Improve wording

* Reduce diff

* Add missing mw

* Use `Container.get`

* Adjust lint rule

* Reorganize into subdir

* Remove unused directive

* Remove nodes

* Silly mistake

* Validate take

* refactor(core): Adjust index handling in new migrations DSL (no-changelog) (#6876)

* refactor(core): Adjust index handling in new migrations DSL (no-changelog)

* Account for custom index name

* Also for dropping

* Fix `select` issue with `relations`

* Tighten validation

* Ensure `ownerId` is not added when specifying `select`
2023-08-09 12:30:02 +02:00
..
controllers refactor: Remove pre-setup prompt on owner setup (#6495) 2023-06-22 21:11:38 +02:00
middleware perf(core): Add filtering and pagination to GET /workflows (#6845) 2023-08-09 12:30:02 +02:00
repositories perf(core): Cache roles (#6803) 2023-08-03 08:58:36 +02:00
services feat(core): Add metrics option to cache (#6846) 2023-08-04 20:51:07 +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 perf(core): Cache webhooks (#6825) 2023-08-04 11:52:45 +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