I hereby claim:
- I am ztugcesirin on github.
- I am tugce (https://keybase.io/tugce) on keybase.
- I have a public key whose fingerprint is BA7C 6CD9 6B44 3C28 32F2 B7E7 B0E9 B7FF D9B8 7E93
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
public class CopadoADDDataLoader { | |
public static List<List<SObject>> allNewRecords; | |
public static void loadData(){ | |
//prepare data for github call | |
String githubToken = '6121aa9eb9deb0c20a920d8fee7f238e6a5e7894'; | |
String githubEndpoint = 'https://api.github.com/repos/CopadoSolutions/PartnerTraining'; | |
String sha = ''; | |
Http http = new Http(); |
copado__Metadata_Group__c allMetadata = new copado__Metadata_Group__c (); | |
allMetadata.Name = 'All Metadata Types'; | |
insert allMetadata; | |
List<copado__Metadata_Group_Item__c> items = new List<copado__Metadata_Group_Item__c>(); | |
Schema.DescribeFieldResult typeResult = copado__Metadata_Group_Item__c.copado__Type__c.getDescribe(); | |
List<Schema.PicklistEntry> ple = typeResult.getPicklistValues(); | |
for( Schema.PicklistEntry f : ple) { |
public static void deleteCopadoRelatedData(){ | |
delete [SELECT Id From copado__Copado_Notification__c]; | |
delete [SELECT Id From copado__User_Story__c]; | |
delete [SELECT Id From copado__Project__c]; | |
delete [SELECT Id From copado__Sprint__c]; | |
delete [SELECT Id From copado__Release__c]; | |
delete [SELECT Id From copado__Theme__c]; | |
delete [SELECT Id From copado__Test_Run__c]; | |
delete [SELECT Id From copado__Test_Script__c]; | |
delete [SELECT Id From copado__Deployment_Flow__c]; |
Id bundleStoryId = 'BUNDLE_STORY_ID'; | |
//Get all the stories that are part of the bundle. | |
List<copado__User_Story__c> bundledStories = [SELECT Id, copado__Stop_Indexing_Metadata__c, copado__Exclude_From_CBM__c, Bundle_User_Story__c | |
FROM copado__User_Story__c | |
WHERE Is_Bundle__c = FALSE | |
AND Bundle_User_Story__c = :bundleStoryId]; | |
if(bundledStories.isEmpty()){ | |
//Nothing to do, let's return | |
return; |
copado.GlobalAPI copadoGlobalAPI = new copado.GlobalAPI(); | |
copado.GlobalAPI.UserLicense UL = new copado.GlobalAPI.UserLicense(); | |
UL.isCADEnabled = false; //Agile delivery license | |
UL.isCCHEnabled = false; //Compliance hub license | |
UL.isCCMEnabled = true; //Change management (developer) license | |
UL.isCopadoEnabled = true; //Enterprise (admin / release manager) license | |
UL.isCSTEnabled = true; //Copado Selenium testing license | |
UL.userId = UserInfo.getUserId(); |
Object Calisthenics outlines 9 basic rules to apply when performing the exercise: