human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

Remove unused date range params from partners csv export link

Open coalest opened this issue 11 months ago • 5 comments

Doesn't resolve any issue.

Description

While working on performance of the partners csv export, I noticed the request applies some default date range parameters to the export csv requests.

Let's remove those date params because we aren't actually doing anything will them (they aren't permitted params in the controller) so as not to confuse users in to thinking the export is only for the time range supplied.

Type of change

I don't know how to categorize this. It is user-facing in that on hover the link looks different, but it doesn't effect the CSV export in any way.

How Has This Been Tested?

Test suite

Screenshot

These are screenshots of me hovering over the export partner agencies button. Note the link in the lower lefthand corner.

Before:

Screenshot from 2025-02-07 14-39-46

After:

Screenshot from 2025-02-07 14-40-04

coalest avatar Feb 07 '25 13:02 coalest

@coalest there's a spec that's failing now - I thought it was flaky but I tried 3 times and it keeps failing.

dorner avatar Feb 07 '25 20:02 dorner

@dorner Whoops, glad we have that system spec. I had removed the status filter as well as the date range filter, when I just wanted to remove the date range filter.

Should be good now.

coalest avatar Feb 08 '25 13:02 coalest

Should we communicate somewhere to users (either on the button, or csv file name, or inside the csv file), that clicking export will only export partners with that status?

coalest avatar Feb 08 '25 13:02 coalest

All the exports work in a "take the filters into account" way -- at least they're supposed to -- so I don't think we need to call it out specifically in the UI here.

Changing the insides of the csv could mess with the users' external work that the csv feeds into, so I'd avoid that.

Changing how the exports are named according to the filter has potential, for ease of working with the files later -- if we did, we'd want to apply that idea across the board on all the exports for consistent UX. Let me ponder -- I think we could end up with some spectacularly long file names on distribution.

cielf avatar Feb 08 '25 14:02 cielf

@dorner -- If I understand correctly, the question that is on my plate does not prevent this going forward.

cielf avatar Aug 24 '25 12:08 cielf