Skip to content

fix: handle nil role and permissions lists in role commands - #1617

Merged
ramya18101 merged 1 commit into
mainfrom
fix/handle-nil-role-permissions-list
Aug 18, 2026
Merged

fix: handle nil role and permissions lists in role commands#1617
ramya18101 merged 1 commit into
mainfrom
fix/handle-nil-role-permissions-list

Conversation

@ramya18101

@ramya18101 ramya18101 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🔧 Changes

  • Improves the robustness of the roles-related CLI commands by adding better handling for cases where no roles or permissions are returned

📚 References

https://auth0.com/docs/api/management/v2/roles/get-role-permission

🔬 Testing

  • Added a new test, TestListRolesCmd, in roles_test.go

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@developerkunal
developerkunal marked this pull request as ready for review August 18, 2026 08:31
@developerkunal
developerkunal requested a review from a team as a code owner August 18, 2026 08:31

@developerkunal developerkunal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ramya18101 ramya18101 changed the title feat: handle nil role and permissions lists in role commands fix: handle nil role and permissions lists in role commands Aug 18, 2026
@ramya18101
ramya18101 merged commit ab33e66 into main Aug 18, 2026
6 checks passed
@ramya18101
ramya18101 deleted the fix/handle-nil-role-permissions-list branch August 18, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants