human-essentials
human-essentials copied to clipboard
[Feature] Product Drive Export
Summary
Provide product drive export
More detail
Add an "Export Product Drives" button to the product drives page. This will download a csv file containing the same information as the filtered product drives.
This will be similar in character to the other existing exports -- essentially taking the filtered information in the product drives screen and exporting it. Refer to the donation or distriibution exports for the general pattern of doing this.
Things we should know
We've had two different banks request this, one in mid July (Laurie R), and one on Aug 8, 2022(Judi M) There were some other requests around product drives along with them, which have been made into separate backlog items (and soon to be issues), so I recommend looking out for them if you want a chunk of work in the same area.
Criteria for Completion
- [ ] tests for product drive export
- [ ] product drive export available
Hello @cielf 👋 😄
I'm a brand new contributor 👶 Nice to e-meet you 🤝
I'd like to pick up this piece of work if that's ok? If so, can I also confirm the following (extra) acceptance criteria with you (to make sure I am on the same page)?
AC1
- Given I am not a bank admin user
- I should not be able to download a Product Drive Export CSV
AC2
- Given I am a bank admin user
- and I do not use any filters
- when I click the (soon-to-be-built) "Export Product Drives" button
- then a csv should be downloaded with all the Product Drives for the user's bank
AC3
- Given I am a bank admin user
- and I select the date filter with a range of 01/01/1999 to 02/02/2022
- when I click the (soon-to-be-built) "Export Product Drives" button
- then a csv should be downloaded that only includes product drives with:
- a start date on or after 01/01/1999 and
- an end date on or before 02/02/2022
AC4
- all Product Drive Export CSVs should contain the following headers:
- Product Drive Name
- Start Date
- End Date
- Held Virtually?
- Quantity of Items
- Variety of Items
- In Kind Value
Thanks!
Hey @shen-sat -- good to meet you! Clarifications on your criteria:
- any bank user can export, not just the organization admins. (This is following the pattern of the other exports in the system) Otherwise, I think you've got it. With the caveat that AC3 is only that bank's drives as well, of course
Awesome! And thanks for the clarifications 🙏 I'll get to work on the PR 👍
This issue has been inactive for 253 hours (10.54 days) and will be automatically unassigned after 107 more hours (4.46 days).