From 2bd75aca31c35ec3af01f8075673caa99d6f23c0 Mon Sep 17 00:00:00 2001 From: Eshank Vaish <48060426+eshankvaish@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:58:53 +0530 Subject: [PATCH 1/2] feat: add feature flag for hiding direct permissions in User permissions --- package-lock.json | 4 ++-- package.json | 2 +- src/index.ts | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 615f17371..29f65a84b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "0.5.0-patch-1", + "version": "0.5.0-patch-1-beta-1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "0.5.0-patch-1", + "version": "0.5.0-patch-1-beta-1", "license": "ISC", "dependencies": { "@types/react-dates": "^21.8.6", diff --git a/package.json b/package.json index 49ed6390c..651ecc368 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "0.5.0-patch-1", + "version": "0.5.0-patch-1-beta-1", "description": "Supporting common component library", "type": "module", "main": "dist/index.js", diff --git a/src/index.ts b/src/index.ts index 57d0183d5..92f1d228a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -76,6 +76,12 @@ export interface customEnv { SYSTEM_CONTROLLER_LISTING_TIMEOUT?: number FEATURE_STEP_WISE_LOGS_ENABLE?: boolean FEATURE_IMAGE_PROMOTION_ENABLE?: boolean + /** + * If true, the direct permissions are hidden for non-super admins in user permissions + * + * @default false + */ + FEATURE_HIDE_USER_DIRECT_PERMISSIONS_FOR_NON_SUPER_ADMINS?: boolean } declare global { interface Window { From bc4561b75d0faf1f4eaaf787329ffefa16b98c09 Mon Sep 17 00:00:00 2001 From: Eshank Vaish <48060426+eshankvaish@users.noreply.github.com> Date: Tue, 29 Oct 2024 17:29:51 +0530 Subject: [PATCH 2/2] chore: bump version to 0.5.0-patch-2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 29f65a84b..c30e95d50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "0.5.0-patch-1-beta-1", + "version": "0.5.0-patch-2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "0.5.0-patch-1-beta-1", + "version": "0.5.0-patch-2", "license": "ISC", "dependencies": { "@types/react-dates": "^21.8.6", diff --git a/package.json b/package.json index 651ecc368..2e0224fc2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "0.5.0-patch-1-beta-1", + "version": "0.5.0-patch-2", "description": "Supporting common component library", "type": "module", "main": "dist/index.js",