Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Conversation

nicolasparrague
Copy link
Collaborator

No description provided.

@nicolasparrague nicolasparrague changed the title Spotify app 99 #99 Add tab that displays the logs Feb 6, 2024
Copy link
Owner

@santiagoparradev santiagoparradev left a 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>
Copy link
Owner

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>
Copy link
Owner

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);
Copy link
Owner

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'];
Copy link
Owner

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

Copy link
Owner

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>
Copy link
Owner

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) {
Copy link
Owner

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

@nicolasparrague nicolasparrague changed the base branch from main to dev February 7, 2024 18:10
@@ -0,0 +1,16 @@
@isTest
private class SpotifyRequestLogTrigger {
@isTest static void spotifyRequestLogTrigger() {
Copy link
Owner

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

@nicolasparrague nicolasparrague deleted the SpotifyApp_99 branch February 9, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add another tab that displays the logs of the spotify application
2 participants