4283 period supplies
Checklist:
- I have performed a self-review of my own code,
- I have commented my code, particularly in hard-to-understand areas,
- I have made corresponding changes to the documentation,
- I have added tests that prove my fix is effective or that my feature works,
- New and existing unit tests pass locally with my changes ("bundle exec rake"),
-->
Resolves #4283
Description
Modify the Period supply report to include items from kits that are both donated and purchased.
Include anything else we should know about. -->
Type of change
- New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Added unit tests within the test suit to individually test newly added methods.
@jadekstewart3 Yay! I think the failed test is unrelated, but please address the things Rubocop is unhappy with.
Don't expect my functional review until later in the week.
@cielf @dorner There is a CI failure, but I checked out the file and it doesnt seem to be one that I touched
@cielf I added another distribution to see if my expected would increase by 200, and it seems to be working. Would you mind taking a peek at my test set up to ensure I am creating the distribution properly? The new distribution is pad_and_tampon_kit_distribution, kit is names similarly. Thank you! Im not sure what is goin on so any insight would be much appreciated!
Yeah - I double-checked it. definitely just showing the pads. Have you tried the combination of loose and kitted period supplies.
@cielf I added another distribution to see if my expected would increase by 200, and it seems to be working. Would you mind taking a peek at my test set up to ensure I am creating the distribution properly? The new distribution is pad_and_tampon_kit_distribution, kit is names similarly. Thank you! Im not sure what is goin on so any insight would be much appreciated!
Before I dig in too much -- I noticed that you are misspelling "Menstrual" as "Menstral". That might be the whole problem?
@cielf well that is embarrassing!
@cielf I think I have an idea of what youre asking, but Im not exactly sure. Are yall still holding office hours on sundays? Maybe I can chat with someone to help me get a better idea?
Yes, we are . I'm probably the best person to talk it though with, and I intend to be there.
Just a note for anyone else who is reviewing -- from a conversation with the stakeholder circles, it was agreed that we can't really reasonably calculate the period supplies per adult per month (and it's not as meaningful a number as diapers per month, anyway, because different period supplies are used at different rates). So we're removing that from the annual survey.
With that in mind, I will take another pass at this from a functional pov (probably Friday) but I think we're at the point where we should have @dorner take a look.
Technical review looks fine.
@jadekstewart3 Thank you very much for your hard work and patience on this!
@jadekstewart3: Your PR 4283 period supplies is part of today's Human Essentials production release: 2024.10.27.
Thank you very much for your contribution!