refactor(core): Improve instance owner setup and add unit tests (no-changelog) (#5499)

* refactor(core): Avoid fetching all workflows and credentials for the owner setup screen

* refactor(core): Add unit tests for the owner controller
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-02-17 10:59:09 +01:00
committed by GitHub
parent 12104bc4a3
commit 561882f599
10 changed files with 204 additions and 51 deletions

View File

@@ -31,7 +31,7 @@ export const ROUTES_REQUIRING_AUTHENTICATION: Readonly<string[]> = [
'PATCH /me',
'PATCH /me/password',
'POST /me/survey',
'POST /owner',
'POST /owner/setup',
'GET /non-existent',
];
@@ -42,7 +42,8 @@ export const ROUTES_REQUIRING_AUTHORIZATION: Readonly<string[]> = [
'POST /users',
'DELETE /users/123',
'POST /users/123/reinvite',
'POST /owner',
'POST /owner/pre-setup',
'POST /owner/setup',
'POST /owner/skip-setup',
];