Skip to content

Commit 1629291

Browse files
authored
Double Feature: OmniStudio logging + loosely-coupled dependencies (#765)
* Added new CallableLogger class that can be used both for a loosely coupled dependency on Nebula Logger, as well as for adding support for logging in OmniStudio * Added logic to populate origin source metadata fields on LogEntry__c for OmniStudio entries (similar to how fields are populated for Apex, Flow, and lightning components) * Fixed #764 in the Slack plugin by correcting the logic for the 'isShort' boolean, used to determine how to format long text blocks & blocks with line breaks * Expanded build.yml to run all scratch org def files (which were also renamed), added sample OmniStudio metadata to use in the pipeline (for orgs with OmniStudio configured) * Cleaned up README.md content / started the process of consolidating documentation to be centralized in the wiki
1 parent ff06c25 commit 1629291

165 files changed

Lines changed: 1890 additions & 166 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 238 additions & 60 deletions
Large diffs are not rendered by default.

.mob

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.md

Lines changed: 88 additions & 52 deletions

config/linters/lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
'sfdx-project.json': () => {
33
return `npm run package:version:number:fix`;
44
},
5-
'*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}': filenames => filenames.map(filename => `prettier --write '${filename}'`),
5+
'*.{apex,cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}': filenames => filenames.map(filename => `prettier --write '${filename}'`),
66
'**/lwc/**': filenames => {
77
return [`eslint --config ./config/linters/.eslintrc.json ${filenames.join(' ')} --fix`];
88
// FIXME this command should only run tests for the changed LWCs (instead of running tests for all LWCs)

config/scratch-orgs/dev-scratch-def.json renamed to config/scratch-orgs/advanced-scratch-def.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
2-
"orgName": "Nebula Logger - Dev Scratch Org",
2+
"orgName": "Nebula Logger - Advanced Scratch Org",
33
"edition": "Enterprise",
44
"hasSampleData": true,
55
"country": "US",
66
"language": "en_US",
7-
"features": ["EinsteinGPTPlatform", "EventLogFile", "PlatformCache"],
7+
"features": ["Communities", "EinsteinGPTPlatform", "EventLogFile", "OmniStudioDesigner", "OmniStudioMetadata", "OmniStudioRuntime", "PlatformCache"],
88
"settings": {
99
"apexSettings": {
1010
"enableAuraApexCtrlAuthUserAccessCheckPref": true,
1111
"enableAuraApexCtrlGuestUserAccessCheckPref": true,
12-
"enableCompileOnDeploy": true,
1312
"enableRestrictCommunityExecAnon": true,
1413
"enableSecureNoArgConstructorPref": true
1514
},
@@ -19,12 +18,18 @@
1918
"communitiesSettings": {
2019
"enableNetworksEnabled": true
2120
},
21+
"emailAdministrationSettings": {
22+
"enableEnhancedEmailEnabled": true
23+
},
2224
"eventSettings": {
2325
"enableDeleteMonitoringData": true,
2426
"enableEventLogGeneration": true,
2527
"enableLightningLoggerEvents": true,
2628
"eventLogRetentionDuration": 30
2729
},
30+
"experienceBundleSettings": {
31+
"enableExperienceBundleMetadata": true
32+
},
2833
"flowSettings": {
2934
"canDebugFlowAsAnotherUser": true
3035
},

config/scratch-orgs/build-base-scratch-def.json renamed to config/scratch-orgs/base-scratch-def.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"orgName": "Nebula Logger - Build - Base Scratch Org",
2+
"orgName": "Nebula Logger - Base Scratch Org",
33
"edition": "Enterprise",
44
"hasSampleData": true,
55
"country": "US",
@@ -12,6 +12,9 @@
1212
"communitiesSettings": {
1313
"enableNetworksEnabled": false
1414
},
15+
"emailAdministrationSettings": {
16+
"enableEnhancedEmailEnabled": false
17+
},
1518
"eventSettings": {
1619
"enableDeleteMonitoringData": false,
1720
"enableEventLogGeneration": false,

config/scratch-orgs/build-event-monitoring-scratch-def.json renamed to config/scratch-orgs/event-monitoring-scratch-def.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"orgName": "Nebula Logger - Build - Event Monitoring Scratch Org",
2+
"orgName": "Nebula Logger - Event Monitoring Scratch Org",
33
"edition": "Enterprise",
44
"hasSampleData": true,
55
"country": "AU",
@@ -12,6 +12,9 @@
1212
"communitiesSettings": {
1313
"enableNetworksEnabled": false
1414
},
15+
"emailAdministrationSettings": {
16+
"enableEnhancedEmailEnabled": false
17+
},
1518
"eventSettings": {
1619
"enableDeleteMonitoringData": true,
1720
"enableEventLogGeneration": true,

config/scratch-orgs/build-experience-cloud-scratch-def.json renamed to config/scratch-orgs/experience-cloud-scratch-def.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"orgName": "Nebula Logger - Build - Experience Cloud Scratch Org",
2+
"orgName": "Nebula Logger - Experience Cloud Scratch Org",
33
"edition": "Enterprise",
44
"hasSampleData": true,
55
"country": "ES",
@@ -12,6 +12,9 @@
1212
"communitiesSettings": {
1313
"enableNetworksEnabled": true
1414
},
15+
"emailAdministrationSettings": {
16+
"enableEnhancedEmailEnabled": false
17+
},
1518
"eventSettings": {
1619
"enableDeleteMonitoringData": false,
1720
"enableEventLogGeneration": false,

config/experience-cloud/classes/ChangePasswordController.cls renamed to config/scratch-orgs/experience-cloud/classes/ChangePasswordController.cls

File renamed without changes.

config/experience-cloud/classes/ChangePasswordController.cls-meta.xml renamed to config/scratch-orgs/experience-cloud/classes/ChangePasswordController.cls-meta.xml

File renamed without changes.

0 commit comments

Comments
 (0)