mlool / workday-calendar-extension

MIT License
58 stars 23 forks source link

No need to call UBC Scheduler's ajax API to retrieve course data #171

Open SorenEricMent opened 3 months ago

SorenEricMent commented 3 months ago

Currently the way this extension used to fetch course data is with UBC Scheduler's ajax API, which is slow and has a chance to go wrong, but all course time information are available under "View My Courses" already, as in the "Meeting Patterns" column.

ThatNerdSquared commented 3 months ago

In the past, we've had a lot of issues with reading data in from the page directly, mainly because Workday will update their frontend and break our parser. We can't do anything about this so we use the Workday API to retrieve data, which is significantly more reliable.

Internally speed has been improved as we've starting parsing the DOM for some things and using the API as a fallback. We might expand this approach but Workday's DOM is volatile enough that this might not be possible.