Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@ap-1 Hi Anish, I've implemented syllabi functionality:
Issue found: While the database contains 19,556 syllabi records, all field values are NULL (see screenshots). Since you're familiar with the course scraper, could you help diagnose why the data wasn't properly populated? |
|
woah this is great i'm actually working on a rewrite of course-api in a separate repo, and I moved the syllabus scraper there along w a bunch of other updates---i'll upload the csv to mongo for now do note that I removed a bunch of redundant data, including titles, in exchange for having more reliable course number/section parsing |
|
I think I pushed the wrong commit the first time but it should be fixed now w/ your changes and the updated schema in $ prisma db push
Prisma schema loaded from schema.prisma
Datasource "db": MongoDB database "course-api" at "monorail.proxy.rlwy.net:39417"
Applying the following changes:
[-] Index `year_1_number_1_section_1_season_1`
[-] Index `text`
[+] Fulltext index `text` on ({"name":"text","department":"text","desc":"text","prereqString":"text"})
[+] Index `syllabi_year_number_section_season_idx` on ({"year":1,"number":1,"section":1,"season":1})
🚀 Your database indexes are now in sync with your Prisma schema. Done in 2.59s
✔ Generated Prisma Client (v5.22.0) to ./../../node_modules/@prisma/client in 51ms |
|
Added the MVP of the frontend. The link to the syllabi is now clickable from the course details, and the syllabi list view is now available, but the display does not look beautiful. I will finish this up hopefully by tomorrow or Saturday. |
|
nice! one thing I would note is that users would probably want the option whether to automatically open the download link or view the PDF/docx/whatever in canvas. This can be done by modifying the URL as such: (dowload link) (canvas link) |












Created a
SideNaventry for syllabi, a section for it inCourseCard, and added it to the prisma schema.I also attempted to created a syllabus controller and create routes for it in the backend, but I need someone to verify I'm doing it correctly. I also need help writing
app/api/syllabi.tsand consuming the API properly inCourseCard.The syllabus page and search functionality for it are also not yet implemented, and I will probably need help with the latter
Closes #201
Closes #121
Type of change