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

Wr/add missing local components #959

Closed
wants to merge 5 commits into from

Conversation

WillieRuemmele
Copy link
Contributor

What does this PR do?

adds new remote component to deploy report output

What issues does this PR fix or reference?

#forcedotcom/cli#2603, @W-14675377@

@@ -25,6 +25,7 @@ import {
JUnitReporter,
TestResult,
} from '@salesforce/apex-node';
import { getState } from '@salesforce/source-deploy-retrieve/lib/src/client/deployMessages.js';
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't do this kind of import. If we need this method it should be made public in SDR and exported.

filePath: 'Not found in project',
})
);

Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, SDR should do this. Other clients may have the same problem and need this code. I think SDR should report everything that happened, using the ComponentSet when possible to provide accurate file paths, but if not then use the file path from the response. That means updating MetadataApiDeploy.buildFileResponsesFromComponentSet(). @mshanemc - what are your thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried that, but NUTs had errors, maybe there's a different method, or a new one, but I don't think getFileResponses is it

Copy link
Contributor

Choose a reason for hiding this comment

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

I like your SDR solution better (made 1 comment there).

I think the NUT failures look to all be source-testkit related, here:
https://github.com/salesforcecli/source-testkit/blob/b5801a5ab89c044e94fd1ce14547ffe3dba9bf9f/src/assertions.ts#L120-L121

So maybe explore why that's hitting missing files?

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