-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow destructive changes with MetadataOptions (#1294)
* feat: allow destructive changes with MetadataOptions * test: add a test for only destructive * chore: update core dep * chore: update kit dep
- Loading branch information
Showing
37 changed files
with
1,442 additions
and
2,073 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
5 changes: 5 additions & 0 deletions
5
...hots__/1-post-destructive-and-1-deployment.expected/testOutput/post1/classes/OneClass.cls
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public with sharing class OneClass { | ||
public OneClass() { | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...post-destructive-and-1-deployment.expected/testOutput/post1/classes/OneClass.cls-meta.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
8 changes: 8 additions & 0 deletions
8
.../1-post-destructive-and-1-deployment.expected/testOutput/post1/destructiveChangesPost.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<types> | ||
<members>RedClass</members> | ||
<name>ApexClass</name> | ||
</types> | ||
<version>60.0</version> | ||
</Package> |
8 changes: 8 additions & 0 deletions
8
...s/__snapshots__/1-post-destructive-and-1-deployment.expected/testOutput/post1/package.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<types> | ||
<members>OneClass</members> | ||
<name>ApexClass</name> | ||
</types> | ||
<version>60.0</version> | ||
</Package> |
8 changes: 8 additions & 0 deletions
8
...t-destructive-and-no-deployment.expected/testOutput/post1-solo/destructiveChangesPost.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<types> | ||
<members>RedClass</members> | ||
<name>ApexClass</name> | ||
</types> | ||
<version>60.0</version> | ||
</Package> |
4 changes: 4 additions & 0 deletions
4
...apshots__/1-post-destructive-and-no-deployment.expected/testOutput/post1-solo/package.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<version>60.0</version> | ||
</Package> |
5 changes: 5 additions & 0 deletions
5
...pshots__/1-pre-destructive-and-1-deployment.expected/testOutput/pre1/classes/OneClass.cls
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public with sharing class OneClass { | ||
public OneClass() { | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...1-pre-destructive-and-1-deployment.expected/testOutput/pre1/classes/OneClass.cls-meta.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
8 changes: 8 additions & 0 deletions
8
...s__/1-pre-destructive-and-1-deployment.expected/testOutput/pre1/destructiveChangesPre.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<types> | ||
<members>RedClass</members> | ||
<name>ApexClass</name> | ||
</types> | ||
<version>60.0</version> | ||
</Package> |
8 changes: 8 additions & 0 deletions
8
...ets/__snapshots__/1-pre-destructive-and-1-deployment.expected/testOutput/pre1/package.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<types> | ||
<members>OneClass</members> | ||
<name>ApexClass</name> | ||
</types> | ||
<version>60.0</version> | ||
</Package> |
5 changes: 5 additions & 0 deletions
5
...ots__/2-post-destructive-and-2-deployments.expected/testOutput/post2/classes/OneClass.cls
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public with sharing class OneClass { | ||
public OneClass() { | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...ost-destructive-and-2-deployments.expected/testOutput/post2/classes/OneClass.cls-meta.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
5 changes: 5 additions & 0 deletions
5
...ots__/2-post-destructive-and-2-deployments.expected/testOutput/post2/classes/TwoClass.cls
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public with sharing class TwoClass { | ||
public TwoClass() { | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...ost-destructive-and-2-deployments.expected/testOutput/post2/classes/TwoClass.cls-meta.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
9 changes: 9 additions & 0 deletions
9
...2-post-destructive-and-2-deployments.expected/testOutput/post2/destructiveChangesPost.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<types> | ||
<members>BlueClass</members> | ||
<members>RedClass</members> | ||
<name>ApexClass</name> | ||
</types> | ||
<version>60.0</version> | ||
</Package> |
9 changes: 9 additions & 0 deletions
9
.../__snapshots__/2-post-destructive-and-2-deployments.expected/testOutput/post2/package.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<types> | ||
<members>OneClass</members> | ||
<members>TwoClass</members> | ||
<name>ApexClass</name> | ||
</types> | ||
<version>60.0</version> | ||
</Package> |
5 changes: 5 additions & 0 deletions
5
...shots__/2-pre-destructive-and-2-deployments.expected/testOutput/pre2/classes/OneClass.cls
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public with sharing class OneClass { | ||
public OneClass() { | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...-pre-destructive-and-2-deployments.expected/testOutput/pre2/classes/OneClass.cls-meta.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
5 changes: 5 additions & 0 deletions
5
...shots__/2-pre-destructive-and-2-deployments.expected/testOutput/pre2/classes/TwoClass.cls
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public with sharing class TwoClass { | ||
public TwoClass() { | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...-pre-destructive-and-2-deployments.expected/testOutput/pre2/classes/TwoClass.cls-meta.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
9 changes: 9 additions & 0 deletions
9
...__/2-pre-destructive-and-2-deployments.expected/testOutput/pre2/destructiveChangesPre.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<types> | ||
<members>BlueClass</members> | ||
<members>RedClass</members> | ||
<name>ApexClass</name> | ||
</types> | ||
<version>60.0</version> | ||
</Package> |
9 changes: 9 additions & 0 deletions
9
...ts/__snapshots__/2-pre-destructive-and-2-deployments.expected/testOutput/pre2/package.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<types> | ||
<members>OneClass</members> | ||
<members>TwoClass</members> | ||
<name>ApexClass</name> | ||
</types> | ||
<version>60.0</version> | ||
</Package> |
5 changes: 5 additions & 0 deletions
5
test/snapshot/sampleProjects/destructiveCompSets/originalSource/classes/BlueClass.cls
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public with sharing class BlueClass { | ||
public BlueClass() { | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...snapshot/sampleProjects/destructiveCompSets/originalSource/classes/BlueClass.cls-meta.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
5 changes: 5 additions & 0 deletions
5
test/snapshot/sampleProjects/destructiveCompSets/originalSource/classes/OneClass.cls
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public with sharing class OneClass { | ||
public OneClass() { | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
.../snapshot/sampleProjects/destructiveCompSets/originalSource/classes/OneClass.cls-meta.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
5 changes: 5 additions & 0 deletions
5
test/snapshot/sampleProjects/destructiveCompSets/originalSource/classes/RedClass.cls
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public with sharing class RedClass { | ||
public RedClass() { | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
.../snapshot/sampleProjects/destructiveCompSets/originalSource/classes/RedClass.cls-meta.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
5 changes: 5 additions & 0 deletions
5
test/snapshot/sampleProjects/destructiveCompSets/originalSource/classes/TwoClass.cls
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public with sharing class TwoClass { | ||
public TwoClass() { | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
.../snapshot/sampleProjects/destructiveCompSets/originalSource/classes/TwoClass.cls-meta.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
12 changes: 12 additions & 0 deletions
12
test/snapshot/sampleProjects/destructiveCompSets/sfdx-project.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "destructiveCompSetsProject", | ||
"namespace": "", | ||
"packageDirectories": [ | ||
{ | ||
"default": true, | ||
"path": "force-app" | ||
} | ||
], | ||
"sfdcLoginUrl": "https://login.salesforce.com", | ||
"sourceApiVersion": "52.0" | ||
} |
Oops, something went wrong.