Add fuzzy professor teaching upload - #194
Draft
jerryzhou196 wants to merge 4 commits into
Draft
Conversation
Replace the fuzzy-matching engine (pg_trgm similarity, ambiguous-review queue, per-row issue tracking) with the importer's existing prof identity: resolve courses and instructors by code and upsert. Drops the trigram extension/index and the fuzzy-only columns; handler goes 626 -> 179 lines. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The admin import endpoint is operator-only; block it at the public proxy so it's reachable only from inside the box (localhost:8081 / SSH tunnel / sibling container). The AWS SG already blocks :8081 directly, so this closes the one public path. No rate limiting needed once it's not publicly routable. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /admin/course-professors/uploadendpoint for Questprof_teaches.jsonuploadssimilarity()scraped_prof_teaches_courseand union them into the existingprof_teaches_coursematerialized view/search indexesVerification
env GOCACHE=/private/tmp/uwflow-go-build-pr go test ./api/admin ./common/env ./common/dbgit diff --checkenv GOCACHE=/private/tmp/uwflow-go-build-pr go test ./...still fails locally on existing native dependency:pdftotext.cc:6:10: fatal error: 'poppler/cpp/poppler-document.h' file not found