Skip to content

docs: explain dynamic CSV columns - #176

Merged
eitoball merged 1 commit into
masterfrom
eitoball/document-how-to-export-dynamic-and-renamed-colum
Sep 5, 2026
Merged

docs: explain dynamic CSV columns#176
eitoball merged 1 commit into
masterfrom
eitoball/document-how-to-export-dynamic-and-renamed-colum

Conversation

@eitoball

@eitoball eitoball commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Closes #157

Documents an isolated, per-export Comma format for runtime-defined columns and renamed headers. The example materializes fields once, uses __static_column__ for runtime headers, and reads associated values by field key.

Tests: bundle exec rspec spec

Copilot AI lite review requested due to automatic review settings September 5, 2026 09:03
@eitoball
eitoball force-pushed the eitoball/document-how-to-export-dynamic-and-renamed-colum branch from 5098057 to f046f41 Compare September 5, 2026 09:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new documentation example currently performs per-field linear scans for every row, which can mislead users into a slow export pattern for large dynamic datasets.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds README guidance for Comma exports whose columns and headers are determined at runtime, by showing an isolated per-export format that materializes the field list once, generates runtime headers, and reads associated values by field key.

Changes:

  • Document a “Dynamic columns” pattern that isolates a comma format to a per-export row class to avoid cross-export format redefinition.
  • Provide a self-contained example using __static_column__ for runtime header labels and per-field value extraction from associated records.
File summaries
File Description
README.md Adds a new “Dynamic columns” section with an end-to-end example for runtime-defined columns/headers.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md
Copilot AI review requested due to automatic review settings September 5, 2026 09:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is documentation-only and the remaining feedback is minor wording/formatting cleanup rather than correctness or behavior issues.

Review details

Suppressed comments (1)

README.md:147

  • There are three consecutive blank lines here; keep a single blank line between sections to avoid unnecessary vertical whitespace in the README.
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread README.md Outdated
Copilot AI review requested due to automatic review settings September 5, 2026 09:13
@eitoball
eitoball force-pushed the eitoball/document-how-to-export-dynamic-and-renamed-colum branch from f046f41 to e136835 Compare September 5, 2026 09:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Documentation-only change with a minor clarity improvement suggested, but no functional risk to the gem.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread README.md

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Documentation-only change with a self-consistent example that matches the gem’s __static_column__ behavior and addresses the stated issue.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is documentation-only, and the added example aligns with Comma’s actual __static_column__ behavior for headers and row values.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The documentation change aligns with Comma’s extractor behavior and provides a correct, isolated example for runtime-defined columns without introducing code changes.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 5, 2026 10:12
@eitoball
eitoball force-pushed the eitoball/document-how-to-export-dynamic-and-renamed-colum branch from e136835 to 8267b93 Compare September 5, 2026 10:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is documentation-only, the example aligns with Comma’s actual extractor behavior, and prior review concerns appear addressed in the current diff.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@eitoball
eitoball force-pushed the eitoball/document-how-to-export-dynamic-and-renamed-colum branch from 8267b93 to 9225a15 Compare September 5, 2026 10:29
@eitoball
eitoball merged commit 5933d04 into master Sep 5, 2026
72 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.

Document how to export dynamic and renamed columns with Comma DSL

2 participants