feat: partition all source exports by year and enable nightly builds
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user