mirror of
https://github.com/we-promise/sure.git
synced 2026-05-28 15:04:57 +00:00
feat(imports): verify Sure NDJSON import readback (#1869)
* feat(imports): verify Sure NDJSON readback * fix(imports): tighten Sure readback verification * fix(imports): polish Sure verification review nits
This commit is contained in:
@@ -1733,6 +1733,72 @@ components:
|
||||
unassigned_mappings_count:
|
||||
type: integer
|
||||
minimum: 0
|
||||
ImportVerificationReadback:
|
||||
type: object
|
||||
description: SureImport only. Expected NDJSON counts compared to family-scoped
|
||||
database readback after publish.
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
enum:
|
||||
- not_verified
|
||||
- matched
|
||||
- mismatch
|
||||
- failed
|
||||
- reverted
|
||||
checked_at:
|
||||
type: string
|
||||
format: date-time
|
||||
nullable: true
|
||||
expected_record_counts:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: integer
|
||||
before_counts:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: integer
|
||||
after_counts:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: integer
|
||||
actual_delta_counts:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: integer
|
||||
checked_counts:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: integer
|
||||
mismatches:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: object
|
||||
required:
|
||||
- expected
|
||||
- actual
|
||||
properties:
|
||||
expected:
|
||||
type: integer
|
||||
actual:
|
||||
type: integer
|
||||
error:
|
||||
type: string
|
||||
nullable: true
|
||||
ImportVerification:
|
||||
type: object
|
||||
description: SureImport only. Captured at upload and completed after import
|
||||
publish.
|
||||
required:
|
||||
- expected_record_counts
|
||||
- readback
|
||||
properties:
|
||||
expected_record_counts:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: integer
|
||||
readback:
|
||||
"$ref": "#/components/schemas/ImportVerificationReadback"
|
||||
ImportPreflightContent:
|
||||
type: object
|
||||
required:
|
||||
@@ -1975,6 +2041,8 @@ components:
|
||||
"$ref": "#/components/schemas/ImportConfiguration"
|
||||
stats:
|
||||
"$ref": "#/components/schemas/ImportStats"
|
||||
verification:
|
||||
"$ref": "#/components/schemas/ImportVerification"
|
||||
ImportCollection:
|
||||
type: object
|
||||
required:
|
||||
@@ -4753,7 +4821,7 @@ paths:
|
||||
get:
|
||||
summary: Retrieve an import
|
||||
description: Retrieve detailed information about a specific import, including
|
||||
configuration and row statistics.
|
||||
configuration, row statistics, and SureImport readback verification when available.
|
||||
tags:
|
||||
- Imports
|
||||
security:
|
||||
|
||||
Reference in New Issue
Block a user