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: pass org data when building ComponentSet with wildcard metadata #824

Merged
merged 6 commits into from
Dec 5, 2023

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Dec 1, 2023

What does this PR do?

When retrieving metadata with wildcard matching (e.g., --metadata "ApexClass:Prefix_*") pass along the org connection data to query the org for matching fullNames of that type. This allows retrieving metadata with wildcard matching into an empty project, or a project that doesn't already contain all the matching metadata being retrieved.

Also adds unit tests and NUTs for wildcard matching.

NOTE: also need the associated SDR PR: forcedotcom/source-deploy-retrieve#1182

What issues does this PR fix or reference?

@W-14284096@

@mshanemc
Copy link
Contributor

mshanemc commented Dec 5, 2023

QA:

✅ works fine, except for namespaces on Layouts which aren't caused or fixed by this PR.

  • ex: "Layout:ns__Obj__c-Some Layout" will always return
    ```unpackaged/package.xml Entity of type 'Layout' named 'ns__Obj__c-Some Layout' cannot be found`

@mshanemc mshanemc merged commit abf40f2 into main Dec 5, 2023
38 checks passed
@mshanemc mshanemc deleted the sh/wildcard-retrieval branch December 5, 2023 23:18
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.

2 participants