Skip to content

Commit

Permalink
Bumped package version number & name
Browse files Browse the repository at this point in the history
  • Loading branch information
jongpie committed Sep 25, 2023
1 parent 0a5adc2 commit 147d128
Show file tree
Hide file tree
Showing 8 changed files with 141 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.

## Unlocked Package - v4.11.5
## Unlocked Package - v4.11.6

[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001HZdZQAW)
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001HZdZQAW)
Expand Down
6 changes: 2 additions & 4 deletions docs/apex/Logger-Engine/Logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -3550,8 +3550,6 @@ String

The current API version, in the format `v00.0`

#### `getPackageId()``String`

#### `getParentLogTransactionId()``String`

Returns the transaction ID value that will be used to relate the current transaction's log to a parent log
Expand Down Expand Up @@ -5808,12 +5806,12 @@ A string containing the UUID value.

###### `childJobId``String`

###### `jobId``String`

###### `key``String`

###### `name``String`

###### `parentJobId``String`

###### `triggerId``String`

###### `type``String`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<flexiPageRegions>
<itemInstances>
Expand Down Expand Up @@ -548,6 +548,12 @@
</fieldInstanceProperties>
<fieldItem>Record.AsyncContextParentJobId__c</fieldItem>
<identifier>RecordAsyncContextParentJobId_cField</identifier>
<visibilityRule>
<criteria>
<leftValue>{!Record.AsyncContextParentJobId__c}</leftValue>
<operator>NE</operator>
</criteria>
</visibilityRule>
</fieldInstance>
</itemInstances>
<itemInstances>
Expand All @@ -558,6 +564,12 @@
</fieldInstanceProperties>
<fieldItem>Record.AsyncContextChildJobId__c</fieldItem>
<identifier>RecordAsyncContextChildJobId_cField</identifier>
<visibilityRule>
<criteria>
<leftValue>{!Record.AsyncContextChildJobId__c}</leftValue>
<operator>NE</operator>
</criteria>
</visibilityRule>
</fieldInstance>
</itemInstances>
<itemInstances>
Expand All @@ -568,6 +580,12 @@
</fieldInstanceProperties>
<fieldItem>Record.AsyncContextTriggerId__c</fieldItem>
<identifier>RecordAsyncContextTriggerId_cField</identifier>
<visibilityRule>
<criteria>
<leftValue>{!Record.AsyncContextChildJobId__c}</leftValue>
<operator>NE</operator>
</criteria>
</visibilityRule>
</fieldInstance>
</itemInstances>
<name>Facet-22c5f237-327a-4fc9-80b3-8305ba0accab</name>
Expand Down Expand Up @@ -1061,9 +1079,26 @@
<componentName>flexipage:fieldSection</componentName>
<identifier>flexipage_fieldSection7</identifier>
<visibilityRule>
<booleanFilter>1 OR 2 OR 3 OR 4</booleanFilter>
<criteria>
<leftValue>{!Record.AsyncContextChildJobId__c}</leftValue>
<operator>NE</operator>
<leftValue>{!Record.AsyncContextType__c}</leftValue>
<operator>EQUAL</operator>
<rightValue>Database.BatchableContext</rightValue>
</criteria>
<criteria>
<leftValue>{!Record.AsyncContextType__c}</leftValue>
<operator>EQUAL</operator>
<rightValue>System.FinalizerContext</rightValue>
</criteria>
<criteria>
<leftValue>{!Record.AsyncContextType__c}</leftValue>
<operator>EQUAL</operator>
<rightValue>System.QueueableContext</rightValue>
</criteria>
<criteria>
<leftValue>{!Record.AsyncContextType__c}</leftValue>
<operator>EQUAL</operator>
<rightValue>System.SchedulableContext</rightValue>
</criteria>
</visibilityRule>
</componentInstance>
Expand Down Expand Up @@ -1204,10 +1239,98 @@
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>active</name>
<value>true</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>body</name>
<value>Facet-0f2e71a4-ac08-400c-8f11-6c6e44a085cb</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Log Entries</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
<identifier>customTab</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>body</name>
<value>Facet-82b9e667-1aa4-42ed-8a09-ac611351ece9</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Standard.Tab.detail</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
<identifier>detailTab</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>body</name>
<value>Facet-f428f9bd-8335-4c6e-994c-9fb022741a70</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>History</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
<identifier>customTab2</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>body</name>
<value>Facet-0bb71d38-e0b0-4931-838e-b2254d40c2ea</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Related Logs</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
<identifier>customTab3</identifier>
</componentInstance>
</itemInstances>
<name>Facet-4be58932-ea47-4516-80d6-14dedd7c1fc0</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>numberOfTopicsToDisplay</name>
<value>10</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>searchHint</name>
<value>Type a topic name and press Enter.</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Topics</value>
</componentInstanceProperties>
<componentName>forceChatter:topicsOnRecordWrapper</componentName>
<identifier>forceChatter_topicsOnRecordWrapper</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>tabs</name>
<value>Facet-4be58932-ea47-4516-80d6-14dedd7c1fc0</value>
</componentInstanceProperties>
<componentName>flexipage:tabset</componentName>
<identifier>flexipage_tabset</identifier>
</componentInstance>
</itemInstances>
<name>main</name>
<type>Region</type>
</flexiPageRegions>
Expand Down
12 changes: 6 additions & 6 deletions nebula-logger/core/main/logger-engine/classes/Logger.cls
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
global with sharing class Logger {
// There's no reliable way to get the version number dynamically in Apex
@TestVisible
private static final String CURRENT_VERSION_NUMBER = 'v4.11.5';
private static final String CURRENT_VERSION_NUMBER = 'v4.11.6';
private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG;
private static final Set<String> IGNORED_APEX_CLASSES = initializeIgnoredApexClasses();
private static final List<LogEntryEventBuilder> LOG_ENTRIES_BUFFER = new List<LogEntryEventBuilder>();
Expand Down Expand Up @@ -3357,7 +3357,7 @@ global with sharing class Logger {

if (currentAsyncContext != null) {
logEntryEvent.AsyncContextChildJobId__c = currentAsyncContext.childJobId;
logEntryEvent.AsyncContextParentJobId__c = currentAsyncContext.jobId;
logEntryEvent.AsyncContextParentJobId__c = currentAsyncContext.parentJobId;
logEntryEvent.AsyncContextTriggerId__c = currentAsyncContext.triggerId;
logEntryEvent.AsyncContextType__c = currentAsyncContext.type;
}
Expand Down Expand Up @@ -3488,23 +3488,23 @@ global with sharing class Logger {
// Inner class for tracking details about the current transaction's async context
private class AsyncContext {
public final String type;
public final String jobId;
public final String parentJobId;
public final String childJobId;
public final String triggerId;

public AsyncContext(Database.BatchableContext batchableContext) {
this.childJobId = batchableContext?.getChildJobId();
this.jobId = batchableContext?.getJobId();
this.parentJobId = batchableContext?.getJobId();
this.type = Database.BatchableContext.class.getName();
}

public AsyncContext(System.FinalizerContext finalizerContext) {
this.jobId = finalizerContext?.getAsyncApexJobId();
this.parentJobId = finalizerContext?.getAsyncApexJobId();
this.type = System.FinalizerContext.class.getName();
}

public AsyncContext(System.QueueableContext queueableContext) {
this.jobId = queueableContext?.getJobId();
this.parentJobId = queueableContext?.getJobId();
this.type = System.QueueableContext.class.getName();
}

Expand Down
2 changes: 1 addition & 1 deletion nebula-logger/core/main/logger-engine/lwc/logger/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { LightningElement, api } from 'lwc';
import { createLoggerService } from './loggerService';

const CURRENT_VERSION_NUMBER = 'v4.11.5';
const CURRENT_VERSION_NUMBER = 'v4.11.6';

export default class Logger extends LightningElement {
#loggerService = createLoggerService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<businessStatus>Active</businessStatus>
<complianceGroup>None</complianceGroup>
<externalId>false</externalId>
<label>Async Context Async Child Job ID</label>
<label>Async Context Child Job ID</label>
<length>18</length>
<required>false</required>
<securityClassification>Confidential</securityClassification>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nebula-logger",
"version": "4.11.5",
"version": "4.11.6",
"description": "The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.",
"author": "Jonathan Gillespie",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"package": "Nebula Logger - Core",
"path": "./nebula-logger/core",
"definitionFile": "./config/scratch-orgs/base-scratch-def.json",
"versionNumber": "4.11.5.NEXT",
"versionName": "Custom Index for Log Retention Date",
"versionDescription": "Added a custom index to Log__c.LogRetentionDate__c to help speed up the job LogBatchPurger in orgs with large data volumes (LDV)",
"versionNumber": "4.11.6.NEXT",
"versionName": "New Method Logger.setAsyncContext()",
"versionDescription": "Added a method Logger.setAsyncContext + new fields on LogEntryEvent__e and Log__c to track the current transacation's async context",
"releaseNotesUrl": "https://github.com/jongpie/NebulaLogger/releases",
"unpackagedMetadata": {
"path": "./nebula-logger/extra-tests"
Expand Down

0 comments on commit 147d128

Please sign in to comment.