Skip to content

mpdigitals/lug-deploy-tracker-sfdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง™ Lug Deploy Tracker (Beta)

Codacy Grade Codacy Coverage

Beta version of a 100% native Salesforce solution to visually track, analyze and review deployment activity over time, complementing Salesforceโ€™s default DeployRequest retention with extended historical tracking.
It also allows you to easily review deployed components, quickly identify failed deployments, access deployment status directly from deployment result records, and gain deeper visibility into your deployment process.


Installation ๐Ÿ“ฅ

You can install Lug Deploy Tracker in your Salesforce org using one of the following links:

Install in Developer Edition Install in Sandbox


๐Ÿ”ง Setup

You must enable one of the following authentication methods before using the app:

Option 1: Session ID authentication ( โš ๏ธ uses Modify All Data permission)

  • Assign the permission set DeployAdminAccessSID to the user.
  • Select โ€œUse Session IDโ€ in the advanced settings.

Option 2: Named Credential authentication (recommended, least privilege)

  • Create a Named Credential for the Tooling API with the proper connected app.
  • Assign the permission set DeployAdminAccessNC to the user.
  • Select the Named Credential in the advanced settings.

๐Ÿ‘‰ How to create a Named Credential

Advance Settings


Overview โœจ

Lug Deploy Tracker is a Salesforce solution designed to track and analyze deployment activity by retrieving DeployRequest data via the Tooling API.

This app is heavily inspired by Nebula Logger โ€” though much simpler and focused on deployment tracking.
Some structural and UI ideas are also borrowed from chat-gpt-sfdc.


Features โš™๏ธ

  • ๐Ÿ” Synchronize DeployRequest records using Tooling API.
  • ๐Ÿ“Š Store detailed results in:
    • DeployResult__c
    • DeployResultComponent__c
    • DeployResultTest__c
  • โฐ Schedule automatic syncs (e.g. every hour).
  • ๐ŸŽ›๏ธ Configure via Lightning Web Components (LWC):
    • Manual sync
    • Schedule settings
    • Advanced options
  • ๐Ÿšฅ Track progress with Platform Events and live progress bar.

Dashboard Example ๐Ÿ“Š

Dashboard


Usage ๐Ÿ–ฅ๏ธ

Manual Synchronization

  • Use the Synchronization Settings tab.
  • Leave โ€œStart Dateโ€ empty to fetch last 30 days.
  • Leave โ€œEnd Dateโ€ empty to fetch up to today.

Synchronization Settings

Scheduled Synchronization

  • Configure start time + frequency (e.g. every 2 hours from 16:00).
  • Next execution is displayed in the form.

Schedule Settings


Visual Results ๐Ÿ”

Deploy Results

Deploy Results

Deploy Result Details

Deploy Result Details

Deploy Result Components

Deploy Result Components

Deploy Result Components Related List

Deploy Result Components Related List

Deploy Result Tests

Deploy Result Tests

Deploy Result Tests Related List

Deploy Result Tests Related List


Architecture Overview ๐Ÿ—๏ธ

Architecture Diagram

LWC Components

  • deploySettingsApp
  • deployHeader
  • deploySyncSettings
  • deployScheduleSettings
  • deployAdvancedSettings
  • deployErrorHandler
  • deployToastService

Apex Classes

Service Layer

  • DeployService
  • DeployScheduleService
  • DeployRequestBatch

Integration Layer

  • DeployToolingClient
  • DeployToolingClientInterface
  • DeployToolingApiMock

Data Access Layer

  • DeploySetupRepository
  • DeployValidator
  • DeployAccessValidator
  • DeployCoreUtils
  • DeployUtils
  • DeployConstants

Data Mapping

  • DeployApiWrapper
  • DeployResultMapper
  • DeployResultComponentMapper
  • DeployResultTestMapper

Platform Events

  • DeployProgress__e

Custom Objects

  • DeployResult__c
  • DeployResultComponent__c
  • DeployResultTest__c

Configuration

  • DeploySetup__c (Custom Setting)

Next Steps ๐Ÿš€

Planned features:

  • โš™๏ธ Partial result handling for large batches
  • ๐Ÿ—‘๏ธ Auto-purge of old records
  • ๐Ÿ“ˆ Visual code/flow coverage metrics
  • ๐Ÿ—‚๏ธ Summary of components and test class errors

Disclaimer โš ๏ธ

This package is provided โ€œas isโ€, with no guarantees. Use at your own risk.


Contact & Feedback ๐Ÿ“ฌ

๐Ÿ“ง develop@mpdigitals.com

About

Lug Deploy Tracker is a native Salesforce app that allows administrators and developers to track, analyze, and review historical deployment activity across their org.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Contributors