feat: partition all source exports by year and enable nightly builds

This commit is contained in:
Aleksandr Meshchryakov
2026-10-22 21:45:29 +02:00
parent 63872e86fe
commit 2002e80196
13 changed files with 672 additions and 87 deletions

View File

@@ -57,3 +57,11 @@ export async function exportSelection(selector: SourceExportFileTicketRequest |
}
return '';
}
import type { SourceExportPart, SourceExportSourceSummary } from './generated/schemas';
export function sourceExportYear(part: SourceExportPart, source: SourceExportSourceSummary): string {
const year: number | null = part.year;
const partitioning: 'year' | 'none' = source.partitioning;
const projections: number | null = source.exported_records_count;
return `${partitioning}:${year ?? 'undated'}:${projections}`;
}