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
Uh oh!
There was an error while loading. Please reload this page.
-
LoggerSettings__chave been added -IsSavingEnabled__candIsPlatformEventStorageEnabled__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 hastruespecified. 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__cLoggerSettings__cfields 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__eplatform events are transformed & stored in the custom objectsLog__candLogEntry__c(whenIsSavingEnabled__c== true).LoggerSettings__c.DefaultLogScenario__cLogger.getScenario()OwnerIdfor newLog__crecords 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__crecord will simply be assigned to the user that generated the logLoggerSettings__cfieldStripInaccessibleRecordFields__ctoIsRecordFieldStrippingEnabled__cfor a consistent field naming conventionloggerSettingsandlogEntryEventStreamto 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, andPicklistEntrymetadata (including details about a namespace, when applicable).Log__c.ApiVersion__cfor all 3 API versions in calendar year 2022New Features for
Log__cQuick Action "Open Viewer" (formerly "View JSON")logJSONback tologViewer. This change only impacts the unlocked package.logViewerlwc 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 tracelogViewerto export the selected content to a fileBugfixes
LoggerTestUtilsto 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-testsfolder 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>LoggerEmailUtilsto 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 forApexSOQLInjectionPipeline / 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.devDependenciesinpackage.jsonto handle some dependabot alerts"ancestorVersion": "HIGHEST"in the managed package'ssfdx-project.jsonfileNew Managed Package Release
v4.6.0andv4.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