New Release v4.7.0 - Spring '22 Release #286
jongpie
announced in
Announcements
Replies: 1 comment 1 reply
-
Amazing release! So many great features, all in one spot 👏👏👏 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
LoggerSettings__c
have been added -IsSavingEnabled__c
andIsPlatformEventStorageEnabled__c
- that will prevent logs from being saved until you update the values. When deploying new checkbox (boolean) fields, Salesforce automatically sets the value tofalse
, even if the field's default value hastrue
specified. You can easily update these values using the tab "Logger Settings", available via the Logger Console app - it's recommended that both fields are set totrue
.New Features for
LoggerSettings__c
LoggerSettings__c
fields to provide control over platform events & custom objectsIsSavingEnabled__c
- when disabled, any calls to Logger.saveLog() are ignored. This allows you to still use Logger for outputting Apex debug statements, but it completely disables saving/publishing of the platform eventLogEntryEvent__e
.IsPlatformEventStorageEnabled__c
- this fields controls ifLogEntryEvent__e
platform events are transformed & stored in the custom objectsLog__c
andLogEntry__c
(whenIsSavingEnabled__c
== true).LoggerSettings__c.DefaultLogScenario__c
Logger.getScenario()
OwnerId
for newLog__c
records via a new settings field,LoggerSettings__c.DefaultLogOwner__c
. This is useful for orgs that assign/manage logs for triage purposes (often done in production environments for managing logs with errors & warnings) and want more control over who is assigned as the log owner. The setting can be configured with 1 of 5 possible valuesLog__c
record will simply be assigned to the user that generated the logLoggerSettings__c
fieldStripInaccessibleRecordFields__c
toIsRecordFieldStrippingEnabled__c
for a consistent field naming conventionloggerSettings
andlogEntryEventStream
to support using a namespace when running in the managed package by introducing a new Apex class,LoggerSObjectMetadata
. This class provides LWCs with info aboutSObject
,SObjectField
, andPicklistEntry
metadata (including details about a namespace, when applicable).Log__c.ApiVersion__c
for all 3 API versions in calendar year 2022New Features for
Log__c
Quick Action "Open Viewer" (formerly "View JSON")logJSON
back tologViewer
. This change only impacts the unlocked package.logViewer
lwc to display tabs for both JSON (existing) and log file (new). The new 'log file' view displays the log's related log entries in a streamlined view that includes each entry's timestamp, logging level, message, and stack tracelogViewer
to export the selected content to a fileBugfixes
LoggerTestUtils
to use the current user's profile in most cases, instead of trying to query for a particular profile. For testing behavior related to profiles without access to Logger, integration tests have been added to theextra-tests
folder that still leverage the 'Standard User' profile in a scratch org, but these tests are not included in the package.List<Schema.PicklistEntry>
instead of justList<PicklistEntry>
LoggerEmailUtils
to check if email deliverability is enabled in the current org prior to attempting to send any emailsString.escapeSingleQuotes()
as a security best practice & to avoid PMD reporting errors forApexSOQLInjection
Pipeline / DevOps
sfdx force:community:create
+ a 2 minute delay, but the async operation is inconsistent in how long it takes to complete. By deploying the site metadata in the pipeline, it becomes a synchronous operation, which should prevent some inconsistent pipeline failures.devDependencies
inpackage.json
to handle some dependabot alerts"ancestorVersion": "HIGHEST"
in the managed package'ssfdx-project.json
fileNew Managed Package Release
v4.6.0
andv4.7.0
. Check out the v4.7.0 Milestone to see all of the new features & bugfixesView v4.7.0 Milestone
View v4.7.0 Full Changelog from v4.6.0
This discussion was created from the release v4.7.0 - Spring '22 Release.
Beta Was this translation helpful? Give feedback.
All reactions