Add v2 snapshot schema validation and import_snapshots command

This commit is contained in:
Alfredo Di Stasio
2026-03-13 14:00:39 +01:00
parent 6aa66807e9
commit eacff3d25e
14 changed files with 844 additions and 16 deletions

View File

@ -8,6 +8,8 @@ class ImportFileInline(admin.TabularInline):
extra = 0
readonly_fields = (
"relative_path",
"source_name",
"snapshot_date",
"status",
"checksum",
"file_size_bytes",
@ -61,6 +63,8 @@ class ImportFileAdmin(admin.ModelAdmin):
"id",
"import_run",
"relative_path",
"source_name",
"snapshot_date",
"status",
"rows_total",
"rows_upserted",
@ -68,10 +72,12 @@ class ImportFileAdmin(admin.ModelAdmin):
"processed_at",
)
list_filter = ("status",)
search_fields = ("relative_path", "checksum", "error_message")
search_fields = ("relative_path", "source_name", "checksum", "error_message")
readonly_fields = (
"import_run",
"relative_path",
"source_name",
"snapshot_date",
"status",
"checksum",
"file_size_bytes",