-
Notifications
You must be signed in to change notification settings - Fork 0
Fixing api #136
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
base: main
Are you sure you want to change the base?
Fixing api #136
Conversation
Remaining TODO - Add duplicate schedule endpoint - Make API return next load time - Add authorization to the API through a middleware ;)
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| // Stores for Saved (Course Pools for ReCal+) | ||
|
|
||
| import { getCurrentTerm } from "$lib/scripts/ReCal+/getters"; | ||
| import type { CourseData } from "$lib/types/dbTypes"; | ||
| import type { SupabaseClient } from "@supabase/supabase-js"; |
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.
Restore rpool store to satisfy existing imports
The commit deletes src/lib/stores/rpool.ts, but many components still import $lib/stores/rpool (e.g. Calendar.svelte, ExportCal.svelte, AddSchedule.svelte, Top.svelte). Building the web app now fails with a missing-module error because the imported store no longer exists. Unless every caller is updated to a replacement, the store file needs to remain to keep the frontend compiling.
Useful? React with 👍 / 👎.
| import { | ||
| currentSchedule, | ||
| rawCourseData, |
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.
Reintroduce fetchDb helper or update callers
The removal of src/lib/scripts/ReCal+/fetchDb.ts leaves Top.svelte still importing from $lib/scripts/ReCal+/fetchDb, which will cause the web frontend to fail to compile with a "Cannot find module" error whenever the ReCal UI is built. Either restore the helper or change the remaining imports to a valid module.
Useful? React with 👍 / 👎.
The main chunk of the API is complete. I am now working on migrations to PostgreSQL and writing scripts for that.
WE STILL NEED TO DO AUTH THROUGH A MIDDLEWARE THOUGH!!