MGCBallastSnapshotService.compareVersionToLive
Compares a version's stored values with the live parameter tables, in the version's company.
- HTTP method:
POST - Route:
/api/services/MGCBallastServiceGroup/MGCBallastSnapshotService/compareVersionToLive - Service class:
MGCBallastSnapshotService
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCBallastCompareRequestContract | No | Bundle, LegalEntityId (Cust), VersionRecId, and optionally MaxDifferences. |
Returns
MGCBallastCompareResponseContract
Per-table row counts and the differences found.
Security
- Requires privilege
MGCBallastIntegrationServiceView
Data contracts
The data contracts this operation takes and returns, with their members. A member whose type is another data contract links to that contract below.
MGCBallastCompareRequestContract
Request to compare a Ballast version's stored values - with the live parameter tables (compareVersionToLive) or with another version of the same bundle (compareVersions).
| Member | Type | List | Description |
|---|---|---|---|
RequestId | Guid | No | Gets or sets the caller's request identifier; echoed on the response. |
CorrelationId | Guid | No | Gets or sets the identifier that ties this call to others in the same test or integration run. |
Bundle | MGCBallastBundle | No | Gets or sets the bundle: System or Cust. |
LegalEntityId | DataAreaId | No | Gets or sets the company to compare in. Blank uses the caller's current company. |
VersionRecId | RefRecId | No | Gets or sets the version whose values are compared. |
OtherVersionRecId | RefRecId | No | Gets or sets the version to compare with (compareVersions only). |
MaxDifferences | int | No | Gets or sets how many differences to return in detail; zero means 200. All are counted. |
MGCBallastCompareResponseContract
Response for a comparison: one Tables entry per value table in the bundle with its row counts, and the field-level Differences. DifferenceCount counts every difference; Differences lists at most MaxDifferences of them, and Truncated says when there were more.
| Member | Type | List | Description |
|---|---|---|---|
Success | boolean | No | Gets or sets whether the operation completed. False means Message and ErrorCode say why. |
Message | str | No | Gets or sets the outcome in words, including any validation messages the operation raised. |
ErrorCode | str | No | Gets or sets a machine-readable failure class: ValidationFailed, NotFound, LicenseNotValid, PublishNotComplete or Failed. Empty on success. |
RequestId | Guid | No | Gets or sets the caller's request identifier; echoed on the response. |
CorrelationId | Guid | No | Gets or sets the identifier that ties this call to others in the same test or integration run. |
Comparison | str | No | Gets or sets what was compared: VersionToLive or VersionToVersion. |
TableCount | int | No | Gets or sets the number of tables compared. |
DifferenceCount | int | No | Gets or sets the total number of differences found. |
Truncated | boolean | No | Gets or sets whether more differences were found than are listed. |
Tables | List of MGCBallastCompareTableContract | Yes | Gets or sets one entry per table compared. |
Differences | List of MGCBallastCompareDifferenceContract | Yes | Gets or sets the differences found, up to MaxDifferences. |
MGCBallastCompareTableContract
One table in a comparison: its name, the rows on each side and the differences found in it.
| Member | Type | List | Description |
|---|---|---|---|
TableName | str | No | Gets or sets the table: the live table name for VersionToLive, the value table name for VersionToVersion. |
VersionRows | int | No | Gets or sets the rows the version holds for this table. |
ComparedRows | int | No | Gets or sets the rows on the compared side: live rows, or the other version's rows. |
DifferenceCount | int | No | Gets or sets the differences found in this table. |
MGCBallastCompareDifferenceContract
One difference: a field whose value differs between the version and the compared side, or a row present on one side only (FieldName (row)), or a row key held more than once (FieldName (duplicate row key)).
| Member | Type | List | Description |
|---|---|---|---|
TableName | str | No | Gets or sets the table the difference is in. |
RowKey | str | No | Gets or sets the key of the row, its unique key values joined by |; empty for single-row tables. |
FieldName | str | No | Gets or sets the field that differs. |
VersionValue | str | No | Gets or sets the value the version holds. |
ComparedValue | str | No | Gets or sets the value on the compared side. |