-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#99 Add tab that displays the logs and its components
- Loading branch information
1 parent
81dd985
commit 005be52
Showing
13 changed files
with
327 additions
and
25 deletions.
There are no files selected for viewing
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
14 changes: 14 additions & 0 deletions
14
force-app/main/default/classes/triggers/SpotifyRequestLogTriggerTest.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,14 @@ | ||
@isTest | ||
private class SpotifyRequestLogTriggerTest { | ||
@isTest static void spotifyRequestLogTriggerTest() { | ||
// prepare data | ||
Spotify_Request_Log__e errorEvent = new Spotify_Request_Log__e(ApexError__c = 'error'); | ||
// test | ||
Test.startTest(); | ||
EventBus.publish(errorEvent); | ||
Test.stopTest(); | ||
//assert | ||
List<Log__c> error = [SELECT ApexError__c FROM Log__c WHERE ApexError__c =: errorEvent.ApexError__c]; | ||
Assert.isFalse(error.isEmpty()); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
force-app/main/default/classes/triggers/SpotifyRequestLogTriggerTest.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> |
167 changes: 167 additions & 0 deletions
167
force-app/main/default/objects/Log__c/Log__c.object-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,167 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<actionOverrides> | ||
<actionName>Accept</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Accept</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Accept</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>CancelEdit</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>CancelEdit</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>CancelEdit</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Clone</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Clone</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Clone</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Delete</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Delete</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Delete</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Edit</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Edit</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Edit</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>List</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>List</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>List</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>New</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>New</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>New</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>SaveEdit</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>SaveEdit</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>SaveEdit</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Tab</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Tab</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Tab</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>View</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>View</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>View</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<allowInChatterGroups>false</allowInChatterGroups> | ||
<compactLayoutAssignment>SYSTEM</compactLayoutAssignment> | ||
<deploymentStatus>Deployed</deploymentStatus> | ||
<enableActivities>false</enableActivities> | ||
<enableBulkApi>true</enableBulkApi> | ||
<enableFeeds>false</enableFeeds> | ||
<enableHistory>false</enableHistory> | ||
<enableLicensing>false</enableLicensing> | ||
<enableReports>false</enableReports> | ||
<enableSearch>false</enableSearch> | ||
<enableSharing>true</enableSharing> | ||
<enableStreamingApi>true</enableStreamingApi> | ||
<externalSharingModel>Private</externalSharingModel> | ||
<gender>Feminine</gender> | ||
<label>Log</label> | ||
<nameField> | ||
<displayFormat>LE-{000000}</displayFormat> | ||
<label>Log Name</label> | ||
<type>AutoNumber</type> | ||
</nameField> | ||
<pluralLabel>Logs</pluralLabel> | ||
<searchLayouts /> | ||
<sharingModel>ReadWrite</sharingModel> | ||
<visibility>Public</visibility> | ||
</CustomObject> |
11 changes: 11 additions & 0 deletions
11
force-app/main/default/objects/Log__c/fields/ApexError__c.field-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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>ApexError__c</fullName> | ||
<externalId>false</externalId> | ||
<label>ApexError</label> | ||
<length>255</length> | ||
<required>false</required> | ||
<trackTrending>false</trackTrending> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
11 changes: 11 additions & 0 deletions
11
force-app/main/default/objects/Log__c/fields/Endpoint__c.field-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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>Endpoint__c</fullName> | ||
<externalId>false</externalId> | ||
<label>Endpoint</label> | ||
<length>255</length> | ||
<required>false</required> | ||
<trackTrending>false</trackTrending> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
11 changes: 11 additions & 0 deletions
11
force-app/main/default/objects/Log__c/fields/Message__c.field-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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>Message__c</fullName> | ||
<externalId>false</externalId> | ||
<label>Message</label> | ||
<length>255</length> | ||
<required>false</required> | ||
<trackTrending>false</trackTrending> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
12 changes: 12 additions & 0 deletions
12
force-app/main/default/objects/Log__c/fields/Status__c.field-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,12 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>Status__c</fullName> | ||
<externalId>false</externalId> | ||
<label>Status</label> | ||
<precision>3</precision> | ||
<required>false</required> | ||
<scale>0</scale> | ||
<trackTrending>false</trackTrending> | ||
<type>Number</type> | ||
<unique>false</unique> | ||
</CustomField> |
6 changes: 6 additions & 0 deletions
6
force-app/main/default/objects/Log__c/listViews/All.listView-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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<ListView xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>All</fullName> | ||
<filterScope>Everything</filterScope> | ||
<label>All</label> | ||
</ListView> |
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
Oops, something went wrong.