Skip to content

Refactor Cache Logic#446

Open
emilyliublair wants to merge 1 commit intoemily/finalize_submit_ratings_flowfrom
emily/refactor_cache_logic
Open

Refactor Cache Logic#446
emilyliublair wants to merge 1 commit intoemily/finalize_submit_ratings_flowfrom
emily/refactor_cache_logic

Conversation

@emilyliublair
Copy link
Copy Markdown
Contributor

Summary

Resolves #[ticket-number]

Added a generic cache manager utility in src/utils to handle all localStorage read/write operations. Used this cache manager in Course.ts to replace repetitive code and verified no breaking changes. Had to update GPA cache key since the GPA cache item was modified to fit the generic cache entry interface.

How to Test

All metrics (GPA, ratings, professor ratings) are still able to be fetched:
Screenshot 2026-03-22 at 1 46 24 PM

Verified that ratings caches are still invalidated upon submission of new rating

@emilyliublair emilyliublair requested a review from uma-anand March 22, 2026 17:50
@github-actions
Copy link
Copy Markdown

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://gt-scheduler.github.io/website/pr-preview/pr-446/

Built to branch gh-pages at 2026-03-22 17:53 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant