Skip to content

feat(per): optional grouped CSV layout for ops-learning export (#2274)#2789

Open
Tarekchehahde wants to merge 1 commit into
IFRCGo:developfrom
Tarekchehahde:feat/issue-2274-opslearning-csv-layout
Open

feat(per): optional grouped CSV layout for ops-learning export (#2274)#2789
Tarekchehahde wants to merge 1 commit into
IFRCGo:developfrom
Tarekchehahde:feat/issue-2274-opslearning-csv-layout

Conversation

@Tarekchehahde

Copy link
Copy Markdown

Summary

  • Ops-learning CSV export accepts csv_layout query parameter on ?format=csv requests
    • narrow (default): existing exploded rows via NarrowCSVRenderer
    • grouped: standard wide CSV via PaginatedCSVRenderer
  • Documented parameter in NarrowCSVRenderer docstring

Test plan

  • GET /api/v2/ops-learning/?format=csv — narrow layout unchanged
  • GET /api/v2/ops-learning/?format=csv&csv_layout=grouped — wide/flattened columns
  • Admin export unchanged

Fixes #2274

Made with Cursor

…o#2274)

Add csv_layout query param: narrow (default, exploded rows) or grouped
(standard wide CSV).

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Grouped/nonGrouped CSV output by default

1 participant