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

feat: add a wildcard expansion to metadata full names when building the CS #1063

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

WillieRuemmele
Copy link
Member

@WillieRuemmele WillieRuemmele commented Aug 1, 2023

What does this PR do?

allows you to pass a wildcard as part of a full name when construction a component set via metadata
e.g.
'FlexiPage:Property*'

What issues does this PR fix or reference?

forcedotcom/cli#2386 @W-13867893@

Functionality Before

would error

Functionality After

Deploys FlexiPages that match Property*
Retrieves as well*

*when the metadata already exists locally

force:source:deploy -m 'FlexiPage:Property*' 
...
DEPLOY PROGRESS | ████████████████████████████████████████ | 3/3 Components

=== Deployed Source

 FULL NAME            TYPE      PROJECT PATH                                                              
 ──────────────────── ───────── ───────────────────────────────────────────────────────────────────────── 
 Property_Explorer    FlexiPage force-app/main/default/flexipages/Property_Explorer.flexipage-meta.xml    
 Property_Finder      FlexiPage force-app/main/default/flexipages/Property_Finder.flexipage-meta.xml      
 Property_Record_Page FlexiPage force-app/main/default/flexipages/Property_Record_Page.flexipage-meta.xml 

@WillieRuemmele WillieRuemmele requested a review from a team as a code owner August 1, 2023 20:52
@shetzel
Copy link
Contributor

shetzel commented Aug 2, 2023

Tested with plugin-source and plugin-deploy-retrieve and dreamhouse-lwc project. -m "ApexClass:Test*" and -m "ApexClass:Test*" -m "CustomObject:Broker*" and it all worked.

Note that you have to quote the values or it won't work.

@shetzel shetzel merged commit 6a6770b into main Aug 2, 2023
66 checks passed
@shetzel shetzel deleted the wr/metadataWildcard branch August 2, 2023 22:16
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