-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Conversation
…le, using all possible translated names to ensure it works, regardless of the current user's specified language
…g namespaced object & fields
…packages reported by dependabot in GitHub
…retrieving fields (including namespace) by creating new file loggerSettingsSchema.js file and adding new _loadField function to consolidate field describe & field value getters. Also improved error handling a bit - not all errors have error.body.message, some use error.message
…) - I'm not 100% sure that I want to use them, though I may re-add them later
…try> instead of just List<PicklistEntry> I typically include the Schema namespace anyway, not sure why I didn't previously do so in this particular example
e6403b0
to
2e635db
Compare
59a2d93
to
41d2e2e
Compare
… in apexdocs package
a4c2424
to
bd5b4c2
Compare
f669d59
to
573ccc0
Compare
573ccc0
to
792f0a3
Compare
1dca8da
to
3e9b549
Compare
735b7d0
to
f6b95e2
Compare
…ViewJSON" quickAction to "OpenViewer", and added tabs to logViewer lwc to provide tabs for both JSON (existing) and log file (new), plus a new download button to export the content to a file
f6b95e2
to
362681b
Compare
…package versions can be upgraded, created new package versions for both the unlocked & managed packages
Codecov Report
@@ Coverage Diff @@
## main #274 +/- ##
==========================================
- Coverage 95.80% 95.32% -0.49%
==========================================
Files 30 33 +3
Lines 3173 3422 +249
Branches 63 85 +22
==========================================
+ Hits 3040 3262 +222
- Misses 132 156 +24
- Partials 1 4 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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
file