Skip to content

PM-6619: Sort form reports newest first - #8

Merged
jmgasper merged 1 commit into
developfrom
PM-6619
Oct 20, 2026
Merged

jmgasper merged 1 commit into
developfrom
PM-6619

Conversation

@jmgasper

@jmgasper jmgasper commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What was broken

Form reports and CSV exports listed the oldest submissions first, making recent Let's talk requests difficult to find.

Root cause

The all-revision report explicitly ordered submission timestamps and UUIDs ascending.

What was changed

  • Sort all-revision reports and complete CSV exports by descending submission timestamp, then descending UUID for stable ties.
  • Preserve cursor pagination, inclusive UTC filters, revision-specific endpoints and all exported columns.
  • Document the ordering and companion website changes for UTM and verified member identity. No schema migration is needed.

Any added/updated tests

  • PostgreSQL integration tests cover newest-first pagination across revisions, CSV order and 1,002 equal-timestamp submissions across export batches.
  • The Let's talk integration test verifies authenticated member ID and UTM answers in reports and Kafka, plus null identity for anonymous submissions.
  • Passed after nvm use: pnpm lint, pnpm build, pnpm test (69 tests), and pnpm test:integration (24 tests against disposable PostgreSQL).

Companion PRs: reports layout and website capture. Deploy this API change for newest-first ordering; the website change captures UTM values and authenticated member IDs on new submissions.

What was broken
Form reports and CSV exports listed the oldest submissions first, making recent Let's talk requests difficult to find.

Root cause
The all-revision report explicitly ordered submission timestamps and UUIDs ascending.

What was changed
Order all-revision report and export rows by descending submission timestamp and UUID, preserving cursor pagination, date filters and all export columns. Document the ordering and companion website attribution behavior.

Any added/updated tests
Update PostgreSQL integration coverage for descending pagination across revisions, CSV ordering and stable UUID ties across 1,002 exported rows. Verify authenticated Let's talk submissions retain member ID and UTM answers in reports and Kafka, while anonymous member IDs remain null.

Validation: pnpm lint, pnpm build, pnpm test (69 passed), and pnpm test:integration against disposable PostgreSQL (24 passed), after nvm use.
@jmgasper
jmgasper merged commit 7068938 into develop Oct 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant