Allow custom column separator for CSV parsing in uploads controller #1470

Merged
acflint merged 2 commits from fix-csv-import into main 2024-11-19 00:31:18 +08:00
acflint commented 2024-11-17 22:54:36 +08:00 (Migrated from github.com)

Fix for this issue: https://github.com/maybe-finance/maybe/issues/1462

csv_valid? wasn't using the submitted col_sep argument, so semicolon separated CSVs were failing to be validated.

Fix for this issue: https://github.com/maybe-finance/maybe/issues/1462 `csv_valid?` wasn't using the submitted `col_sep` argument, so semicolon separated CSVs were failing to be validated.
zachgoll commented 2024-11-18 23:53:16 +08:00 (Migrated from github.com)

@acflint disregard my comment on the other PR that was closed. This looks good!

@acflint disregard my comment on the other PR that was closed. This looks good!
acflint commented 2024-11-18 23:56:53 +08:00 (Migrated from github.com)

@zachgoll I can fix the failing specs, if you'd like. Let me know.

@zachgoll I can fix the failing specs, if you'd like. Let me know.
zachgoll commented 2024-11-19 00:01:16 +08:00 (Migrated from github.com)

@acflint yep, that would be great. Looks like we just need to pass col_sep as params for each of those failing tests

@acflint yep, that would be great. Looks like we just need to pass `col_sep` as params for each of those failing tests
acflint commented 2024-11-19 00:04:03 +08:00 (Migrated from github.com)

@zachgoll done 👍🏻

@zachgoll done 👍🏻
acflint commented 2024-11-19 00:41:08 +08:00 (Migrated from github.com)

I know it's small, but after almost 10 years of being a dev, this is the first OSS contribution I've had merged. So that's pretty cool :) Thanks @zachgoll!

I know it's small, but after almost 10 years of being a dev, this is the first OSS contribution I've had merged. So that's pretty cool :) Thanks @zachgoll!
Sign in to join this conversation.