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

@@ -7,6 +7,7 @@ import {
login,
loginCurrentUser,
logout,
preOwnerSetup,
reinvite,
sendForgotPasswordEmail,
setupOwner,
@@ -158,6 +159,9 @@ export const useUsersStore = defineStore(STORES.USERS, {
await logout(rootStore.getRestApiContext);
this.currentUserId = null;
},
async preOwnerSetup() {
return preOwnerSetup(useRootStore().getRestApiContext);
},
async createOwner(params: {
firstName: string;
lastName: string;