Iván Ovejero
c08c5cc37b
refactor(core): Switch plain errors in cli
to ApplicationError
( #7857 )
...
Ensure all errors in `cli` are `ApplicationError` or children of it and
contain no variables in the message, to continue normalizing all the
errors we report to Sentry
Follow-up to: https://github.com/n8n-io/n8n/pull/7839
2023-11-29 12:25:10 +01:00
Iván Ovejero
b2ca050031
perf(core): Lazyload security audit reporters ( #7696 )
...
Also converting to service.
Followup to https://github.com/n8n-io/n8n/pull/7663
2023-11-13 11:50:43 +01:00
कारतोफ्फेलस्क्रिप्ट™
52f740b9e8
refactor(core): Use an IoC container to manage singleton classes [Part-1] (no-changelog) ( #5509 )
...
* add typedi
* convert ActiveWorkflowRunner into an injectable service
* convert ExternalHooks into an injectable service
* convert InternalHooks into an injectable service
* convert LoadNodesAndCredentials into an injectable service
* convert NodeTypes and CredentialTypes into an injectable service
* convert ActiveExecutions into an injectable service
* convert WaitTracker into an injectable service
* convert Push into an injectable service
* convert ActiveWebhooks and TestWebhooks into an injectable services
* handle circular references, and log errors when a circular dependency is found
2023-02-21 19:21:56 +01:00
कारतोफ्फेलस्क्रिप्ट™
5194513850
refactor(core): Delete duplicate code across all commands ( #5452 )
2023-02-10 14:59:20 +01:00
Iván Ovejero
2ca959b383
refactor: Integrate consistent-type-imports
in BE packages (no-changelog) ( #5270 )
2023-01-27 14:56:56 +01:00
Iván Ovejero
d548161632
feat(core): Security audit ( #5034 )
...
* ✨ Implement security audit
* ⚡ Use logger
* 🧪 Fix test
* ⚡ Switch logger with stdout
* 🎨 Set new logo
* ⚡ Fill out Public API schema
* ✏️ Fix typo
* ⚡ Break dependency cycle
* ⚡ Add security settings values
* 🧪 Test security settings
* ⚡ Add publicly accessible instance warning
* ⚡ Add metric to CLI command
* ✏️ Fix typo
* 🔥 Remove unneeded path alias
* 📘 Add type import
* 🔥 Remove inferrable output type
* ⚡ Set description at correct level
* ⚡ Rename constant for consistency
* ⚡ Sort URLs
* ⚡ Rename local var
* ⚡ Shorten name
* ✏️ Improve phrasing
* ⚡ Improve naming
* ⚡ Fix casing
* ✏️ Add docline
* ✏️ Relocate comment
* ⚡ Add singular/plurals
* 🔥 Remove unneeded await
* ✏️ Improve test description
* ⚡ Optimize with sets
* ⚡ Adjust post master merge
* ✏️ Improve naming
* ⚡ Adjust in spy
* 🧪 Fix outdated instance test
* 🧪 Make diagnostics check consistent
* ⚡ Refactor `getAllExistingCreds`
* ⚡ Create helper `getNodeTypes`
* 🐛 Fix `InternalHooksManager` call
* 🚚 Rename `execution` to `nodes` risk
* ⚡ Add options to CLI command
* ⚡ Make days configurable
* :revert: Undo changes to `BaseCommand`
* ⚡ Improve CLI command UX
* ⚡ Change no-report return value
Empty array to trigger empty state on FE.
* ⚡ Add empty check to `reportInstanceRisk`
* 🧪 Extend Jest `expect`
* 📘 Augment `jest.Matchers`
* 🧪 Set extend as setup file
* 🔧 Override lint rule for `.d.ts`
* ⚡ Use new matcher
* ⚡ Update check
* 📘 Improve typings
* ⚡ Adjust instance risk check
* ✏️ Rename `execution` → `nodes` in Public API schema
* ✏️ Add clarifying comment
* ✏️ Fix typo
* ⚡ Validate categories in CLI command
* ✏️ Improve naming
* ✏️ Make audit reference consistent
* 📘 Fix typing
* ⚡ Use `finally` in CLI command
2023-01-05 13:28:40 +01:00