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

fix: match using decoded component keys in ComponentSet.has() #1070

Merged
merged 4 commits into from
Aug 14, 2023

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Aug 8, 2023

What does this PR do?

Allows ComponentSet.has() to match an entry with an encoded component key by first decoding it. For example, if a component set has a layout with a fullName of AssignmentHistory__c-v1.34 Assignment History Layout and we ask that component set if it has an entry with a fullName of AssignmentHistory__c-v1%2E34 Assignment History Layout, it will now return true.

What issues does this PR fix or reference?

@W-11658886@
forcedotcom/cli#1683

Functionality Before

Remote changed layouts with encoded API names would not match existing local layouts, and would be written to the default directory as a new file.

Functionality After

Remote changed layouts with encoded API names now can match existing local layouts, resulting in the layout content being updated in the correct file.

Copy link
Contributor

@mshanemc mshanemc left a comment

Choose a reason for hiding this comment

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

no objections, 1 suggestion

src/collections/componentSet.ts Outdated Show resolved Hide resolved
@shetzel shetzel merged commit a113e91 into main Aug 14, 2023
@shetzel shetzel deleted the sh/has-decoded-component branch August 14, 2023 15:42
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