Iván Ovejero
6d6e2488c6
refactor(core): Generalize binary data manager interface (no-changelog) ( #7164 )
...
Depends on: #7092 | Story:
[PAY-768](https://linear.app/n8n/issue/PAY-768 )
This PR:
- Generalizes the `IBinaryDataManager` interface.
- Adjusts `Filesystem.ts` to satisfy the interface.
- Sets up an S3 client stub to be filled in in the next PR.
- Turns `BinaryDataManager` into an injectable service.
- Adjusts the config schema and adds new validators.
Note that the PR looks large but all the main changes are in
`packages/core/src/binaryData`.
Out of scope:
- `BinaryDataManager` (now `BinaryDataService`) and `Filesystem.ts` (now
`fs.client.ts`) were slightly refactored for maintainability, but fully
overhauling them is **not** the focus of this PR, which is meant to
clear the way for the S3 implementation. Future improvements for these
two should include setting up a backwards-compatible dir structure that
makes it easier to locate binary data files to delete, removing
duplication, simplifying cloning methods, using integers for binary data
size instead of `prettyBytes()`, writing tests for existing binary data
logic, etc.
---------
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in >
2023-09-22 17:22:12 +02:00
..
2023-07-10 19:35:34 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-07-10 19:35:34 +02:00
2023-09-05 12:59:02 +02:00
2023-08-23 16:04:57 +01:00
2023-09-21 15:00:41 +03:00
2023-08-16 13:06:47 +02:00
2023-09-22 07:27:00 +01:00
2023-06-16 16:26:35 +02:00
2023-09-05 12:59:02 +02:00
2023-03-30 13:59:59 +02:00
2023-09-22 17:22:12 +02:00
2023-09-05 12:59:02 +02:00
2023-04-19 16:00:49 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-06-29 17:11:00 +02:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-03-17 12:25:31 +01:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-22 17:22:12 +02:00
2023-09-05 12:59:02 +02:00
2023-07-12 11:15:38 +02:00
2023-09-22 17:22:12 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-09-19 13:16:35 +03:00
2023-03-09 18:13:15 +01:00
2023-07-18 17:18:06 +02:00
2023-09-22 17:22:12 +02:00
2023-06-16 16:26:35 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-08-16 15:52:41 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-14 10:54:25 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-10 08:58:51 +01:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-01 15:32:33 +02:00
2023-08-16 15:52:41 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-07-12 11:15:38 +02:00
2023-09-05 12:59:02 +02:00
2023-03-17 12:25:31 +01:00
2023-04-21 14:23:15 +03:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-20 15:20:56 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-07-10 19:35:34 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-02-28 05:39:43 +02:00
2023-09-05 12:59:02 +02:00
2023-09-20 13:56:53 +02:00
2023-09-05 12:59:02 +02:00
2023-09-22 17:22:12 +02:00
2023-09-12 17:04:39 +01:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-22 17:22:12 +02:00
2023-07-12 11:15:38 +02:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-05-04 17:26:56 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-01 15:32:33 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-20 10:19:12 +01:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-08-01 15:32:33 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-01 15:32:33 +02:00
2023-07-12 11:15:38 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-04-27 11:42:37 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-07-12 11:15:38 +02:00
2023-03-09 18:13:15 +01:00
2023-03-14 17:47:37 +00:00
2023-09-19 13:16:35 +03:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-22 17:22:12 +02:00
2023-08-16 13:06:47 +02:00
2023-03-09 18:13:15 +01:00
2023-09-19 13:16:35 +03:00
2023-08-01 15:32:33 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-07-28 18:28:17 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-08-01 15:32:33 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-03-03 18:49:19 +01:00
2023-09-19 13:16:35 +03:00
2023-03-09 18:13:15 +01:00
2023-03-09 18:13:15 +01:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-04-19 16:00:49 +02:00
2023-09-05 12:59:02 +02:00
2023-09-19 13:16:35 +03:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-22 17:22:12 +02:00
2023-09-05 12:59:02 +02:00
2023-06-16 16:26:35 +02:00
2023-09-22 17:22:12 +02:00
2023-09-22 17:22:12 +02:00
2023-09-22 17:22:12 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-07-12 11:15:38 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-07-28 18:28:17 +02:00
2023-09-05 12:59:02 +02:00
2023-09-07 08:07:37 +01:00
2023-09-05 12:59:02 +02:00
2023-08-01 15:32:33 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-07-06 09:28:34 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-19 13:16:35 +03:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-09-05 12:59:02 +02:00
2023-09-19 10:26:53 +02:00
2023-09-19 13:16:35 +03:00
2023-09-08 12:49:16 +01:00
2023-07-10 19:35:34 +02:00
2023-03-09 18:13:15 +01:00
2023-09-18 15:05:15 +01:00
2023-09-22 17:22:12 +02:00
2023-07-04 21:05:01 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-07-12 11:15:38 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-04-19 16:00:49 +02:00
2023-08-01 15:32:33 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-07 07:49:55 +01:00
2023-09-07 07:49:55 +01:00
2023-09-19 13:16:35 +03:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-03-09 18:13:15 +01:00
2023-03-09 18:13:15 +01:00
2023-08-01 15:32:33 +02:00
2023-09-15 15:04:16 +02:00
2023-08-01 15:32:33 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-08-16 15:52:41 +02:00
2023-08-01 15:32:33 +02:00
2023-03-09 18:13:15 +01:00
2023-08-16 15:52:41 +02:00
2023-08-16 15:52:41 +02:00
2023-08-16 15:52:41 +02:00
2023-07-12 11:15:38 +02:00
2023-09-05 12:59:02 +02:00
2023-08-25 13:28:32 +02:00
2023-05-22 18:09:10 +02:00
2023-06-16 16:26:35 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-03-09 18:13:15 +01:00
2023-09-22 17:22:12 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-08-16 15:52:41 +02:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00
2023-09-11 17:15:52 +01:00
2023-09-05 12:59:02 +02:00
2023-09-05 12:59:02 +02:00