MGCBallastMaintenanceService
Ballast service for the one-off maintenance jobs (owner decisions 2026-09-30): find and repair version snapshots stored blank by the pre-2026-09-19 copy defect (MGCBallastRepairBlankSnapshots), and count and purge the BatchGlobal direct-change audit events captured before that capture was removed (MGCBallastPurgeBatchGlobalAudit). The same code the jobs run, without their confirmation dialog: the caller's privilege is the confirmation.
Methods
findBlankSnapshots
Lists every version snapshot row stored blank - every field it shares with its live table at the type's default - across all bundles and companies. Changes nothing.
- Visibility:
public - Returns:
MGCBallastMaintenanceResponseContractFound and Rows.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCBallastMaintenanceRequestContract | No | RequestId and CorrelationId. |
repairBlankSnapshots
Refills every blank snapshot row from the live parameter table, as the repair job does; one SnapshotRepaired audit event per refilled row, carrying the request's CorrelationId.
- Visibility:
public - Returns:
MGCBallastMaintenanceResponseContractFound, Repaired, Unchanged and the Rows found.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCBallastMaintenanceRequestContract | No | RequestId and CorrelationId. |
countBatchGlobalDirectChanges
Counts the BatchGlobal direct-change audit events. Changes nothing.
- Visibility:
public - Returns:
MGCBallastMaintenanceResponseContractEventCount.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCBallastMaintenanceRequestContract | No | RequestId and CorrelationId. |
purgeBatchGlobalDirectChanges
Deletes the BatchGlobal direct-change audit events, as the purge job does, and records the deletion as one RetentionCleaned audit event carrying the request's CorrelationId (none when there was nothing to delete).
- Visibility:
public - Returns:
MGCBallastMaintenanceResponseContractEventCount: how many events were deleted.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCBallastMaintenanceRequestContract | No | RequestId and CorrelationId. |
findOrphanSnapshots
Lists every version snapshot row that belongs to no version, across all bundles and companies. Changes nothing.
- Visibility:
public - Returns:
MGCBallastMaintenanceResponseContractFound and Rows.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCBallastMaintenanceRequestContract | No | RequestId and CorrelationId. |
purgeOrphanSnapshots
Deletes every version snapshot row that belongs to no version, as the purge job does without its prompt, and records one RetentionCleaned audit event per table purged, carrying the request's CorrelationId.
- Visibility:
public - Returns:
MGCBallastMaintenanceResponseContractFound, Purged and Rows.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCBallastMaintenanceRequestContract | No | RequestId and CorrelationId. |