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

Sm/deploy-id-in-timeout #612

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 35 additions & 37 deletions METADATA_SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Supported CLI Metadata Types

This list compares metadata types found in Salesforce v54 with the [metadata registry file](./src/registry/metadataRegistry.json) included in this repository.
This list compares metadata types found in Salesforce v55 with the [metadata registry file](./src/registry/metadataRegistry.json) included in this repository.

This repository is used by both the Salesforce CLIs and Salesforce's VSCode Extensions.

Currently, there are 442/467 supported metadata types.
Currently, there are 456/494 supported metadata types.
For status on any existing gaps, please search or file an issue in the [Salesforce CLI issues only repo](https://github.com/forcedotcom/cli/issues).
To contribute a new metadata type, please see the [Contributing Metadata Types to the Registry](./contributing/metadata.md)

Expand Down Expand Up @@ -48,14 +48,15 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|AppointmentSchedulingPolicy|✅||
|ApprovalProcess|✅||
|ArchiveSettings|✅||
|AssessmentQuestion|❌|Not supported, but support could be added|
|AssessmentQuestionSet|❌|Not supported, but support could be added|
|AssignmentRules|✅||
|AssistantContextItem|✅||
|AssistantDefinition|✅||
|AssistantSkillQuickAction|✅||
|AssistantSkillSobjectAction|✅||
|AssistantVersion|✅||
|AssociationEngineSettings|✅||
|AttributeDefinition2|❌|Not supported, but support could be added|
|Audience|✅||
|AuraDefinitionBundle|✅||
|AuthProvider|✅||
Expand All @@ -69,6 +70,7 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|BlockchainSettings|✅||
|Bot|✅||
|BotSettings|✅||
|BotTemplate|❌|Not supported, but support could be added|
|BotVersion|✅||
|BranchManagementSettings|✅||
|BrandingSet|✅||
Expand All @@ -81,6 +83,7 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|CallCenter|✅||
|CallCenterRoutingMap|✅||
|CallCoachingMediaProvider|⚠️|Supports deploy/retrieve but not source tracking|
|CallCtrAgentFavTrfrDest|❌|Not supported, but support could be added|
|CampaignInfluenceModel|✅||
|CampaignSettings|✅||
|CanvasMetadata|✅||
Expand Down Expand Up @@ -119,6 +122,7 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|CorsWhitelistOrigin|✅||
|CspTrustedSite|✅||
|CurrencySettings|✅||
|CustomAddressFieldSettings|✅||
|CustomApplication|✅||
|CustomApplicationComponent|✅||
|CustomFeedFilter|✅||
Expand All @@ -142,6 +146,7 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|DataConnectorIngestApi|✅||
|DataConnectorS3|✅||
|DataDotComSettings|✅||
|DataImportManagementSettings|✅||
|DataMapping|✅||
|DataMappingFieldDefinition|✅||
|DataMappingObjectDefinition|✅||
Expand All @@ -150,11 +155,16 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|DataSourceObject|✅||
|DataSourceTenant|✅||
|DataStreamDefinition|✅||
|DecisionMatrixDefinition|✅||
|DecisionMatrixDefinitionVersion|✅||
|DecisionTable|✅||
|DecisionTableDatasetLink|✅||
|DelegateGroup|✅||
|DeploymentSettings|✅||
|DevHubSettings|✅||
|DigitalExperience|❌|Not supported, but support could be added (but not for tracking)|
|DigitalExperienceBundle|❌|Not supported, but support could be added (but not for tracking)|
|DigitalExperienceBundleSetting|❌|Not supported, but support could be added (but not for tracking)|
|DiscoveryAIModel|✅||
|DiscoveryGoal|✅||
|DiscoverySettings|✅||
Expand Down Expand Up @@ -200,10 +210,13 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|ExperienceBundleSettings|✅||
|ExplainabilityActionDefinition|✅||
|ExplainabilityActionVersion|✅||
|ExpressionSetDefinition|✅||
|ExpressionSetDefinitionVersion|✅||
|ExternalAIModel|❌|Not supported, but support could be added|
|ExternalCredential|❌|Not supported, but support could be added|
|ExternalDataConnector|✅||
|ExternalDataSource|✅||
|ExternalDataSrcDescriptor|❌|Not supported, but support could be added|
|ExternalDataTranField|❌|Not supported, but support could be added|
|ExternalDataTranObject|❌|Not supported, but support could be added|
|ExternalServiceRegistration|✅||
Expand All @@ -224,6 +237,9 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|FlowCategory|✅||
|FlowDefinition|⚠️|Supports deploy/retrieve but not source tracking|
|FlowSettings|✅||
|FlowTest|✅||
|ForecastingFilter|❌|Not supported, but support could be added|
|ForecastingFilterCondition|❌|Not supported, but support could be added|
|ForecastingObjectListSettings|✅||
|ForecastingSettings|✅||
|ForecastingSourceDefinition|✅||
Expand All @@ -243,19 +259,19 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|Icon|✅||
|IdeasSettings|✅||
|IdentityVerificationProcDef|❌|Not supported, but support could be added|
|IdentityVerificationProcDtl|❌|Not supported, but support could be added|
|IdentityVerificationProcFld|❌|Not supported, but support could be added|
|IframeWhiteListUrlSettings|✅||
|InboundCertificate|✅||
|InboundNetworkConnection|✅||
|IncidentMgmtSettings|✅||
|Index|⚠️|Supports deploy/retrieve but not source tracking|
|IndustriesAutomotiveSettings|✅||
|IndustriesLoyaltySettings|✅||
|IndustriesManufacturingSettings|✅||
|IndustriesSettings|✅||
|InstalledPackage|⚠️|Supports deploy/retrieve but not source tracking|
|InterestTaggingSettings|✅||
|InternalDataConnector|✅||
|InvLatePymntRiskCalcSettings|✅||
|InventorySettings|✅||
|InvocableActionSettings|✅||
|IoTSettings|✅||
Expand Down Expand Up @@ -288,10 +304,13 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|ManagedContentType|⚠️|Supports deploy/retrieve but not source tracking|
|ManagedTopics|✅||
|MapsAndLocationSettings|✅||
|MarketSegmentDefinition|❌|Not supported, but support could be added|
|MarketingAppExtActivity|❌|Not supported, but support could be added|
|MarketingAppExtension|❌|Not supported, but support could be added|
|MatchingRules|✅||
|MediaAdSalesSettings|✅||
|MeetingsSettings|✅||
|MessagingChannel|❌|Not supported, but support could be added (but not for tracking)|
|MfgProgramTemplate|❌|Not supported, but support could be added|
|MilestoneType|✅||
|MktCalcInsightObjectDef|✅||
Expand Down Expand Up @@ -342,6 +361,7 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|PathAssistant|✅||
|PathAssistantSettings|✅||
|PaymentGatewayProvider|✅||
|PaymentsManagementEnabledSettings|✅||
|PermissionSet|✅||
|PermissionSetGroup|✅||
|PermissionSetLicenseDefinition|✅||
Expand Down Expand Up @@ -378,7 +398,9 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|RecordPageSettings|✅||
|RecordType|✅||
|RedirectWhitelistUrl|✅||
|RegisteredExternalService|❌|Not supported, but support could be added|
|RelatedRecordAssocCriteria|❌|Not supported, but support could be added|
|RelationshipGraphDefinition|❌|Not supported, but support could be added|
|RemoteSiteSetting|✅||
|Report|✅||
|ReportFolder|✅||
Expand All @@ -389,6 +411,7 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|SalesAgreementSettings|✅||
|SalesWorkQueueSettings|✅||
|SamlSsoConfig|✅||
|SchedulingObjective|❌|Not supported, but support could be added|
|SchedulingRule|✅||
|SchemaSettings|✅||
|ScoreCategory|❌|Not supported, but support could be added|
Expand Down Expand Up @@ -421,6 +444,8 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|StandardValueSetTranslation|✅||
|StaticResource|✅||
|StnryAssetEnvSrcCnfg|✅||
|StreamingAppDataConnector|❌|Not supported, but support could be added|
|SubscriptionManagementSettings|✅||
|SurveySettings|✅||
|SvcCatalogCategory|✅||
|SvcCatalogFulfillmentFlow|✅||
Expand Down Expand Up @@ -453,6 +478,8 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t
|VehicleAssetEmssnSrcCnfg|✅||
|ViewDefinition|✅||
|VirtualVisitConfig|❌|Not supported, but support could be added|
|VoiceSettings|✅||
|WarrantyLifecycleMgmtSettings|✅||
|WaveApplication|✅||
|WaveComponent|✅||
|WaveDashboard|✅||
Expand Down Expand Up @@ -480,41 +507,12 @@ To contribute a new metadata type, please see the [Contributing Metadata Types t



## Next Release (v55)
v55 introduces the following new types. Here's their current level of support
## Next Release (v56)
v56 introduces the following new types. Here's their current level of support

|Metadata Type|Support|Notes|
|:---|:---|:---|
|AssessmentQuestion|❌|Not supported, but support could be added|
|AssessmentQuestionSet|❌|Not supported, but support could be added|
|BotTemplate|❌|Not supported, but support could be added|
|CallCtrAgentFavTrfrDest|❌|Not supported, but support could be added|
|CustomAddressFieldSettings|✅||
|DataImportManagementSettings|✅||
|DecisionMatrixDefinition|✅||
|DecisionMatrixDefinitionVersion|✅||
|DigitalExperience|❌|Not supported, but support could be added (but not for tracking)|
|DigitalExperienceBundle|❌|Not supported, but support could be added (but not for tracking)|
|DigitalExperienceBundleSetting|❌|Not supported, but support could be added (but not for tracking)|
|ExpressionSetDefinition|✅||
|ExpressionSetDefinitionVersion|✅||
|ExternalDataSrcDescriptor|❌|Not supported, but support could be added|
|FlowTest|✅||
|ForecastingFilter|❌|Not supported, but support could be added|
|ForecastingFilterCondition|❌|Not supported, but support could be added|
|IndustriesAutomotiveSettings|✅||
|InvLatePymntRiskCalcSettings|✅||
|MarketSegmentDefinition|❌|Not supported, but support could be added (but not for tracking)|
|MeetingsSettings|✅||
|MessagingChannel|❌|Not supported, but support could be added (but not for tracking)|
|PaymentsManagementEnabledSettings|✅||
|RegisteredExternalService|❌|Not supported, but support could be added|
|RelationshipGraphDefinition|❌|Not supported, but support could be added|
|SchedulingObjective|❌|Not supported, but support could be added (but not for tracking)|
|StreamingAppDataConnector|❌|Not supported, but support could be added|
|SubscriptionManagementSettings|✅||
|VoiceSettings|✅||
|WarrantyLifecycleMgmtSettings|✅||
|DigitalExperienceConfig|❌|Not supported, but support could be added (but not for tracking)|

## Additional Types

Expand Down
3 changes: 2 additions & 1 deletion src/client/metadataTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export abstract class MetadataTransfer<Status extends MetadataRequestStatus, Res
return result;
} catch (e) {
const err = e as Error;
const error = new MetadataTransferError('md_request_fail', err.message);
const error = new MetadataTransferError('md_request_fail', err.message, { id: this.id });

if (error.stack && err.stack) {
// append the original stack to this new error
error.stack += `\nDUE TO:\n${err.stack}`;
Expand Down
8 changes: 5 additions & 3 deletions src/errors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ import { SourcePath } from '../common';
import { MetadataType } from '../registry';

export class LibraryError extends Error {
public constructor(messageKey: string, args?: string | string[]) {
public data: unknown;
public constructor(messageKey: string, args?: string | string[], data?: unknown) {
super(nls.localize(messageKey, args));
this.name = this.constructor.name;
this.data = data;
Error.captureStackTrace(this, this.constructor);
}
}
Expand Down Expand Up @@ -54,8 +56,8 @@ export class DeployError extends SourceClientError {
}

export class MetadataTransferError extends LibraryError {
public constructor(messageKey: string, args?: string | string[]) {
super(messageKey, args);
public constructor(messageKey: string, args?: string | string[], data?: unknown) {
super(messageKey, args, data);
}
}

Expand Down