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 #1273

Merged
merged 12 commits into from
Apr 15, 2024
Merged

Wr/add missing local components #1273

merged 12 commits into from
Apr 15, 2024

Conversation

WillieRuemmele
Copy link
Member

What does this PR do?

What issues does this PR fix or reference?

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

Functionality Before

getFileResponses would only return files that existed locally

Functionality After

getFileResponses now returns all results from the server, with a special note for ones not found locally

@WillieRuemmele WillieRuemmele requested a review from a team as a code owner April 2, 2024 19:52
const serverResponseNotFoundLocally =
(cs: ComponentSet) =>
(messageMap: Map<string, DeployMessage[]>): FileResponse[] => {
const sourceKeys = cs.getSourceComponents().toArray().map(toKey);
Copy link
Contributor

Choose a reason for hiding this comment

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

for a large deploy, this'll be a bit more performant if you make sourceKeys a set and use .has(k)

@WillieRuemmele WillieRuemmele reopened this Apr 9, 2024
@shetzel
Copy link
Contributor

shetzel commented Apr 15, 2024

QA:
With changes, there is now a warning message (e.g.): Warning: CustomField, Property__c.City2__c, returned from org, but not found in the local project
Without changes, there is no warning message and no file listed in the deployed files section.

@shetzel shetzel merged commit 7f9e388 into main Apr 15, 2024
68 checks passed
@shetzel shetzel deleted the wr/addMissingLocalComponents branch April 15, 2024 21:31
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.

4 participants