Repository navigation
Removed Chatter dependencies
For years, Nebula Logger has leveraged Chatter's field feed tracking functionality to automatically create Chatter posts for new Log__c and LogEntry__c records. In Salesforce, this can be done in 2 steps:
- Enabling feeds on a custom object, like
Log__c - Enabling feed tracking on a field within that object, such as
Log__c.LoggedBy__c
When deploying metadata/installing packages, Salesforce will gracefully handle orgs with Chatter disabled:
- When Chatter is enabled in the org, the
trackFeedHistorynode in field metadata is used to automatically enable Chatter's feed tracking in the appropriate fields - When Chatter is disabled in the org, the fields still deploy & the
trackFeedHistorynode is ignored/the deployment completes successfully
However, several of the App Builder pages (FlexiPage metadata) in Nebula Logger have been using the standard Chatter components to display the record's Chatter activity. Using these standard components has created a hard dependency on having Chatter enabled - orgs with Chatter disabled have been blocked from installing Nebula Logger.
Given that Nebula Logger's usage of Chatter is very simple (it only has field feed tracking enabled as a convenience - there is no other functionality in Nebula Logger that relies on Chatter), having Chatter disabled should not prevent orgs from utilizing Nebula Logger. As a compromise, this release removes the Chatter components from Nebula Logger's UI, but feed data is still automatically tracked on the backend in orgs that have Chatter enabled.
Core Unlocked Package Changes
Removed Chatter dependencies
- Disabled Chatter in base scratch org file
config/scratch-orgs/base-scratch-def.jsonto help implicitly test in the pipeline that Chatter is not required to deploy/install Nebula Logger- The experience cloud scratch org file
config/scratch-orgs/experience-cloud-scratch-def.jsonwill continue to have Chatter enabled to help test that Chatter being enabled doesn't cause problems either 😅
- The experience cloud scratch org file
- Removed all Chatter components in
FlexiPagemetadata to remove a dependency on Chatter being enabled in orgs - Chatter is no longer required 🥳- No changes have been made to the objects & fields that have Chatter feed tracking enabled (
<trackFeedHistory>true</trackFeedHistory>in the field XML)
- No changes have been made to the objects & fields that have Chatter feed tracking enabled (
Installation Info
Core Unlocked Package - no namespace
Full Changelog: v4.11.3...v4.11.4
- SF CLI:
sf package install --wait 20 --security-type AdminsOnly --package 04t5Y000001HZdPQAW - SFDX CLI:
sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y000001HZdPQAW - Sandbox: https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001HZdPQAW
- Production: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001HZdPQAW