Skip to content

Fix open issues: empty exports, N+1 queries, Turbolinks, plural routes - #59

Merged
andreibondarev merged 1 commit into
mainfrom
fix-open-issues
Oct 21, 2026
Merged

andreibondarev merged 1 commit into
mainfrom
fix-open-issues

Conversation

@andreibondarev

Copy link
Copy Markdown
Member

Addresses all currently open issues.

Also enables use_transactional_fixtures in specs so examples don't leak records into each other.

Known, unchanged: find_each ignores the index sort order, so CSVs are always ordered by primary key.

Fixes #49
Fixes #40
Fixes #48
Fixes #26
Closes #30

- Accept a dashboard class or instance in ExporterService and read
  attributes via #attribute_types (#49)
- Preload exported associations and use #size for HasMany to avoid
  N+1 queries (#40)
- Build the export link with url_for(action: :export) so it works for
  models with plural names (#48)
- Disable Turbolinks/Turbo on the export link so the CSV downloads (#26)
- Enable transactional fixtures in specs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant