fix: export route timeout and nullable lead fields from the branch review
The export routes wait up to 120 s as the design says, instead of the 30 s default. Event names and updatedAt can be null, and a history card for a removed event shows no empty name line. Notes on export paging and on url-less folder modules in the ACL menu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
0593b5379c
commit
29a3f13503
9 files changed
+16
-10
No files matched your search
@@ -50,6 +50,7 @@ final class LeadExport {
|
||||
CellStyle dateStyle = wb.createCellStyle();
|
||||
dateStyle.setDataFormat(wb.getCreationHelper().createDataFormat().getFormat("dd/mm/yyyy"));
|
||||
int r = 1;
|
||||
// ponytail: offset paging over a live ordering, so a capture made mid-export can repeat or skip a row, and each page re-runs the search (about 200 queries at the 20k cap). Upgrade: a larger export page size or keyset paging if exports get slow or volumes grow.
|
||||
for (int p = 0; p * PAGE < total; p++) {
|
||||
Map<String, Object> page = p == 0 ? first : fetch.apply(p);
|
||||
List<Map<String, Object>> rows = page == null || page.get("content") == null ? List.of() : (List<Map<String, Object>>) page.get("content");
|
||||
|
||||
Reference in new issue
Block a user