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

Spring '22 release - v4.7.0 #274

Merged
merged 73 commits into from
Mar 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
031d6bf
Fixes #271 - Updated LoggerTestUtils to lazy-load standard user profi…
jongpie Jan 18, 2022
226ccf0
Added picklist values for API versions in calendar year 2022
jongpie Jan 7, 2022
6dab2fe
Added getVersionNumber() and getNamespacePrefix() methods in Logger.cls
jongpie Jan 7, 2022
75e5c2a
Improved logic LoggerTestUtils for handling standard user query
jongpie Jan 19, 2022
a80177a
Switched to using getters & imports in loggerSettings lwc for handlin…
jongpie Jan 19, 2022
5f8c697
Bumped package version to v4.7.0, added devDependencies for outdated …
jongpie Jan 19, 2022
4282f16
Updated some packages in package-lock.json
jongpie Jan 19, 2022
f77d26a
Worked with @jamessimone to improve code cleanliness for dynamically …
jongpie Jan 20, 2022
00622c1
Removed new Logger methods getVersionNumber() and getNamespacePrefix(…
jongpie Jan 20, 2022
2e635db
Fixed #272 by explicitly delcaring the list as List<Schema.PicklistEn…
jongpie Jan 20, 2022
41d2e2e
Regenerated package-lock.json
jongpie Jan 20, 2022
81c25fe
Temporarily disabling pipeline check for updated docs due to an error…
jongpie Jan 20, 2022
1a9772f
Fixed #258 by adding 2 new fields to LoggerSettings__c (IsSavingEnabl…
jongpie Jan 24, 2022
27ca52f
Updated logEntryEventStream.js to use a new file, logEntryEventSchema…
jongpie Jan 24, 2022
84a607a
Updated LoggerTestUtils test method to create its own test user, inst…
jongpie Jan 24, 2022
89e425d
Changed visibility of LoggerParameter__mdt object from 'Protected' to…
jongpie Jan 25, 2022
9a09c1d
Added new field LoggerSettings__c.DefaultLogOwner__c that can be used…
jongpie Jan 25, 2022
c392eab
[skip ci] Renamed LoggerSettings__c field StripInaccessibleRecordFiel…
jongpie Jan 25, 2022
e8f912f
Automatically check platform event saving input if general Enable Sav…
jamessimone Jan 26, 2022
9908993
Reverted to using "hardcoded" section for audit fields in loggerSetti…
jongpie Jan 26, 2022
99439fc
Fixed #276 - Added a check in LoggerEmailUtils to check if email deli…
jongpie Jan 26, 2022
8783e31
Switched to using JWT bearer flow in pipeline for dev hub auth
jongpie Jan 27, 2022
8a8f966
Refactored some code in LogHandler, removed exclusion of PMD rule 'Av…
jongpie Jan 27, 2022
a65b596
Updatd mock getObjectInfo.json for loggerSettings lwc
jongpie Jan 27, 2022
5ef2a58
Updated a test method to create a test user, instead of updating the …
jongpie Jan 27, 2022
7202cdc
Added calls to Test.getEventBus().deliver() in Flow classes to try to…
jongpie Jan 27, 2022
fa0f12b
Changed approach for querying the Standard User profile in LoggerTest…
jongpie Jan 27, 2022
5968231
Switched from trying (and failing) to use the Standard User profile i…
jongpie Jan 28, 2022
97eae0b
Added specific version of nanoid in package.json devDependencies due …
jongpie Jan 28, 2022
76c26b5
Fixed PMD issues
jongpie Jan 28, 2022
393933b
Standardized calls to Database.query() to also use String.escapeSingl…
jongpie Jan 28, 2022
7a6073e
Updated extra tests to include Spanish translation of 'Standard User'…
jongpie Jan 28, 2022
928100a
Switched from using sfdx force:community:create + a delay in the pipe…
jongpie Jan 28, 2022
51241f7
Reverted a change in base-scratch-def.json that caused an error when …
jongpie Jan 28, 2022
a5ac2c5
Fixed error handling of package creation & installation in pwsh scripts
jongpie Jan 31, 2022
1a8571b
Switched to using new class LoggerSObjectMetadata as a replacement fo…
jongpie Feb 1, 2022
4f41ad5
Fixed #279 by adding a new settings field DefaultLogScenario__c and n…
jongpie Feb 11, 2022
692f38a
Added missing test in LogEntryTagHandler_Tests for updating records
jongpie Feb 14, 2022
3b85176
Bumped all metadata to v54.0 (Summer '22 release), closed #263 by add…
jongpie Feb 14, 2022
ab2d3a1
Fixed several jest tests for loggerSettings lwc
jongpie Feb 15, 2022
c7cde0e
Finished updating logEntryEventStream lwc to use the new Apex class L…
jongpie Feb 15, 2022
fb1c907
Updated docs for Logger.cls
jongpie Feb 15, 2022
d4c4f6b
Removed ancestorVersion in unlocked package's sfdx-project.json - pre…
jongpie Feb 15, 2022
5a5f32f
Fixed a check for DUPLICATE_VALUE error that didn't work correctly wh…
jongpie Feb 15, 2022
5f43ce0
Fixed an issue with loggerSettingsPageLayout.js not properly evaluati…
jongpie Feb 16, 2022
cde057a
Fixed an assert in LoggerTagHandler_Tests to work when the current us…
jongpie Feb 16, 2022
e9e78ef
Updated codecov.yml so PR comments are deleted & readded, instead of …
jongpie Feb 16, 2022
b4fcf36
Upgraded sfdx-cli, cleaned up package.json, cleaned up both sfdx-proj…
jongpie Feb 16, 2022
dd849f1
Readded "ancestorVersion": "HIGHEST" to main sfdx-project.json file
jongpie Feb 16, 2022
f917888
Re-removing ancestorVersion in sfdx-project.json, and instead trying …
jongpie Feb 16, 2022
11dbfcf
Fixed Snyk issue (hopefully) by regenerating package-lock.json, which…
jongpie Feb 16, 2022
799a502
Cleaned up some code based on PR feedback from @jamessimone
jongpie Feb 22, 2022
2b90543
Removed local linking of sfdx-scanner in npm prepare script, added li…
jongpie Feb 22, 2022
bf7e44b
Moved scripts folder back to being a top-level folder
jongpie Feb 22, 2022
0ad1aae
Switched to using new packageAlias sorting feature in bummer sfdx plugin
jongpie Feb 22, 2022
c70f889
Created new package version
actions-user Feb 23, 2022
ce21591
Finally updated tests for logEntryEventStream to test for both no-nam…
jongpie Mar 3, 2022
c24b13c
Fixed some additional namespace-related issues in loggerSettings lwc
jongpie Mar 6, 2022
e9145b6
Fixed some additional namespace-related issues in logEntryEventStream…
jongpie Mar 6, 2022
788f23f
Updated lwc docs
jongpie Mar 6, 2022
9446a1e
Made most LoggerParameter__mdt records non-protected so they can be u…
jongpie Mar 7, 2022
497d1fc
Updated mgd pkg creation script to use --codecoverage instead of --sk…
jongpie Mar 7, 2022
d458d82
Re-added the deprecated quick action ViewJSON, aura cmp logJSONViewer…
jongpie Mar 7, 2022
4b45fc1
Created new package version
actions-user Mar 7, 2022
96d09d7
Switched to using a custom solution for determining & removing the na…
jongpie Mar 7, 2022
117f401
Reverted some unintentional changes to lwc folder
jongpie Mar 7, 2022
dcb2627
Updated a few additional refs to use localApiName instead of apiName
jongpie Mar 7, 2022
439bdeb
Fixed a conditional render rule on LogEntryRecordpage.flexipage, adde…
jongpie Mar 8, 2022
be529ca
Created new package version
actions-user Mar 8, 2022
de42554
Removed duplicate copy of deprecated lwc logViewer, fixed comment in …
jongpie Mar 8, 2022
362681b
Scope creep (again): renamed logJSON lwc back to logViewer, renamed "…
jongpie Mar 9, 2022
f1be02b
Created new package version
actions-user Mar 10, 2022
efd2eb2
[skip ci] Re-added logId property in logViewer lwc to ensure managed …
jongpie Mar 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github/
.husky/
.sfdx/
.vscode/
test-coverage/
2 changes: 2 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ coverage:
patch: off
ignore:
- 'nebula-logger-recipes/**/*'
comment:
behavior: new
99 changes: 60 additions & 39 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,33 @@ jobs:
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

- name: 'Verify package version number is updated'
- name: 'Authorize Dev Hub'
if: ${{ github.event_name == 'pull_request' }}
shell: bash
run: |
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
rm ./DEVHUB_SFDX_URL.txt
npm run package:version:number:verify
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
env:
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}

- name: 'Verify package version number is updated'
if: ${{ github.event_name == 'pull_request' }}
run: npm run package:version:number:verify

- name: 'Verify LWC with ESLint'
run: npm run lint:verify:lwc

- name: 'Verify Apex with SFDX Scanner'
run: npm run lint:verify:apex
run: |
npm run sfdx:plugins:link:scanner
npm run lint:verify:apex

- name: 'Verify docs are updated'
run: npm run docs:verify
# TODO - uncomment - temporarily commented-out due to an issue with apexdocs in the pipeline
# - name: 'Verify docs are updated'
# run: npm run docs:verify

- name: 'Verify formatting with Prettier'
run: npm run prettier:verify
Expand Down Expand Up @@ -140,13 +149,16 @@ jobs:
- name: 'Authorize Dev Hub'
shell: bash
run: |
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
env:
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}

- name: 'Create Base Scratch Org'
run: npm run org:create:base -- -durationdays 1 -devhubs nebula-logger-packaging
run: npx sfdx force:org:create --durationdays 1 --definitionfile ./config/scratch-orgs/base-scratch-def.json --wait 20 --setdefaultusername --json

- name: 'Push Source to Scratch Org'
run: npm run source:push
Expand Down Expand Up @@ -187,21 +199,19 @@ jobs:
- name: 'Authorize Dev Hub'
shell: bash
run: |
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
env:
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}

- name: 'Create Scratch Org with Experience Sites Enabled'
run: npm run org:create:experience-cloud -- -durationdays 1 -devhubs nebula-logger-packaging
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}

- name: 'Create Test Experience Site'
run: npm run experience:create
- name: 'Create Experience Cloud Scratch Org'
run: npx sfdx force:org:create --durationdays 1 --definitionfile ./config/scratch-orgs/experience-cloud-scratch-def.json --wait 20 --setdefaultusername --json

- name: 'Wait for Experience Site creation'
uses: maddox/actions/sleep@master
with:
args: '120'
- name: 'Deploy Test Experience Site Metadata'
run: npm run experience:deploy

- name: 'Push Source to Scratch Org'
run: npm run source:push
Expand Down Expand Up @@ -251,13 +261,16 @@ jobs:
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

- name: 'Authorize Packaging Org'
- name: 'Authorize Dev Hub'
shell: bash
run: |
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
env:
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}

- name: 'Authorize Demo Org'
shell: bash
Expand All @@ -268,12 +281,14 @@ jobs:
PKG_DEMO_ORG_SFDX_URL: ${{ secrets.NEBULA_PKG_DEMO_SANDBOX_SFDX_URL }}

- name: 'Create & Install Package Version'
run: npx pwsh ./config/scripts/build/create-and-install-package-version.ps1 -targetpackagealias '"Nebula Logger - Core"' -targetreadme ./README.md -targetusername nebula-logger-package-demo
run: npx pwsh ./scripts/build/create-and-install-package-version.ps1 -targetpackagealias '"Nebula Logger - Core"' -targetreadme ./README.md -targetusername nebula-logger-package-demo

- name: 'Commit New Package Version'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action Bot"
npm run sfdx:plugins:link:bummer
npx sfdx bummer:package:aliases:sort
npx prettier --write ./sfdx-project.json
git add ./sfdx-project.json
git commit -m "Created new package version"
Expand Down Expand Up @@ -305,13 +320,16 @@ jobs:
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

- name: 'Authorize Packaging Org'
- name: 'Authorize Dev Hub'
shell: bash
run: |
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
env:
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}

- name: 'Create Beta Managed Package Version'
run: npm run package:version:create:managed
Expand Down Expand Up @@ -339,13 +357,16 @@ jobs:
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

- name: 'Authorize Packaging Org'
- name: 'Authorize Dev Hub'
shell: bash
run: |
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
env:
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}

- name: 'Promote package versions'
run: npx pwsh ./config/scripts/build/promote-readme-packages.ps1
run: npx pwsh ./scripts/build/promote-readme-packages.ps1
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ nebula-logger/**/main/default/
test-coverage/
temp/

# Additional folders that are temporarily copied when creating a version of the managed package
nebula-logger/managed-package/core/main/configuration/
nebula-logger/managed-package/core/main/log-management/
nebula-logger/managed-package/core/main/logger-engine/
nebula-logger/managed-package/core/main/plugin-framework/
nebula-logger/managed-package/core/tests/

# NPM
node_modules/
yarn.lock
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@

Designed for Salesforce admins, developers & architects. A robust logger for Apex, Lightning Components, Flow, Process Builder & Integrations.

## Unlocked Package - v4.6.16
## Unlocked Package - v4.7.0

[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015lLzQAI)
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015lLzQAI)
[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015lXSQAY)
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015lXSQAY)
[![View Documentation](./images/btn-view-documentation.png)](https://jongpie.github.io/NebulaLogger/)

## Managed Package - v4.6.0
## Managed Package - v4.7.0

[![Install Managed Package in a Sandbox](./images/btn-install-managed-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000015keOQAQ)
[![Install Managed Package in Production](./images/btn-install-managed-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000015keOQAQ)
[![Install Managed Package in a Sandbox](./images/btn-install-managed-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000015lXNQAY)
[![Install Managed Package in Production](./images/btn-install-managed-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000015lXNQAY)
[![View Milestone](./images/btn-view-managed-package-milestone.png)](https://github.com/jongpie/NebulaLogger/milestone/6)

---
Expand Down
1 change: 0 additions & 1 deletion config/linters/pmd-ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
</description>
<rule ref="category/apex/bestpractices.xml">
<exclude name="ApexAssertionsShouldIncludeMessage" />
<exclude name="AvoidGlobalModifier" />
<exclude name="AvoidLogicInTrigger" />
</rule>
<rule ref="category/apex/codestyle.xml">
Expand Down
7 changes: 5 additions & 2 deletions config/scratch-orgs/experience-cloud-scratch-def.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"orgName": "Nebula Logger - Experience Cloud Scratch Org",
"edition": "Enterprise",
"hasSampleData": true,
"country": "US",
"language": "en_US",
"country": "ES",
"language": "es",
"features": ["Communities"],
"settings": {
"chatterSettings": {
Expand All @@ -12,6 +12,9 @@
"communitiesSettings": {
"enableNetworksEnabled": true
},
"experienceBundleSettings": {
"enableExperienceBundleMetadata": true
},
"userManagementSettings": {
"enableEnhancedPermsetMgmt": true,
"enableEnhancedProfileMgmt": true,
Expand Down
4 changes: 4 additions & 0 deletions docs/apex/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ Manages mass deleting `Log__c` records that have been selected by a user on a `L

Abstract class used by trigger handlers for shared logic

### [LoggerSObjectMetadata](log-management/LoggerSObjectMetadata)

Provides details to LWCs about Logger&apos;s `SObjects`, using `@AuraEnabled` properties

### [LoggerSettingsController](log-management/LoggerSettingsController)

Controller class for lwc `loggerSettings`, used to manage records in `LoggerSettings__c`
Expand Down
85 changes: 85 additions & 0 deletions docs/apex/log-management/LoggerSObjectMetadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
layout: default
---

## LoggerSObjectMetadata class

Provides details to LWCs about Logger&apos;s `SObjects`, using `@AuraEnabled` properties

---

### Methods

#### `getLogEntryEventSchema()` → `SObjectSchema`

Provides schema details about the the platform event object `LogEntryEvent__e`

##### Return

**Type**

SObjectSchema

**Description**

An instance of `LoggerSObjectMetadata.SObjectSchema` for the platform event `LogEntryEvent__e`

#### `getLoggerSettingsSchema()` → `SObjectSchema`

Provides schema details about the the custom settings object `LoggerSettings__c`

##### Return

**Type**

SObjectSchema

**Description**

An instance of `LoggerSObjectMetadata.SObjectSchema` for the platform event `LoggerSettings__c`

---

### Inner Classes

#### LoggerSObjectMetadata.FieldSchema class

Inner class for `SObjectField` details to LWCs, using `@AuraEnabled` properties

---

##### Properties

###### `apiName` → `String`

###### `inlineHelpText` → `String`

###### `label` → `String`

###### `localApiName` → `String`

###### `type` → `String`

---

#### LoggerSObjectMetadata.SObjectSchema class

Inner class for `SObject` details to LWCs, using `@AuraEnabled` properties

---

##### Properties

###### `apiName` → `String`

###### `fields` → `Map<String, FieldSchema>`

###### `label` → `String`

###### `labelPlural` → `String`

###### `localApiName` → `String`

###### `namespacePrefix` → `String`

---
14 changes: 14 additions & 0 deletions docs/apex/logger-engine/Logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -3244,6 +3244,20 @@ SaveMethod

The enum value of Logger.SaveMethod to use for any calls to saveLog() in the current transaction

#### `getScenario()` → `String`

Returns the scenario name for the current transaction - this is stored in `LogEntryEvent__e.Scenario__c` and `Log__c.Scenario__c`, and can be used to filter &amp; group logs

##### Return

**Type**

String

**Description**

The value currently set as the current transaction&apos;s scenario

#### `getTransactionId()` → `String`

Returns the unique ID for a particular transaction, stored in Log**c.TransactionId**c
Expand Down
Loading