Conversation
…page_loading_issues_2
…m db instead of canvas api
…ieving grouped reports
…ts and issues to course data
Ishfaq-code
left a comment
There was a problem hiding this comment.
The setup seems to be working fine of going into admin. Some rendering issues when variables are undefined on the frontend which I commented.
Only issue I faced when I scanned one of the courses it did appear to catch that but the stats do not show up on the courses table
Scan Single Courses from Course Report Page
View all courses
…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 |
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.