Admin Loading Issues Fix Pt.2#1130
Conversation
…page_loading_issues_2
…m db instead of canvas api
…ieving grouped reports
…ts and issues to course data
…ation does not exist in the terms table
|
Still to-do:
There's more after that, but mostly just prettification of the dashboard, and can be part of a separate PR. |
|
List of completed to-dos:
|
|
Regarding this:
@mbusch3 and I have had discussions regarding how best to roll these changes out in production for UCF, as well as for the open-source project. At the moment, the main hindrance to making this update fully automatic is that there might be rows in the |
…cfopen/UDOIT into issue/1089-admin_page_loading_issues_2
Ishfaq-code
left a comment
There was a problem hiding this comment.
Functionally seems good. Some changes that may be good:
-
On the courses table the instructors appear with their login names but after scanning the course it gets changed with their actual first and last name. Maybe confusing to users.
-
Adding a loader to the course being scanned maybe a helpful indicator
-
Add a message or take user to report page of the scanned course after a course has scanned for better indication.
Fixes #1153, #1089, #1080
This PR seeks to address the issues with loading courses on the admin panel.
It modifies the courses table by adding the following fields:
course_professors: A JSON field to store the names of professors that teach the courseand modifies pre-existing data by:
lms_course_idandinstitution_idfor courseslms_account_idandlms_term_idto become foreign keys to theAccountandTermtables respectively.Steps to perform migration:
1.) Provided that you have already run the
Version20260304160904migration, ensure that you have already populated the Account and Term tables. You can populate theAccountandTermtables using the make commandmake admin-panel-retrieve-data TABLES="accounts terms".2.) Once you've added the Account and Term tables, you're now ready to run the migration in this pull request. Start off by identifying any
lms_course_idduplicates in your table. This migration WILL NOT work if you have courses with duplicatelms_course_ids. After you've deleted those courses from the database, go ahead and run the migrationVersion2026031220211usingmake migrate-to VERSION={2026031220214}. The migration should run smoothly from there.3.) Activate the ETL task that populates the courses table by running
make admin-panel-retrieve-data TABLES="courses", and you should now have in your database all the data necessary to power the admin panel.