feat(core): Add ownership, sharing and credential details to GET /workflows (#4510)

*  Abstract into `getMany()`

*  Use `getMany()` from free controller

*  Use `getMany()` from paid controller

* 🧪 Add tests

* 🧪 Fix tests

*  Add credential usage info

* 🧪 Update tests

*  Add type and adjust test
This commit is contained in:
Iván Ovejero
2022-11-08 17:52:42 +01:00
committed by GitHub
parent 01171912e7
commit 026fb50512
6 changed files with 193 additions and 99 deletions

View File

@@ -127,6 +127,7 @@ export class EEWorkflowsService extends WorkflowsService {
workflow.usedCredentials?.push({
id: credential.id.toString(),
name: credential.name,
type: credential.type,
currentUserHasAccess: userCredentialIds.includes(credentialId),
});
});