Skip to main content

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: MGCBallastMaintenanceResponseContract Found and Rows.
NameTypeOptionalDescription
_requestMGCBallastMaintenanceRequestContractNoRequestId 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: MGCBallastMaintenanceResponseContract Found, Repaired, Unchanged and the Rows found.
NameTypeOptionalDescription
_requestMGCBallastMaintenanceRequestContractNoRequestId and CorrelationId.

countBatchGlobalDirectChanges​

Counts the BatchGlobal direct-change audit events. Changes nothing.

  • Visibility: public
  • Returns: MGCBallastMaintenanceResponseContract EventCount.
NameTypeOptionalDescription
_requestMGCBallastMaintenanceRequestContractNoRequestId 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: MGCBallastMaintenanceResponseContract EventCount: how many events were deleted.
NameTypeOptionalDescription
_requestMGCBallastMaintenanceRequestContractNoRequestId and CorrelationId.

findOrphanSnapshots​

Lists every version snapshot row that belongs to no version, across all bundles and companies. Changes nothing.

  • Visibility: public
  • Returns: MGCBallastMaintenanceResponseContract Found and Rows.
NameTypeOptionalDescription
_requestMGCBallastMaintenanceRequestContractNoRequestId 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: MGCBallastMaintenanceResponseContract Found, Purged and Rows.
NameTypeOptionalDescription
_requestMGCBallastMaintenanceRequestContractNoRequestId and CorrelationId.