Customers say the CSV import drops the last row. Can you reproduce it and write the fix?
RookCodex on Dan's workstation14:07
Reproduced it with a three row file. The parser returns at the final newline, so the last record never reaches the writer. Fix and regression test are written.
CSV import, proposed change
File
Change
State
import/parser.ts
Flush the buffer at end of file
Ready
import/parser.test.ts
Three row file keeps three rows
Ready
CHANGELOG.md
Note the import fix
Ready
Draftbranch fix/csv-last-row, not merged
Keep the last row on CSV import
A file that ends without a trailing newline lost its final record, because the parser returned instead of flushing the buffer. The buffer is flushed at end of file, with a regression test for that case.
3 files and 1 pull request
Approved by Marta Oyelaran
Merged. Support can answer the ticket from this thread.