-
Notifications
You must be signed in to change notification settings - Fork 27
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
Rearrange Report Results #8144
Rearrange Report Results #8144
Conversation
@dartajax I need to clean up a few things and move them around in the UI, but this should be functionally complete. Would you mind taking a first pass at downloads and report results and see if you can break anything or if anything pops out at you as needing work before this is merged. I'll keep working on my stuff in parallel. |
I assigned myself as a tester not to merge - |
e9c1e86
to
6a5d334
Compare
I feel I have the luxury of testing this for a while since it won't go anywhere for a bit. |
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.
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.
I hate to be that person but when I run a report for all sessions in academic year, the default selecting comes up 2009. Certainly if we were going to pick a year, 2024 would be better since "All Academic Years" is not available until ... you run the report. Here is what a report based on 2024 looks like on output for reference. First if we need a year make it the current year. If we don't need a year, make "All Available Years" available on the drop-down like it is in the output as will be shown below.
As one would surmise, there are no 2016 return values in a 2024 dataset.
Moving this into a standalone component as a first step to moving it inside of each report.
We need more of these, and I don't think it quite fits under the subject tree.
This is it's own component so it can be put inside the results. This is a hack job right now, limited test, not hooked up everywhere because it's going to move around and change.
Ripping this out for use elsewhere.
Pulling this all apart and moving the report header into the results so that we can have more control over the download within the results container.
Improved the item placement and style
The final step, now each report downloads data from the results.
These methods don't exist on this service anymore.
Moved a few things around, I put the download button inside of a div so the grid spacing wouldn't cause the button to fully fill it. This way we don't have to guess at the button size, it's just normal.
Anytime we run a report we should reset the year so all years are shown in the results.
abf4bf6
to
cbd1b15
Compare
Good catch @dartajax, I've hidden that filter when the year is used to build the report and also fixed the academic year report association to select the current year instead of defaulting to the oldest year. |
When adding academic year to a report we should pick the current year instead of the oldest year. As this mirrors the behavior of the course filters I extracted the selection of current year into a utility.
When the sessions report is using academic year to run we shouldn't display the filter for the year.
cbd1b15
to
89ac63e
Compare
Speaking of which, I did that report I screenshotted, and then went to download it without saving, and it's running the same ~1min-long |
If it ran the fetch again that's a bug. I'm on it. Thanks! |
Actually I forgot about this one. The sessions download has a lot more data than the on screen report. So it's split up into two parts and the fetch has to re-run. All sessions in Medicine is always going to be a huge amount of data. I'd like to leave this as is for now and possibly circle back if we want to slow down the first on-screen report to load more data or accept the current second load network request. |
Ripped apart the way we display results in order to move the download button inside the results. This improves the download functionality:
Fixes ilios/ilios#5652
Todo from first demo: