Skip to content
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

Merged

Conversation

aaleksee-akamai
Copy link
Contributor

@aaleksee-akamai aaleksee-akamai commented Oct 23, 2024

Description 📝

IAM RBAC - new api for user permissions

Changes 🔄

  • Added new api for User Permissions
  • No visible changes

Target release date 🗓️

Nov 12, 2024 (dev)

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@aaleksee-akamai aaleksee-akamai requested a review from a team as a code owner October 23, 2024 09:55
@aaleksee-akamai aaleksee-akamai requested review from jaalah-akamai and abailly-akamai and removed request for a team October 23, 2024 09:55
@aaleksee-akamai aaleksee-akamai force-pushed the UIE-8129-iam-rbac-new-permissions-api branch from a36779f to 39e52b6 Compare October 23, 2024 11:12
@aaleksee-akamai aaleksee-akamai changed the title feat: [UIE-8129] - add new user permissions api feat: [UIE-8129] - IAM add new user permissions api Oct 23, 2024
Copy link

github-actions bot commented Oct 23, 2024

Coverage Report:
Base Coverage: 87.37%
Current Coverage: 87.37%

@aaleksee-akamai aaleksee-akamai changed the title feat: [UIE-8129] - IAM add new user permissions api feat: [UIE-8129] - IAM RBAC add new user permissions api Oct 23, 2024
@cpathipa cpathipa requested review from cpathipa and jaalah-akamai and removed request for jaalah-akamai and cpathipa October 23, 2024 15:18
@aaleksee-akamai aaleksee-akamai force-pushed the UIE-8129-iam-rbac-new-permissions-api branch 2 times, most recently from e3cd319 to 886495c Compare November 5, 2024 15:27
@@ -0,0 +1,10 @@
export interface UserPermissions {
account_access: string[];
Copy link
Contributor

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 -

Copy link
Contributor Author

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

export interface ResourceAccess {
resource_id: number;
resource_type: string;
roles: string[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,10 @@
export interface UserPermissions {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aaleksee-akamai aaleksee-akamai force-pushed the UIE-8129-iam-rbac-new-permissions-api branch from 886495c to a34c725 Compare November 8, 2024 11:45
@aaleksee-akamai aaleksee-akamai force-pushed the UIE-8129-iam-rbac-new-permissions-api branch from a34c725 to 9336317 Compare November 8, 2024 12:20
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 445 passing tests on test run #6 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing445 Passing2 Skipped86m 24s

Copy link
Contributor

@abailly-akamai abailly-akamai left a 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 👍

Copy link
Contributor

@cpathipa cpathipa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cpathipa cpathipa merged commit d52d108 into linode:develop Nov 14, 2024
23 checks passed
Copy link

cypress bot commented Nov 14, 2024

Cloud Manager E2E    Run #6819

Run Properties:  status check passed Passed #6819  •  git commit d52d108de6: feat: [UIE-8129] - add new user permissions api with prefix (#11146)
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #6819
Run duration 33m 37s
Commit git commit d52d108de6: feat: [UIE-8129] - add new user permissions api with prefix (#11146)
Committer aaleksee-akamai
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 445
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants