Skip to content

feat: expand dataspace-scoped dependency closure at deploy time - #1621

Open
himanshu-shekhar wants to merge 2 commits into
salesforcecli:mainfrom
himanshu-shekhar:cdp-dataspace-scoped-deploy-closure
Open

feat: expand dataspace-scoped dependency closure at deploy time#1621
himanshu-shekhar wants to merge 2 commits into
salesforcecli:mainfrom
himanshu-shekhar:cdp-dataspace-scoped-deploy-closure

Conversation

@himanshu-shekhar

Copy link
Copy Markdown

Data Cloud dataspace-scoped types (CalculatedInsight, DataModelObject) declare dependencies inline (a CI dependsOn its DataModelObject(s)). When deploying such a component, its referenced dependencies must ride along in the same deploy, but nothing else in the project should.

executeDeploy now expands the requested ComponentSet with just the transitive dataspace-scoped dependency closure via SDR's expandDataspaceScopedComponentSet. Requests with no dataspace-scoped components return untouched (cheap no-op for every other deploy).

Depends on forcedotcom/source-deploy-retrieve#1816, which adds the dataspaceScoped adapter/transformer and expandDataspaceScopedComponentSet.

What does this PR do?

What issues does this PR fix or reference?

Data Cloud dataspace-scoped types (CalculatedInsight, DataModelObject)
declare dependencies inline (a CI dependsOn its DataModelObject(s)).
When deploying such a component, its referenced dependencies must ride
along in the same deploy, but nothing else in the project should.

executeDeploy now expands the requested ComponentSet with just the
transitive dataspace-scoped dependency closure via SDR's
expandDataspaceScopedComponentSet. Requests with no dataspace-scoped
components return untouched (cheap no-op for every other deploy).

Depends on forcedotcom/source-deploy-retrieve#1816, which adds the
dataspaceScoped adapter/transformer and expandDataspaceScopedComponentSet.
@salesforce-cla

salesforce-cla Bot commented Aug 5, 2026

Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @himanshu-shekhar to sign the Salesforce Inc. Contributor License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant