-
-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filtering on distribution -- specifically by item category -- the totals are not filtering properly (Judi, stakeholder 20240808) #4590
Comments
Hi @cielf, I'm new to this project and am looking for my first ticket. Can you assign this to me? |
Sure can! (Welcome aboard) |
Thank you! |
I was able to diagnose the source of the issue, but I have questions about the best way to change it. After filtering based on an item category, the totals aren't calculating correctly at the bottom of the page because the method
It appears that the line |
Hey @rlew421 -- Thanks for reaching out! I think you might be tweaking the wrong place. @selected_item is, specifically, the item that is selected in the drop-down. It gets fed back into the screen as such (see app/views/distributions/index.html, line 41) So, putting the item_category in there instead of the item is going to have "unexpected results" g, such as what you've described. I suspect the best place to try to address this would be moving @selected_item_category up to just below @selected_item, then reworking total_items so that it can know about item_categories as well as items. Bonus: |
This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned. |
Automatically unassigned after 7 days of inactivity. |
Can I try this one? |
Give it a go! Though there 's an argument for waiting until we've got the other thing merged, depending on the state of your main. |
This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned. |
Automatically unassigned after 7 days of inactivity. |
@inane-pixel has indicated that they don't know when they can finish up the PR. It needs some work on tests, should someone want to pick it up. |
Can I take over on this? |
Please do. |
@coalest Also -- I think we sent you an invitation that, if accepted, would allow you to self-assign. Nov 17. |
Summary
In the Distribution index, for the "Total in Category" column that appears when we filter by Item Category, the totals at the bottom of the page should show the total of the numbers in that column, and they don't.
Why fix?
It's confusing.
Details
Recreation
Sign in as [email protected]. Choose "Distribution" from the left hand menu.. Then, filter the list by item category (fill in "Fiter by item category", then click "Filter")
You will see that the total of the "Total in Category" column does not match the total of the numbers in the column. It should.
Criteria for completion
The text was updated successfully, but these errors were encountered: