-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix issues in course analysis statistics tool #387
fix issues in course analysis statistics tool #387
Conversation
…seStatisticsAsync one step up in react tree
…gic. The main changes are: - faulty week logic for determining semester is removed and only now semester from Kopps is used. - only one semester can be selected, to avoid issues of added same course offering multiple time. - ST is removed, course offerings will be included in HT och VT depending on semester from Kopps (ST was caluclated from weeks before and is no actual semester)
46364cd
to
7277aa6
Compare
chosenSchool = '', | ||
language = 'sv' | ||
) { | ||
function filterOfferingsForAnalysis(courses = [], chosenSemester, chosenSchool = '', language = 'sv') { |
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.
Most notable changes are in this function.
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.
Tested on my machine and it works fine! Nice job with the refactoring the logic surrounding seasons/semesters, it looks a lot less convoluted and unclear now.
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.
LGTM!
Ran locally and clicked around. A lot cleaner now, having the semesters corresponding to KOPPS semesters, and the new table styling that makes it possible to actually see the end date right away.
Good job!
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.
Well done ⭐️
I also tested locally and everything looks great.
The main changes that addresses reported issue:
The PR aslo include some other fixes for different warnings:
<StatisticsAlert>
throughdocument.getElementById()
andcreateRoot()
to by moving useStatisticsAsync one step up in react tree and rendering it the normal React way