-
-
Notifications
You must be signed in to change notification settings - Fork 141
Description
Is your proposal related to a problem?
I can't determine if the changes generated by the plugin should be deleted before, after or in the same deployment job. I think that the solution for this problem is to include "reserved keywords" in git messages that sgd could use. Why version this information? Because I could replay the branch history to determine the order metadata changes happened, including deletions.
Describe a solution you propose
Given this set of commits
23echsd [sgd-delete-before] commit message 1
84jdhe2 commit message 2
528jded [sgd-delete-after] commit messages 3and considering HEAD is pointing to 528jded
sfdx sgd:source:delta --from 23echsd
could output 4 manifests
preDestructiveChanges.xml
postDestructiveChanges.xml
destructiveChanges.xml
package.xmlThis feature should not need a feature flag to work, in my opinion.
Then this proposal #558 could be extended to include new parameters in the output
{
"has_pre_destructive_changes": true,
"has_post_destructive_changes": true,
"has_destructive_changes": true,
"has_package_changes": true
}Describe alternatives you've considered
Currently there is no alternative. I would have to read commits again and run sgd multiple times between every commit if I create my own solution.
Additional context
N/A