Skip to content

Commit

Permalink
Customized search layout fields for all custom objects (#444)
Browse files Browse the repository at this point in the history
* Closed #443 by updating all custom objects to have relevant fields on the search results layouts

* Also added descriptions to all of the custom objects
  • Loading branch information
jongpie authored Jan 23, 2023
1 parent c7b5e97 commit 4ca9535
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

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

## Unlocked Package - v4.9.9
## Unlocked Package - v4.9.10

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

## Managed Package - v4.9.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
<allowInChatterGroups>true</allowInChatterGroups>
<compactLayoutAssignment>SYSTEM</compactLayoutAssignment>
<deploymentStatus>Deployed</deploymentStatus>
<description
>Used by Nebula Logger as a junction object to represent a unique relationship between a LogEntry__c record and a LoggerTag__c record</description>
<enableActivities>true</enableActivities>
<enableBulkApi>true</enableBulkApi>
<enableFeeds>true</enableFeeds>
Expand All @@ -172,15 +174,21 @@
<customTabListAdditionalFields>LogEntry__c</customTabListAdditionalFields>
<customTabListAdditionalFields>Tag__c</customTabListAdditionalFields>
<excludedStandardButtons>Accept</excludedStandardButtons>
<excludedStandardButtons>Import</excludedStandardButtons>
<excludedStandardButtons>PrintableListView</excludedStandardButtons>
<excludedStandardButtons>Import</excludedStandardButtons>
<lookupDialogsAdditionalFields>LogEntry__c</lookupDialogsAdditionalFields>
<lookupDialogsAdditionalFields>Tag__c</lookupDialogsAdditionalFields>
<lookupPhoneDialogsAdditionalFields>LogEntry__c</lookupPhoneDialogsAdditionalFields>
<lookupPhoneDialogsAdditionalFields>Tag__c</lookupPhoneDialogsAdditionalFields>
<searchFilterFields>NAME</searchFilterFields>
<searchFilterFields>LogEntry__c</searchFilterFields>
<searchFilterFields>Tag__c</searchFilterFields>
<searchResultsAdditionalFields>LoggedByUsernameLink__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>LogLink__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>LogEntryTimestamp__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>LogEntry__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>LogEntryOrigin__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>Tag__c</searchResultsAdditionalFields>
</searchLayouts>
<sharingModel>ControlledByParent</sharingModel>
<visibility>Public</visibility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
<allowInChatterGroups>true</allowInChatterGroups>
<compactLayoutAssignment>LogEntryCompactLayout</compactLayoutAssignment>
<deploymentStatus>Deployed</deploymentStatus>
<description
>Used by Nebula Logger to represent a single log message within a transaction - log entries can be generated via Apex, Flow, Process Builder, Lighting Web Components, and Aura Components.</description>
<enableActivities>true</enableActivities>
<enableBulkApi>true</enableBulkApi>
<enableFeeds>true</enableFeeds>
Expand All @@ -169,10 +171,10 @@
<searchLayouts>
<excludedStandardButtons>New</excludedStandardButtons>
<excludedStandardButtons>Accept</excludedStandardButtons>
<excludedStandardButtons>PrintableListView</excludedStandardButtons>
<excludedStandardButtons>ChangeOwner</excludedStandardButtons>
<excludedStandardButtons>Import</excludedStandardButtons>
<excludedStandardButtons>MassChangeOwner</excludedStandardButtons>
<excludedStandardButtons>ChangeOwner</excludedStandardButtons>
<excludedStandardButtons>PrintableListView</excludedStandardButtons>
<lookupDialogsAdditionalFields>Log__c</lookupDialogsAdditionalFields>
<lookupDialogsAdditionalFields>Timestamp__c</lookupDialogsAdditionalFields>
<lookupDialogsAdditionalFields>LoggingLevelWithImage__c</lookupDialogsAdditionalFields>
Expand All @@ -181,6 +183,13 @@
<lookupPhoneDialogsAdditionalFields>Timestamp__c</lookupPhoneDialogsAdditionalFields>
<lookupPhoneDialogsAdditionalFields>LoggingLevelWithImage__c</lookupPhoneDialogsAdditionalFields>
<lookupPhoneDialogsAdditionalFields>Message__c</lookupPhoneDialogsAdditionalFields>
<searchResultsAdditionalFields>LoggedByUsernameLink__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>Timestamp__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>Log__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>LoggingLevelWithImage__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>Message__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>OriginType__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>OriginLocation__c</searchResultsAdditionalFields>
</searchLayouts>
<sharingModel>ControlledByParent</sharingModel>
<visibility>Public</visibility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
<allowInChatterGroups>true</allowInChatterGroups>
<compactLayoutAssignment>LogCompactLayout</compactLayoutAssignment>
<deploymentStatus>Deployed</deploymentStatus>
<description>Used by Nebula Logger to unify all log entries generated in a single transaction</description>
<enableActivities>true</enableActivities>
<enableBulkApi>true</enableBulkApi>
<enableFeeds>true</enableFeeds>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
<allowInChatterGroups>true</allowInChatterGroups>
<compactLayoutAssignment>LoggerScenarioCompactLayout</compactLayoutAssignment>
<deploymentStatus>Deployed</deploymentStatus>
<description
>Used by Nebula Logger to store unique scenarios (text/String) that can be used to identify Log__c and LogEntry__c records via the lookup fields Log__c.TransactionScenario__c and LogEntry__c.EntryScenario__c</description>
<enableActivities>true</enableActivities>
<enableBulkApi>true</enableBulkApi>
<enableFeeds>true</enableFeeds>
Expand All @@ -169,8 +171,8 @@
<pluralLabel>Logger Scenarios</pluralLabel>
<searchLayouts>
<excludedStandardButtons>Accept</excludedStandardButtons>
<excludedStandardButtons>PrintableListView</excludedStandardButtons>
<excludedStandardButtons>Import</excludedStandardButtons>
<excludedStandardButtons>PrintableListView</excludedStandardButtons>
<searchResultsAdditionalFields>UniqueId__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>OWNER.ALIAS</searchResultsAdditionalFields>
<searchResultsAdditionalFields>CREATED_DATE</searchResultsAdditionalFields>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@
<allowInChatterGroups>true</allowInChatterGroups>
<compactLayoutAssignment>LoggerTagCompactLayout</compactLayoutAssignment>
<deploymentStatus>Deployed</deploymentStatus>
<description>Custom tags used by Logger for tagging Log__c and LogEntry__c records</description>
<description
>Used by Nebula Logger for storing unique tags (text/String) that can be associated with LogEntry__c records via the junction object LogEntryTag__c</description>
<enableActivities>true</enableActivities>
<enableBulkApi>true</enableBulkApi>
<enableFeeds>true</enableFeeds>
Expand All @@ -172,15 +173,20 @@
<customTabListAdditionalFields>OWNER.ALIAS</customTabListAdditionalFields>
<customTabListAdditionalFields>TotalLogEntries__c</customTabListAdditionalFields>
<excludedStandardButtons>Accept</excludedStandardButtons>
<excludedStandardButtons>Import</excludedStandardButtons>
<excludedStandardButtons>PrintableListView</excludedStandardButtons>
<excludedStandardButtons>Import</excludedStandardButtons>
<lookupDialogsAdditionalFields>OWNER.ALIAS</lookupDialogsAdditionalFields>
<lookupDialogsAdditionalFields>TotalLogEntries__c</lookupDialogsAdditionalFields>
<lookupPhoneDialogsAdditionalFields>OWNER.ALIAS</lookupPhoneDialogsAdditionalFields>
<lookupPhoneDialogsAdditionalFields>TotalLogEntries__c</lookupPhoneDialogsAdditionalFields>
<searchFilterFields>NAME</searchFilterFields>
<searchFilterFields>OWNER.ALIAS</searchFilterFields>
<searchFilterFields>TotalLogEntries__c</searchFilterFields>
<searchResultsAdditionalFields>TotalLogEntries__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>UniqueId__c</searchResultsAdditionalFields>
<searchResultsAdditionalFields>OWNER.ALIAS</searchResultsAdditionalFields>
<searchResultsAdditionalFields>CREATED_DATE</searchResultsAdditionalFields>
<searchResultsAdditionalFields>LAST_UPDATE</searchResultsAdditionalFields>
</searchLayouts>
<sharingModel>Read</sharingModel>
<visibility>Public</visibility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ private class LoggerSettingsController_Tests {
@IsTest
static void it_should_return_user_search_results_list_when_matches_found() {
// Using lastName (required field) instead of the optional field firstName
String searchTerm = '%' + System.UserInfo.getLastName() + '%';
String searchTerm = '%' + System.UserInfo.getLastName() + '%';
Map<Id, User> expectedResultsById = new Map<Id, User>(
[SELECT Id, Name, Username, SmallPhotoUrl FROM User WHERE Name LIKE :searchTerm OR Username LIKE :searchTerm]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private class Logger_Tests {
}

@IsTest
static void it_should_settings_default_field_values_when_organization_is_a_sandbox() {
static void it_should_properly_set_default_field_values_for_settings_when_organization_is_a_sandbox() {
Organization mockOrganization = (Schema.Organization) LoggerMockDataCreator.setReadOnlyField(new Organization(), Schema.Organization.IsSandbox, true);
System.Assert.isTrue(mockOrganization.IsSandbox);
MockLoggerEngineDataSelector mockSelector = new MockLoggerEngineDataSelector();
Expand All @@ -65,7 +65,7 @@ private class Logger_Tests {
}

@IsTest
static void it_should_settings_default_field_values_when_organization_is_not_a_sandbox() {
static void it_should_properly_set_default_field_values_for_settings_when_organization_is_not_a_sandbox() {
Organization mockOrganization = (Schema.Organization) LoggerMockDataCreator.setReadOnlyField(new Organization(), Schema.Organization.IsSandbox, false);
System.Assert.isFalse(mockOrganization.IsSandbox);
MockLoggerEngineDataSelector mockSelector = new MockLoggerEngineDataSelector();
Expand All @@ -86,7 +86,7 @@ private class Logger_Tests {
}

@IsTest
static void it_should_settings_default_field_values_when_querying_organization_synchronously_is_disabled() {
static void it_should_properly_set_default_field_values_for_settings_when_querying_organization_synchronously_is_disabled() {
LoggerParameter.setMock(new LoggerParameter__mdt(DeveloperName = 'QueryOrganizationDataSynchronously', Value__c = String.valueOf(false)));
System.Assert.isFalse(LoggerParameter.QUERY_ORGANIZATION_DATA_SYNCHRONOUSLY);
LoggerSettings__c expectedSettings = (LoggerSettings__c) LoggerSettings__c.SObjectType.newSObject(null, true);
Expand All @@ -97,6 +97,7 @@ private class Logger_Tests {

LoggerSettings__c returnedSettings = Logger.getUserSettings();

System.Assert.areEqual(0, System.Limits.getQueries());
System.Assert.areEqual(expectedSettings, returnedSettings);
System.Assert.isNull(returnedSettings.Id);
List<LoggerSettings__c> existingSettings = [SELECT Id FROM LoggerSettings__c];
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.9.9",
"version": "4.9.10",
"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
7 changes: 4 additions & 3 deletions sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"package": "Nebula Logger - Core",
"path": "./nebula-logger/core",
"definitionFile": "./config/scratch-orgs/base-scratch-def.json",
"versionNumber": "4.9.9.NEXT",
"versionName": "Scenario and Tag Storage Configurations",
"versionDescription": "Added new CMDT records LoggerParameter__mdt.NormalizeScenarioData and LoggerParameter__mdt.NormalizeTagData to control if scenarios & tags are stored in custom objects (default) or text fields (denormalized data)",
"versionNumber": "4.9.10.NEXT",
"versionName": "Added search result fields for all custom objects",
"versionDescription": "Added meaningful fields to each of the included objects' search results layouts - previously, several objects were only showing the Name field. Descriptions have also been added to all custom objects.",
"releaseNotesUrl": "https://github.com/jongpie/NebulaLogger/releases",
"unpackagedMetadata": {
"path": "./nebula-logger/extra-tests"
Expand Down Expand Up @@ -153,6 +153,7 @@
"Nebula Logger - Core@4.9.7-new-log-field-hascomments": "04t5Y0000023R9yQAE",
"Nebula Logger - Core@4.9.8-test-coverage-improvements": "04t5Y0000023RBBQA2",
"Nebula Logger - Core@4.9.9-scenario-and-tag-storage-configurations": "04t5Y0000023RBpQAM",
"Nebula Logger - Core@4.9.10-added-search-result-fields-for-all-custom-objects": "04t5Y0000015mv8QAA",
"Nebula Logger - Plugin - Async Failure Additions": "0Ho5Y000000blO4SAI",
"Nebula Logger - Plugin - Async Failure Additions@1.0.0": "04t5Y0000015lhiQAA",
"Nebula Logger - Plugin - Async Failure Additions@1.0.1": "04t5Y0000015lhsQAA",
Expand Down

0 comments on commit 4ca9535

Please sign in to comment.