Improves data flow of getting course data from course critique by checking firestore cache from client side before invoking the cloud function invocation to get course data
[x] Edit the fetchGpa function in src/data/beans/Course.ts (this function is called in src/Components/Course/index.tsx to populate the UI) to now first check firestore for a valid cache entry (this code can be taken from the cloud function) after an invalid entry is found in localStorage and then proceed to make a cloud function call only when localStorage and firebase have an invalid entry. The code currently only checks localStorage.
[ ] Do thorough testing to make sure this entire flow works as expected.
How to Test
add courses to scheduler, put logs into Course.ts to see when calls are made to API and Database
Summary
Resolves #301
Improves data flow of getting course data from course critique by checking firestore cache from client side before invoking the cloud function invocation to get course data
Checklist
How to Test
add courses to scheduler, put logs into Course.ts to see when calls are made to API and Database