Skip to content

@W-19441295 Merge bundles CLI - plugin side#1038

Merged
WillieRuemmele merged 51 commits into
mainfrom
packagingDistribution/packageBundles
Sep 9, 2025
Merged

@W-19441295 Merge bundles CLI - plugin side#1038
WillieRuemmele merged 51 commits into
mainfrom
packagingDistribution/packageBundles

Conversation

@btrn11

@btrn11 btrn11 commented Aug 28, 2025

Copy link
Copy Markdown
Collaborator

@W-19441295@

What does this PR do?

What issues does this PR fix or reference?

decided to  to add tests yet because package create only has nut

and we don't have delete yet
changed comments, added test for bundle create
near copy and paste of package list command

unit test based off of bundle create
…-18671326/Package-Bundle-Create-command

feat: added bundle create
changed bundles to bundle in order to generate proper command
additionally updates messages
…-18762471/Package-Bundle-List-command

feat: created bundle list command
additionally made unit tests, and list, and report features
…-18782182/Package-Bundle-Version-Create-command

feat: created bundle version create
…-18839621/Package-Bundle-Version-List-command

feat: added package version list
…-18854587/Package-Bundle-Version-Report-command

T/packaging distribution/w 18854587/package bundle version report command
additionally made package bundle version create report flags make more sense
…distribution/W-18909971/Package-Bundle-Delete
…-18909971/Package-Bundle-Delete

T/packaging distribution/w 18909971/package bundle delete
…distribution/W-18927681/Package-Bundle-Install
@btrn11 btrn11 requested a review from a team as a code owner August 28, 2025 18:18
@btrn11 btrn11 changed the title Merge bundles CLI - plugin side @W-19441295 Merge bundles CLI - plugin side Aug 29, 2025
const result = await PackageBundleVersion.create({
...options,
polling: {
timeout: Duration.minutes(flags.wait),

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.

wait isn't a required flag, so this value can be undefined and lead to issues

}

// eslint-disable-next-line class-methods-use-this
private massageResultsForDisplay(results: BundleSObjects.BundleVersion): BundleSObjects.BundleVersion {

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.

why do you need this method?

Comment thread src/commands/package/bundle/delete.ts Outdated
'no-prompt': Flags.boolean({
char: 'n',
deprecateAliases: true,
aliases: ['noprompt'],

@WillieRuemmele WillieRuemmele Sep 5, 2025

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.

there's a few flags with aliases like this, where we're already deprecating the aliases as they're introduced? why even add the alias?

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.

@btrn11 - there's still 5 new flags being added, with deprecateAliases:true - let's remove all of them

Comment thread src/commands/package/bundle/install.ts Outdated
Comment on lines +72 to +81
const orgIdRegex = /^00D[a-zA-Z0-9]{15}$/;
let targetDevHub: string;

if (orgIdRegex.test(targetDevHubFlag)) {
// It's already an org ID, use it directly
targetDevHub = targetDevHubFlag;
} else {
// It's a username/alias, resolve it to an org and get the org ID
const { Org } = await import('@salesforce/core');
const devHubOrg = await Org.create({ aliasOrUsername: targetDevHubFlag, isDevHub: true });

@WillieRuemmele WillieRuemmele Sep 5, 2025

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.

There should already be a targetDevHub flag, similar to requiredOrgFlagWithDeprecations that'll do all of this for you requiredHubFlagWithDeprecations

@WillieRuemmele WillieRuemmele merged commit 764f317 into main Sep 9, 2025
13 checks passed
@WillieRuemmele WillieRuemmele deleted the packagingDistribution/packageBundles branch September 9, 2025 14:30
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