February 26th, 2025
What’s New for You #
Improved #
Admin Portal
Improvements to the Admin Portal have been made, including better filtering and sorting options, enhanced consistency across sections, and updates to labels and navigation. These changes aim to improve the overall user experience and streamline portal management.
New Rules #
ServiceNow – Remove unused services from client script
Rule ID: SN-AVOID-INJECT-NOT-USED-SERVICE – Prevents injecting unused services, such as AngularJS ($scope, $location) or Service Portal services (spUtil), in client controllers to avoid unnecessary performance overhead. If these services are not needed, they should be removed to improve efficiency.
Salesforce – OperationWithHighCostInLoop
Rule ID: SF-AVOID-OPERATION-WITH-HIGH-COST-IN-LOOP – Prevents calling high-cost performance methods inside loops, as repeated calls can slow down application performance, especially in large organizations. To optimize efficiency, extract these method calls outside the loop and execute them only once.
Salesforce – AvoidNonRestrictiveQueries
Rule ID: SF-AVOID-NON-RESTRICTIVE-QUERIES – Prevents using unfiltered SOQL or SOSL queries, which can retrieve excessive data, leading to governor limit exceptions and impacting application stability. To optimize performance, always apply filters to limit the data retrieved.
Salesforce – QueueableWithoutFinalizer
Rule ID: SF-AVOID-QUEUEABLE-WITHOUT-FINALIZER – Prevents using the Queueable interface without a Finalizer, ensuring proper error recovery. Without a Finalizer, failures in Queueable actions can cause unhandled errors. To improve reliability, attach a Finalizer using System.attachFinalizer(Finalizer f).
Fixed #
-
[User form in Admin Portal] – Selected instances for the Project User role were not displayed correctly when editing a user. This issue has now been resolved.
-
[Rule Application Update] – The rule “Update Sets should not include images without review” was not triggering correctly. It has been adjusted to apply only to Update Set scans.
-
[Export to XLS] – The export feature failed due to token expiration. This has been addressed to ensure successful exports.
-
[Executive View Filtering] -The “Write Off = No” filter in the Issues Grid was not working correctly, displaying both written-off and non-written-off issues. It now properly filters out written-off issues.
-
[Ruleset Adjustment] – The rule “Client Scripts should check for isLoading and return” incorrectly flagged some scripts. This issue has been fixed.
Under the Hood #
Security Enhancements #
-
This release includes minor security improvements.
Internal Enhancements #
-
We have resolved various internal issues to enhance system stability further and optimize the user experience.