-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix: emit sourceApi message, set it on cs, add UTs #669
Conversation
@@ -350,6 +373,9 @@ const buildRetrieveAndDeleteTargets = async ( | |||
} else { | |||
return { | |||
componentSetFromNonDeletes: await ComponentSetBuilder.build({ | |||
sourceapiversion: ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens outside of a project?
test/commands/retrieve/start.test.ts
Outdated
expect(retrieveStub.firstCall.args[0]).to.deep.equal(expectedRetrieveArgs); | ||
}; | ||
|
||
// Ensure Lifecycle hooks are called properly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still need these?
const retrieveOpts = await buildRetrieveOptions(flags, format, zipFileName, resolvedTargetDir); | ||
|
||
this.spinner.status = messages.getMessage('spinner.sending'); | ||
|
||
this.retrieveResult = new RetrieveResult({} as MetadataApiRetrieveStatus, componentSetFromNonDeletes); | ||
|
||
if (componentSetFromNonDeletes.size !== 0 || retrieveOpts.packageOptions?.length) { | ||
// eslint-disable-next-line @typescript-eslint/require-await |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could
return Promise.resolve();
at the bottom of the function instead of doing the eslint comment. 🤷🏻
QA notes: before this change (set sourceApiVersion to 56 via
with this change✅ (in a project, using source)
(top-level, using mdapi)
✅ results are the same for ./bin/dev since it doesn't have project. Importantly, it works without project! |
What does this PR do?
adds warnings from plugin-source into PDR
adds sourceApiVersion to CS
adds
retrieve start
UTs 👀What issues does this PR fix or reference?
forcedotcom/cli#353
@W-13735986@