Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sh/api version updates #673

Merged
merged 4 commits into from
Dec 14, 2022
Merged

Sh/api version updates #673

merged 4 commits into from
Dec 14, 2022

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Dec 14, 2022

What does this PR do?

Updates mdapi:deploy, mdapi:retrieve, source:deploy, source:retrieve, source:push, and source:pull to use the API version event data from SDR to output an accurate message of what is being used for the deploy or retrieve. Updates all libraries involved.

A sample message for retrieve will look like this:
"Retrieving v54.0 metadata from [email protected] using the v57.0 SOAP API"

The mdapi:deploy commmand is the only one that will not specify the API version of the source since we don't read the package.xml contents (or unzip and read it) so that will look like this:
"Deploying metadata to [email protected] using the v57.0 SOAP API"

What issues does this PR fix or reference?

@W-12146873@

@mshanemc
Copy link
Contributor

QA notes: this was mostly QA'd on
forcedotcom/source-deploy-retrieve#797
forcedotcom/source-deploy-retrieve#791

✅ Deploying metadata to [email protected] using the v56.0 SOAP API
✅ ../../plugin-source/bin/dev force:source:deploy -x mdapiOut/package.xml (v53 manifest)
Deploying v53.0 metadata to [email protected] using the v56.0 SOAP API

✅ manifest beats project.json

../../plugin-source/bin/dev force:source:deploy -x mdapiOut/package.xml --apiversion 51.0
✅ Deploying v53.0 metadata to [email protected] using the v51.0 SOAP API

../../plugin-source/bin/dev force:source:retrieve -x mdapiOut/package.xml --apiversion 51.0
✅ Retrieving v53.0 metadata from [email protected] using the v51.0 SOAP API

with 48 on project.json
../../plugin-source/bin/dev force:source:retrieve -p force-app/main/default/classes --apiversion 51.0
✅ Retrieving v48.0 metadata from [email protected] using the v51.0 SOAP API

@mshanemc mshanemc merged commit b2ca091 into main Dec 14, 2022
@mshanemc mshanemc deleted the sh/api-version-updates branch December 14, 2022 21:37
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