-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [UIE-8129] - IAM RBAC add new user permissions api #11146
feat: [UIE-8129] - IAM RBAC add new user permissions api #11146
Conversation
a36779f
to
39e52b6
Compare
Coverage Report: ✅ |
e3cd319
to
886495c
Compare
packages/api-v4/src/iam/types.ts
Outdated
@@ -0,0 +1,10 @@ | |||
export interface UserPermissions { | |||
account_access: string[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will very much help in the short and long terms to type the account_access
, resource_type
and roles
properties with unions. Doing this from the start will help development - we can add a couple and adding/modifying them as we go -
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @abailly-akamai , I've updated types with unions
packages/api-v4/src/iam/types.ts
Outdated
export interface ResourceAccess { | ||
resource_id: number; | ||
resource_type: string; | ||
roles: string[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
packages/api-v4/src/iam/types.ts
Outdated
@@ -0,0 +1,10 @@ | |||
export interface UserPermissions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aaleksee-akamai any thoughts on naming conventions here? Am wondering if the term iam
could be baked into our core types.
I can see UserPermissions
cognitively conflicting with legacy Permissions. Maybe prefixing those? ex: IamUserPermissions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abailly-akamai , done
886495c
to
a34c725
Compare
a34c725
to
9336317
Compare
Cloud Manager UI test results🎉 445 passing tests on test run #6 ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thx for addressing the changes 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Cloud Manager E2E
|
Project |
Cloud Manager E2E
|
Branch Review |
develop
|
Run status |
|
Run duration | 33m 37s |
Commit |
|
Committer | aaleksee-akamai |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
2
|
|
0
|
|
445
|
View all changes introduced in this branch ↗︎ |
Description 📝
IAM RBAC - new api for user permissions
Changes 🔄
Target release date 🗓️
Nov 12, 2024 (dev)
As an Author I have considered 🤔
Check all that apply