Bugfix: Apex code snippets auto-truncated
Core Unlocked Package Changes
Fixed #756 by truncating the Apex code snippets that are saved in the LogEntry__c
fields OriginSourceSnippet__c
and ExceptionSourceSnippet__c
- Previously, the code snippet was only limited by the number of lines of code - but for Apex classes & triggers that have very looooooooooooong code on some lines, the code snippet could cause the JSON value to exceed the corresponding field's max length
- Now, the code snippet only grabs the first 1,500 characters - both fields are set to a max of 2,000 characters, allowing 500 characters for the remaining JSON data
Installation Info
Core Unlocked Package - no namespace
Full Changelog: v4.14.8...v4.14.9
- SF CLI:
sf package install --wait 20 --security-type AdminsOnly --package 04t5Y0000015oSQQAY
- SFDX CLI:
sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y0000015oSQQAY
- Sandbox: https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015oSQQAY
- Production: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015oSQQAY