Skip to content

Commit 68c4187

Browse files
committed
Re-ran prettier on README.md
1 parent 5453428 commit 68c4187

2 files changed

Lines changed: 26 additions & 26 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
# Nebula Logger has functionality that queries the AuthSession object when the current user has an active session.
181181
# The code should work with or without an active session, so the pipeline runs the tests twice - asynchronously and synchronously.
182182
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
183-
# Utlimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
183+
# Ultimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
184184
# Running the Apex tests sync & async serves as an extra level of integration testing to ensure that everything works with or without an active session.
185185
- name: 'Run Apex Tests Asynchronously'
186186
run: npm run test:apex:nocoverage
@@ -256,7 +256,7 @@ jobs:
256256
# Nebula Logger has functionality that queries the AuthSession object when the current user has an active session.
257257
# The code should work with or without an active session, so the pipeline runs the tests twice - asynchronously and synchronously.
258258
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
259-
# Utlimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
259+
# Ultimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
260260
# Running the Apex tests sync & async serves as an extra level of integration testing to ensure that everything works with or without an active session.
261261
- name: 'Run Apex Tests Asynchronously'
262262
run: npm run test:apex:nocoverage
@@ -324,7 +324,7 @@ jobs:
324324
# Nebula Logger has functionality that queries the AuthSession object when the current user has an active session.
325325
# The code should work with or without an active session, so the pipeline runs the tests twice - asynchronously and synchronously.
326326
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
327-
# Utlimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
327+
# Ultimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
328328
# Running the Apex tests sync & async serves as an extra level of integration testing to ensure that everything works with or without an active session.
329329
- name: 'Run Apex Tests Asynchronously'
330330
run: npm run test:apex:nocoverage
@@ -395,7 +395,7 @@ jobs:
395395
# Nebula Logger has functionality that queries the AuthSession object when the current user has an active session.
396396
# The code should work with or without an active session, so the pipeline runs the tests twice - asynchronously and synchronously.
397397
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
398-
# Utlimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
398+
# Ultimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
399399
# Running the Apex tests sync & async serves as an extra level of integration testing to ensure that everything works with or without an active session.
400400
- name: 'Run Apex Tests Asynchronously'
401401
run: npm run test:apex:nocoverage
@@ -470,7 +470,7 @@ jobs:
470470
# Nebula Logger has functionality that queries the AuthSession object when the current user has an active session.
471471
# The code should work with or without an active session, so the pipeline runs the tests twice - asynchronously and synchronously.
472472
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
473-
# Utlimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
473+
# Ultimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
474474
# Running the Apex tests sync & async serves as an extra level of integration testing to ensure that everything works with or without an active session.
475475
- name: 'Run Apex Tests Asynchronously'
476476
run: npm run test:apex:nocoverage
@@ -538,7 +538,7 @@ jobs:
538538
# Nebula Logger has functionality that queries the AuthSession object when the current user has an active session.
539539
# The code should work with or without an active session, so the pipeline runs the tests twice - asynchronously and synchronously.
540540
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
541-
# Utlimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
541+
# Ultimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
542542
# Running the Apex tests sync & async serves as an extra level of integration testing to ensure that everything works with or without an active session.
543543
- name: 'Run Apex Tests Asynchronously'
544544
run: npm run test:apex:nocoverage
@@ -653,7 +653,7 @@ jobs:
653653
# Nebula Logger has functionality that queries the AuthSession object when the current user has an active session.
654654
# The code should work with or without an active session, so the pipeline runs the tests twice - asynchronously and synchronously.
655655
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
656-
# Utlimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
656+
# Ultimately, this could/should probably be better mocked during tests, but the AuthSession is read-only in Apex, so it's a bit difficult to work with.
657657
# Running the Apex tests sync & async serves as an extra level of integration testing in the meantime to ensure that everything works with or without an active session.
658658
- name: 'Run Apex Tests Asynchronously'
659659
run: npm run test:apex:nocoverage -- --targetusername nebula-logger-package-demo

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -829,25 +829,25 @@ If you want to add your own automation to the `Log__c` or `LogEntry__c` objects,
829829

830830
```apex
831831
public class ExampleTriggerablePlugin implements LoggerPlugin.Triggerable {
832-
public void execute(LoggerPlugin__mdt configuration, LoggerTriggerableContext input) {
833-
// Example: only run the plugin for Log__c records
834-
if (context.sobjectType != Schema.Log__c.SObjectType) {
835-
return;
836-
}
837-
838-
List<Log__c> logs = (List<Log__c>) input.triggerNew;
839-
switch on input.triggerOperationType {
840-
when BEFORE_INSERT {
841-
for (Log__c log : logs) {
842-
log.Status__c = 'On Hold';
843-
}
844-
}
845-
when BEFORE_UPDATE{
846-
// TODO add before-update logic
847-
}
848-
}
849-
}
850-
}
832+
public void execute(LoggerPlugin__mdt configuration, LoggerTriggerableContext input) {
833+
// Example: only run the plugin for Log__c records
834+
if (context.sobjectType != Schema.Log__c.SObjectType) {
835+
return;
836+
}
837+
838+
List<Log__c> logs = (List<Log__c>) input.triggerNew;
839+
switch on input.triggerOperationType {
840+
when BEFORE_INSERT {
841+
for (Log__c log : logs) {
842+
log.Status__c = 'On Hold';
843+
}
844+
}
845+
when BEFORE_UPDATE {
846+
// TODO add before-update logic
847+
}
848+
}
849+
}
850+
}
851851
```
852852

853853
Once you've created your Apex or Flow plugin(s), you will also need to configure the plugin:

0 commit comments

Comments
 (0)