-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#99 Add tab that displays the logs #102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also you are missing the Log__c layout
<content>Playlist_Record_Page</content> | ||
<formFactor>Small</formFactor> | ||
<comment | ||
>Action override created by Lightning App Builder during activation.</comment> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you adding a space after ? check your changes remember you only need to add what is relevant not all changes are aceptable
@@ -90,6 +98,7 @@ | |||
<tabs>Playlist__c</tabs> | |||
<tabs>Album__c</tabs> | |||
<tabs>ClientCredential__c</tabs> | |||
<tabs>log__c</tabs> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt it be Log__c?
); | ||
// test | ||
Test.startTest(); | ||
EventBus.publish(errorEvent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to add that space
EventBus.publish(errorEvent); | ||
Test.stopTest(); | ||
//assert | ||
List<Log__c> error = [SELECT ApexError__c FROM Log__c WHERE ApexError__c = 'error']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are hardcoding this value do
WHERE ApexError__c =: errorEvent.error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Objects start with Caps
<PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fieldPermissions> | ||
<editable>true</editable> | ||
<field>log__c.ApexError__c</field> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again objects should start with Caps
@@ -0,0 +1,17 @@ | |||
trigger ShowErrosInObject on Spotify_Request_Log__e(after insert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this file name? does not make sense
it should be SpotifyRequestLogTrigger
@@ -0,0 +1,16 @@ | |||
@isTest | |||
private class SpotifyRequestLogTrigger { | |||
@isTest static void spotifyRequestLogTrigger() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
method name should reflect what is being tested
No description provided.