Skip to content

Add new tasks get_assignable_permission_sets and get_assignable_licenses#3892

Merged
vsbharath merged 6 commits intomainfrom
get_available_permsets
Apr 16, 2025
Merged

Add new tasks get_assignable_permission_sets and get_assignable_licenses#3892
vsbharath merged 6 commits intomainfrom
get_available_permsets

Conversation

@vsbharath
Copy link
Copy Markdown
Contributor

@vsbharath vsbharath commented Apr 15, 2025

Added new tasks to retrieve assignable licenses and permission sets:

  • get_assignable_licenses: Retrieves a list of currently assignable license definition keys based on unused licenses.
  • get_assignable_permission_sets: Retrieves a list of currently assignable Permission Sets based on unused associated user licenses.

@vsbharath vsbharath requested a review from a team as a code owner April 15, 2025 02:09
@vsbharath vsbharath requested a review from jstvz April 15, 2025 02:09
@jstvz jstvz added the critical-change Listed under Critical Changes in release notes label Apr 15, 2025
Copy link
Copy Markdown
Contributor

@jstvz jstvz left a comment

Choose a reason for hiding this comment

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

I'm a bit ambivalent about this PR. On one hand, It's actually a bug to return licenses that aren't available for assignment to a user. On the other hand, CumulusCI users may be relying on the current behavior because they have a use case for checking for the existence of a license.

Given that the task description is ambiguous ("Retrieves a list of the currently available license definition keys"), what about adding leaving the current behavior as-is and instead adding two new tasks (get_assignable_licenses and get_assignable_permission_sets) and clarifying the difference between them via the task description?

Comment thread .github/workflows/release_test_sfdx.yml Outdated
Comment thread cumulusci/tasks/preflight/licenses.py Outdated
Comment thread cumulusci/tasks/preflight/licenses.py Outdated
@vsbharath vsbharath force-pushed the get_available_permsets branch from 09e1c8d to 8c7bb41 Compare April 15, 2025 19:48
@vsbharath vsbharath changed the title @W-18129346 - get available permsets based on unused licenses @W-18129346 - Adding new tasks get_assignable_permission_sets and get_assignable_licenses Apr 15, 2025
@vsbharath vsbharath requested a review from jstvz April 15, 2025 19:57
Copy link
Copy Markdown
Contributor

@jstvz jstvz left a comment

Choose a reason for hiding this comment

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

LTGM, thanks. Don't forget the release note.

@jstvz jstvz changed the title @W-18129346 - Adding new tasks get_assignable_permission_sets and get_assignable_licenses Add new tasks get_assignable_permission_sets and get_assignable_licenses Apr 15, 2025
@jstvz jstvz added enhancement Listed under "Changes" in the changelog and removed critical-change Listed under Critical Changes in release notes labels Apr 16, 2025
@vsbharath vsbharath merged commit a901956 into main Apr 16, 2025
24 of 26 checks passed
@vsbharath vsbharath deleted the get_available_permsets branch April 16, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Listed under "Changes" in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants