Closed HRemonen closed 1 month ago
AFTER THE CHANGES every feedbacktarget in the My Teaching page seems to have lost their feedback count and student counts:
HOWEVER when visiting the feedbacktarget page, the counts are normally there.
[!NOTE] Okay so further investigation with Asta revealed that the summaries table has to be completely flushed and rebuild in order to get the "new" data in and old data out.
Now this is not working because we still have the old summaries data in the DB.
[!CAUTION] This is pretty dangerous shit
- Flush the current summaries table with
truncate summaries; delete from summaries;
- Rebuild the summaries table either programmatically or through the summaries "Aja datanpäivitys"
- Profit
The full rebuild takes little over one minute or so. I was thinking that if the steps should be done inside migrations rather than manually, either way this is not super ideal for production build, as it might cause issues.
CURRENTLY for https://norppa.helsinki.fi/course-summary/TKT20005?startDate=2022-08-01&endDate=2023-07-31 the course summary page is the following:
AFTER THESE CHANGES the same page looks like this:
Where did the CUR rows disappear?
Also displaying all of the CUR's for a CU does not work anymore. BEFORE THE CHANGES:
AFTER THE CHANGES: