frontend
frontend copied to clipboard
Fix Courses by Mesh Term Report
The SQL query we need to run on the API has way too many joins and performs terribly for the courses by meshDescriptors filter. Instead we can reverse the lookup here and first pull the descriptor and all of it's relationships and then turn that into course ids and query them like we do any other filter.
Makes for messy tests because the graphQL responses have to use a counter, but it's 100x faster and won't crash the API DB anymore so that seems worth it.
Refs ilios/ilios#5650 Fixes ilios/ilios#4540
This doesn't seem to change anything?
Added this to the MeshTerms by course report as well, so both ways are now fixed.
Still seems like a problem :-/
Pulling this back into Draft mode as there appear to be two issue:
- Unable to create a new Mesh Terms for Course report, getting a 400 from the API. Weird.
- Running this report for a large course (like Ground School 2022) isn't as performant as it should be. May need to make some more adjustments for this case.
Back out of draft mode. The issue with running the report found by @michaelchadwick are when a school filter was added, I've fixed that. I'm unable to reproduce the saving issues I'm seeing in the netlify against demo, even running against demo on my local. I think it may be something unrelated.
Deploy Preview for ilios-frontend ready!
| Name | Link |
|---|---|
| Latest commit | 4c268e4faa06e073414228e9dcf9e330029b820c |
| Latest deploy log | https://app.netlify.com/sites/ilios-frontend/deploys/67be9cdd59ecea0008671f2e |
| Deploy Preview | https://deploy-preview-8377--ilios-frontend.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Deploy Preview for ilios-frontend ready!
| Name | Link |
|---|---|
| Latest commit | ae120a414d20c10847e1e7c6f9d28d8ce7d6d32b |
| Latest deploy log | https://app.netlify.com/sites/ilios-frontend/deploys/67be9cf30427cf00086fafa7 |
| Deploy Preview | https://deploy-preview-8377--ilios-frontend.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
@jrjohnson Woo! That report now runs quickly.