Skip to content

fix CSVBuilder not respecting global ":humanize_name" setting#5800

Merged
javierjulio merged 3 commits intoactiveadmin:masterfrom
HappyKadaver:fix_csv_builder_humanize_name_global_default
Jul 25, 2019
Merged

fix CSVBuilder not respecting global ":humanize_name" setting#5800
javierjulio merged 3 commits intoactiveadmin:masterfrom
HappyKadaver:fix_csv_builder_humanize_name_global_default

Conversation

@HappyKadaver
Copy link
Contributor

@HappyKadaver HappyKadaver commented Jul 8, 2019

fix CSVBuilder not respecting default ":humanize_name" setting in "ActiveAdmin.application.csv_options"

change two test cases to allow for extra options in CSVBuilder as long as it assumes any options directly passed to the initializer
fixes #5799

If someone can tell me how I can set ActiveAdmin.application.csv_options for a single spec without affecting other specs I will add some tests for this.

@deivid-rodriguez
Copy link
Member

@HappyKadaver We have setup for that in https://github.com/activeadmin/activeadmin/blob/97e48ece25b5ea534183f47acc68dda8f9e58e76/features/index/format_as_csv.feature, so you can probably add a scenario in there.

Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

Just some tiny comments, but it looks great otherwise!

Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

Can you also add a new changelog entry for this bug fix? Thanks!!

@HappyKadaver HappyKadaver force-pushed the fix_csv_builder_humanize_name_global_default branch 5 times, most recently from 8966a72 to 6ce06c8 Compare July 13, 2019 10:19
Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

Just a tiny comment.

@HappyKadaver HappyKadaver force-pushed the fix_csv_builder_humanize_name_global_default branch from 6ce06c8 to b6e8487 Compare July 24, 2019 16:30
Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

Last final request!

@HappyKadaver HappyKadaver force-pushed the fix_csv_builder_humanize_name_global_default branch from b6e8487 to 3bf12d9 Compare July 25, 2019 10:26
Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

Oh, sorry. This didn't make it to the 2.2.0 release in the end, so we need to move the changelog entry under a new ### Bug Fixes section under ## Unreleased.

@HappyKadaver HappyKadaver force-pushed the fix_csv_builder_humanize_name_global_default branch from 3bf12d9 to 975560b Compare July 25, 2019 11:22
@HappyKadaver
Copy link
Contributor Author

🤣 I hope I didn't take to much of your time. You have a really nice testing setup. The actual tests on the Changelog did catch me off guard but now we should have it. 😆

@javierjulio
Copy link
Member

Looks great. 👌🏻 Thanks to you both for finishing this! ❤️ We'll get this in now.

@javierjulio javierjulio merged commit 6b58aa4 into activeadmin:master Jul 25, 2019
varyonic pushed a commit to activeadmin-rails/activeadmin-rails that referenced this pull request Nov 4, 2021
add features testing global csv humanize_name setting
varyonic pushed a commit to activeadmin-rails/activeadmin-rails that referenced this pull request Nov 4, 2021
add features testing global csv humanize_name setting
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.

CSV Export not using global humanize_name correctly

3 participants