-
Notifications
You must be signed in to change notification settings - Fork 102
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: offer suggestions for unresolved metadata types #948
Conversation
.../testProj/force-app/main/default/layouts/MyTestObject__c-MyTestObject Layout.Layout-meta.xml
Show resolved
Hide resolved
* fix: ut and better answers for case errors * test: another case guess test
QA: using SDR linked into PDR
fileUtilities.cls => fileUtilities.CLS fileUtilities.cls-meta.xml => fileUtilities.cLS-meta.xml fileUtilities.cls-meta.xml => fileUtilities.cLS-meta.xmz prompts/Property.prompt-meta.xml => property.xml prompts/Property.prom-meta.xml => property.xml putting a bad extension on a listView (child of custom object) all of these are not changed ⬇️
|
additional QA against @W-12484289@ 🏆 Error (1): /Users/shane.mclaughlin/Downloads/dipb-sfdc-portal-banker/force-app/main/default/classes/redacted__c.field-meta.xml: Could not infer a metadata type Try this: A search for the ".field-meta.xml" metadata suffix found the following close matches: Additional suggestions: |
@mshanemc I was not able to figure out how to get
This is how this currently works prior to these changes. Unlink |
QA round 2
|
What does this PR do?
In the past, a misspelled metadata file would fall back to
EmailServicesFunction
because that is the default for the.xml
suffix. This change will prevent that incorrect resolved type and also offer suggestions to try similar metadata types.Step 1 - Validation
sfdx project generate manifest --source-dir force-app
package.xml
has the followingLayout
entryStep 2 - Reproduce bug
Property
layout to have a capitalL
on.Layout-meta.xml
mv force-app/main/default/layouts/Property__c-Property\ Layout.layout-meta.xml force-app/main/default/layouts/Property__c-Property\ Layout.Layout-meta.xml
sfdx project generate manifest --source-dir force-app
Label
type no longer containsProperty__c-Property\ Layout
EmailServicesFunction
.xml
filename suffix which was claimed byEmailServicesFunction
hereStep 3 - Testing Changes
yarn link
cd
toplugin-deploy-retrieve
yarn link @salesforce/source-deploy-retrieve
sfdx plugins link
sfdx plugins
to confirm plugin is linkedsfdx project generate manifest --source-dir force-app
lyout-meta.xml
What issues does this PR fix or reference?
@W-12731813@
also fixes @W-12484289@