Skip to content

W-22034567: remove startDate, endDate from license provision command and align json definition file fields with cli flags and enforce required flags#8

Merged
ukanoja-sf merged 2 commits into
mainfrom
t/tm-connect/removing-start-end-dates
Apr 21, 2026
Merged

W-22034567: remove startDate, endDate from license provision command and align json definition file fields with cli flags and enforce required flags#8
ukanoja-sf merged 2 commits into
mainfrom
t/tm-connect/removing-start-end-dates

Conversation

@ukanoja-sf
Copy link
Copy Markdown
Collaborator

What does this PR do?

  • Removing start date and end date from license provision command
  • Align json definition file fields with cli flags and enforce required flags

What issues does this PR fix or reference?

GUS: @W-22034567@

Local testing

image image image

const messages = Messages.loadMessages('@salesforce/plugin-license-management', 'license.provision');

type ProvisionLicenseSpec = {
namespace?: string;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is a very minor discussion point.
@acardel
Do we want to try to "align" the field names between the CLI and the API?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Agree, specially in the case of license which could refer to other types of licenses on the platform.
We should match license to permissionSetLicense
and namespace to namespacePrefix
What do you say @ukanoja-sf?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The one thing we should probably be mindful of is not locking the sf cli command into PSL specific naming, since it is possible that this could be used for non-PSL related provisioning in the future.

So realistically, the only thing we might want to converge on is namespace.
tbh, it looks like the existing packaging code uses "namespace" as the parameter name.
So if we want to align to that, we'd be changing the API not the CLI.
Or we just let it go. Perhaps we ask Rashmi the importance of the delivery timing.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think after discussion with platform team we have decided to use just license and our design doc also mentions the same params. I prefer current naming and also not sure if we update now, then we might need another design review with platform team. If want to change, then I will prefer to update it in api request. @trey-sf, @acardel let me know if you prefer to discuss it over call (or tomorrow's standup) and we can quickly resolve it.
https://salesforce.quip.com/ysrEAiCWQfak#temp:C:YWc448cff01faa74dc0b48f1cf93

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

saw @trey-sf's comment after posting my comment, I will bring this up in tomorrow's stand up and we can close this in parking lot.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Cool. If that's the case I lean towards letting it go. I like the API to be PSL specific. If a user goes straight to the endpoint they will be hitting the PermissionSetLicense resource.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'd definitely leave PermissionSetLicense as-is.
It's whether we rename "namespacePrefix" to just "namespace" in the API.
Let's discuss in PL.

@ukanoja-sf ukanoja-sf merged commit 8288b93 into main Apr 21, 2026
16 checks passed
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.

3 participants