-
Notifications
You must be signed in to change notification settings - Fork 20
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 schemas for registry customization #84
Conversation
src/registryVariants.ts
Outdated
transformer?: | ||
| "decomposed" | ||
| "staticResource" | ||
| "nonDecomposed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd like to NOT expose the stuff that CustomLabels was using. I don't want more people creating dependencies on those behaviors since they've been so bad.
src/registryVariants.ts
Outdated
| "nonDecomposed" | ||
| "standard"; | ||
decomposition?: "topLevel" | "folderPerType"; | ||
recomposition?: "startEmpty"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recomposition?: "startEmpty"; |
src/registryVariants.ts
Outdated
transformer?: | ||
| "decomposed" | ||
| "staticResource" | ||
| "nonDecomposed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "nonDecomposed" |
src/registryVariants.ts
Outdated
| "mixedContent" | ||
| "matchingContentFile" | ||
| "decomposed" | ||
| "digitalExperience" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "digitalExperience" |
and maybe not let people use DEB's weird stuff either.
src/registryVariants.ts
Outdated
/** | ||
* Whether or not components are stored in folders. | ||
* | ||
* __Examples:__ Reports, Dashboards, Documents, EmailTemplates | ||
* | ||
* @deprecated use `folderType` to get the related folder type, if one exists | ||
*/ | ||
inFolder?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
* Whether or not components are stored in folders. | |
* | |
* __Examples:__ Reports, Dashboards, Documents, EmailTemplates | |
* | |
* @deprecated use `folderType` to get the related folder type, if one exists | |
*/ | |
inFolder?: boolean; |
because it's deprecated
src/registryVariants.ts
Outdated
/** | ||
* MetaFile suffix | ||
* | ||
* An override to the default "-meta.xml" suffix. | ||
* | ||
* __Examples:__ "_meta.json" for DigitalExperience. | ||
*/ | ||
metaFileSuffix?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
* MetaFile suffix | |
* | |
* An override to the default "-meta.xml" suffix. | |
* | |
* __Examples:__ "_meta.json" for DigitalExperience. | |
*/ | |
metaFileSuffix?: string; |
another thing I'd like to avoid exposing
src/registryVariants.ts
Outdated
/** | ||
* If the parent name should be ignored when constructing the type's fullName | ||
*/ | ||
ignoreParentName?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
* If the parent name should be ignored when constructing the type's fullName | |
*/ | |
ignoreParentName?: boolean; |
hide, also only currently for customLabels/nonDecomposed
src/registryVariants.ts
Outdated
/** | ||
* When converting deploying source, this will update the suffix in the output or temporary directory (metadata format) | ||
* Use this, along with additional suffix keys in the registry, to support incorrect suffixes from existing code | ||
*/ | ||
legacySuffix?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep that hidden unless someone needs it. This was really just for things toolbelt had wrong.
/** | |
* When converting deploying source, this will update the suffix in the output or temporary directory (metadata format) | |
* Use this, along with additional suffix keys in the registry, to support incorrect suffixes from existing code | |
*/ | |
legacySuffix?: string; |
}, | ||
"registryPresets": { | ||
"title": "Custom predefined presets for decomposing metadata types", | ||
"description": "filenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
What does this PR do?
adds custom registry schema information
What issues does this PR fix or reference?
@W-14609009@
Functionality Before
red lines when using
registryCustomizations
orregistryPresets
Functionality After
full type support