diff --git a/.vscode/settings.json b/.vscode/settings.json index 89ac523f..f41e8dcb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -38,5 +38,8 @@ "mochaExplorer.timeout": 20000, "prettier.enable": true, "standard.enable": false, - "typescript.autoClosingTags": false + "typescript.autoClosingTags": false, + "[dotenv]": { + "editor.defaultFormatter": "foxundermoon.shell-format" + } } diff --git a/CHANGELOG.md b/CHANGELOG.md index 249c0531..019299bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.2.15](https://github.com/redkubes/otomi-tasks/compare/v0.2.14...v0.2.15) (2021-10-22) + + +### Bug Fixes + +* disabled startup warnings [ci skip] ([dee3db8](https://github.com/redkubes/otomi-tasks/commit/dee3db8fe363327f66e97e2095c38e457b778243)) +* disabled startup warnings, wait not needed for isDev [ci skip] ([d137cb9](https://github.com/redkubes/otomi-tasks/commit/d137cb908e7e1d60a56444ed02de2f4c97ec4544)) +* husky [ci skip] ([4ba8ded](https://github.com/redkubes/otomi-tasks/commit/4ba8dede4b855d7ad3431c99048502c3fae1d364)) +* role name for otomi-admin is admin ([ffd7f63](https://github.com/redkubes/otomi-tasks/commit/ffd7f63fb4a1bdedeb4e79d8b6588f81a2ca32ce)) + ### [0.2.14](https://github.com/redkubes/otomi-tasks/compare/v0.2.13...v0.2.14) (2021-10-14) diff --git a/package-lock.json b/package-lock.json index bfb96759..d817445d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "otomi-tasks", - "version": "0.2.14", + "version": "0.2.15", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "0.2.14", + "version": "0.2.15", "license": "Apache-2.0", "dependencies": { "@apidevtools/json-schema-ref-parser": "^9.0.6", diff --git a/package.json b/package.json index 3e3f8acb..6efdf9ad 100644 --- a/package.json +++ b/package.json @@ -134,5 +134,5 @@ "tag": true } }, - "version": "0.2.14" + "version": "0.2.15" } diff --git a/src/tasks/keycloak/keycloak.ts b/src/tasks/keycloak/keycloak.ts index 2c72a222..073e5c04 100644 --- a/src/tasks/keycloak/keycloak.ts +++ b/src/tasks/keycloak/keycloak.ts @@ -283,7 +283,9 @@ async function main(): Promise { if (!existingRoleMapping) { // set realm roles const roles: Array = [] - const existingRole = updatedExistingRealmRoles.find((el) => el.name === groupName) as RoleRepresentation + const existingRole = updatedExistingRealmRoles.find( + (el) => el.name === (groupName === 'otomi-admin' ? 'admin' : groupName), + ) as RoleRepresentation roles.push(existingRole) await doApiCall(errors, `Creating role mapping for group ${groupName}`, async () => api.roleMapper.realmGroupsIdRoleMappingsRealmPost(keyCloakRealm, group.id!, roles),