SFDO-Tooling / CumulusCI

Python framework for building portable automation for Salesforce projects
http://cumulusci.readthedocs.io
BSD 3-Clause "New" or "Revised" License
363 stars 242 forks source link

W-15805907: assign_permission_set_licenses accepts the api_names in either developerName or the PermissionSetLicenseKey #3798

Closed lakshmi2506 closed 5 months ago

lakshmi2506 commented 5 months ago

To handle the compatibility issues and ensure smooth functionality for both get_available_permission_set_licenses and assign_permission_set_licenses, you can make the following adjustments:

  1. Revert get_available_permission_set_licenses to Return PermissionSetLicenseKey:

    • This will maintain backward compatibility.
  2. Update assign_permission_set_licenses to Accept Both DeveloperName and PermissionSetLicenseKey:

    • Modify the function to handle input as either DeveloperName or PermissionSetLicenseKey, ensuring it can correctly interpret and process both formats. This adjustment will resolve issues with names like alpha.beta where the DeveloperName is alpha_beta. Accepts api_name as alpha_beta or alpha.beta and assigns them correctly
lakshmi2506 commented 5 months ago

Hi @jkasturi-sf @jstvz @vsbharath

Please review the PR

Thank you

lakshmi2506 commented 5 months ago

Hi @jstvz

Combined the queries into one, updated the task docs.

Please review the PR Thank you