Skip to content

Commit

Permalink
fix deployment errors (#17)
Browse files Browse the repository at this point in the history
* fix deployment errors

* delete profiles
  • Loading branch information
k-capehart authored Oct 26, 2023
1 parent ec18fb6 commit 4cfb84d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 12 deletions.
2 changes: 1 addition & 1 deletion force-app/main/default/classes/AccountTriggerHelper.cls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
public with sharing class AccountTriggerHelper {
public static Boolean validatePhoneNumber(Account a) {
return Pattern.matches('[0-9(),./\\-]+', a.Phone); // test
return Pattern.matches('[0-9(),./\\-]+', a.Phone); //test
}
}
7 changes: 7 additions & 0 deletions force-app/main/default/classes/AccountTriggerTest.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@isTest(SeeAllData=false)
public with sharing class AccountTriggerTest {
@isTest static void testAccount() {
Account a = new Account(Name = 'Test', Phone = '1234567890');
AccountTriggerHelper.validatePhoneNumber(a);
}
}
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>58.0</apiVersion>
<status>Active</status>
</ApexClass>
34 changes: 23 additions & 11 deletions force-app/main/default/profiles/Admin.profile-meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<apexClass>AccountTriggerHelper</apexClass>
<enabled>true</enabled>
</classAccesses>
<classAccesses>
<apexClass>AccountTriggerTest</apexClass>
<enabled>true</enabled>
</classAccesses>
<custom>false</custom>
<userLicense>Salesforce</userLicense>
<userPermissions>
Expand Down Expand Up @@ -152,15 +156,15 @@
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>CreateReportFolders</name>
<name>CreatePackaging</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>CreateTopics</name>
<name>CreateReportFolders</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>CreateWorkBadgeDefinition</name>
<name>CreateTopics</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
Expand Down Expand Up @@ -274,10 +278,6 @@
<enabled>true</enabled>
<name>ExportReport</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>FieldServiceAccess</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>GiveRecognitionBadge</name>
Expand Down Expand Up @@ -550,10 +550,18 @@
<enabled>true</enabled>
<name>Packaging2Delete</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>Packaging2PromoteVersion</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>PrivacyDataAccess</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>PublishPackaging</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>RemoveDirectMessageMembers</name>
Expand All @@ -578,10 +586,6 @@
<enabled>true</enabled>
<name>SendCustomNotifications</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>SendExternalEmailAvailable</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>SendSitRequests</name>
Expand Down Expand Up @@ -650,6 +654,14 @@
<enabled>true</enabled>
<name>UseOmnichannelInventoryAPIs</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>UseReturnOrder</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>UseReturnOrderAPIs</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>UseTeamReassignWizards</name>
Expand Down
4 changes: 4 additions & 0 deletions manifest/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
<members>*</members>
<name>StaticResource</name>
</types>
<types>
<members>*</members>
<name>Profile</name>
</types>
<version>58.0</version>
</Package>

0 comments on commit 4cfb84d

Please sign in to comment.