Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc(export-credit-notes): Refactor services and tests #2963

Merged
merged 5 commits into from
Dec 17, 2024

Conversation

floganz
Copy link
Contributor

@floganz floganz commented Dec 16, 2024

Context

Refactor and preparations to expand existing data export solution with new export types.

Description

Extract common logic into a new BaseCsvService.
Refactor tests.

@floganz floganz self-assigned this Dec 16, 2024
app/models/data_export.rb Show resolved Hide resolved
app/mailers/data_export_mailer.rb Show resolved Hide resolved
Copy link
Collaborator

@vincent-pochet vincent-pochet left a comment

Choose a reason for hiding this comment

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

It looks good, just a comment regarding the record loading as it could result in memory issues

app/services/data_exports/csv/invoice_fees.rb Outdated Show resolved Hide resolved
@floganz floganz force-pushed the misc-refactor-data-export-services branch from 32d13e3 to 0fc7685 Compare December 17, 2024 08:17
Copy link
Collaborator

@vincent-pochet vincent-pochet left a comment

Choose a reason for hiding this comment

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

Nice one!

@floganz floganz merged commit f9817fc into main Dec 17, 2024
6 checks passed
@floganz floganz deleted the misc-refactor-data-export-services branch December 17, 2024 10:01
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.

2 participants