-
Notifications
You must be signed in to change notification settings - Fork 27
Add School Filter to Subject Reports #8462
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
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for ilios-frontend ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@dartajax please take a look at the subject competency report and see if this is the behavior you had in mind for this ticket. I'm not convinced we aren't better served by having users go back and choose a school to run the report on, but I imagine there are some users who want to toggle around. I'm ok either way, only competencies is done, but if it looks good to you let me know and I'll add this to the rest of the subject report types. |
I guess the drop-down would appear only if someone happens to run a report with |
Forgot it was slightly different, you can try out the fully functioning dropdown in a saved report. Doesn't work yet in the "run report" type. |
That click event only runs the first time it is used - not click but select from drop-down using mouse. Also the count should update too. It works from "All Schools >> Medicine" for example but not "Medicine (once selected) >> Pharmacy or any other switch" - Go back to "All Schools" to reset - should be able to switch schools and get the corresponding results and count. |
When All Schools is selected for a report add a school filter to the results so they can be refined.
4378309
to
82e288f
Compare
Fixed the click event, good catch! Fixed the filter count. If only one school returns results the filter won't show up (hard to test without destroying the DB on competencies, but will work for other reports). If all this still looks good I'll start adding it everywhere else. |
I ran one for ...
... where 2024 - 2025 was an academic year I selected - don't see the school filter there but I assume maybe because only one school was returned or that is out of scope for this PR is my other more likely assumption |
oh yeah I guess we need to pre-pend the school for the output report of the one I specified above when acad year is selected - follow-up ticket possibly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works for me on saved reports of the "All Schools" "Competencies" "Anything" report - newly generated reports show the drop-down but there is no functionality there - no prob since that is not supposed to work with the PR I assume - also if a specific academic year is selected, the filters don't appear - again out of scope for this PR - so all good on what was specified at the beginning of this now lengthy comment.
When All Schools is selected for a report add a school filter to the results so they can be refined.
Fixes ilios/ilios#4912
wip: I've only done competencies to validate the approach.