Repository navigation
[Feat] Deploy DataSpace-Scoped Components with their retrieveWith Clo… - #1714
Open
WillieRuemmele wants to merge 5 commits into
Open
WillieRuemmele wants to merge 5 commits into
WillieRuemmele wants to merge 5 commits into
Conversation
…sure (#1649) * feat: deploy dataspace-scoped components with their retrieveWith closure * refactor: follow SDR rename to d360 strategy and expandD360ComponentSet * fix: add the Data Cloud closure to the deploy set in place Follows the SDR change: expandD360ComponentSet now adds the peers to the set it is given, so the deploy keeps its destructive changes, API versions, and wildcard entries. * refactor: refer to the Data Cloud sidecar field as deploysWith The org now writes deploysWith in place of retrieveWith. Only comments change. * fix: build the Data Cloud deploy closure through ComponentSetBuilder The deploy set is now built with forDeploy, so the source library adds each Data Cloud component's deploysWith peers while it builds the set. The plugin no longer resolves the whole project to expand the closure on its own. * fix: preview a D360 dataspace request as the local file deploy sends A D360 component requested as <dataspace>.<name> is stored locally under its bare name, so no local file has the requested name. Preview tried to generate file paths for it and failed with "Type not supported for filepath generation". Preview now lists that request once, under the requested name, with the local file the deploy sends for it, and its peers under their own names. The preview list matches the components the deploy sends. * fix: preview D360 local changes with the peers deploy sends With no flags, deploy preview listed source tracking's local changes as they were. The deploy adds the peers each D360 component deploys with inside ComponentSet.deploy(), which preview never calls, so preview listed only the changed component. The no-flags set now gets the same peer expansion. The expansion skips what is already in the set, so the deploy sends the same components as before, and the peers stay out of package.xml. * refactor: preview what a deploy sends through the SDR view Preview reads ComponentSet.getComponentsToDeploy() for a deploy, so the D360 peers and the <dataspace>.<name> mapping come from SDR and the plugin only formats the rows. The no-flags path no longer expands the source tracking set itself, since the view and deploy() add the peers. Retrieve preview is unchanged.
|
Thanks for the contribution! Before we can merge this, we need @aparnagoy to sign the Salesforce Inc. Contributor License Agreement. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…sure (#1649)
feat: deploy dataspace-scoped components with their retrieveWith closure
refactor: follow SDR rename to d360 strategy and expandD360ComponentSet
fix: add the Data Cloud closure to the deploy set in place
Follows the SDR change: expandD360ComponentSet now adds the peers to the set it is given, so the deploy keeps its destructive changes, API versions, and wildcard entries.
The org now writes deploysWith in place of retrieveWith. Only comments change.
The deploy set is now built with forDeploy, so the source library adds each Data Cloud component's deploysWith peers while it builds the set. The plugin no longer resolves the whole project to expand the closure on its own.
A D360 component requested as . is stored locally under its bare name, so no local file has the requested name. Preview tried to generate file paths for it and failed with "Type not supported for filepath generation".
Preview now lists that request once, under the requested name, with the local file the deploy sends for it, and its peers under their own names. The preview list matches the components the deploy sends.
With no flags, deploy preview listed source tracking's local changes as they were. The deploy adds the peers each D360 component deploys with inside ComponentSet.deploy(), which preview never calls, so preview listed only the changed component.
The no-flags set now gets the same peer expansion. The expansion skips what is already in the set, so the deploy sends the same components as before, and the peers stay out of package.xml.
Preview reads ComponentSet.getComponentsToDeploy() for a deploy, so the D360 peers and the . mapping come from SDR and the plugin only formats the rows.
The no-flags path no longer expands the source tracking set itself, since the view and deploy() add the peers. Retrieve preview is unchanged.
What does this PR do?
What issues does this PR fix or reference?