Implemented PostgreSQL full-text search on the course table, added a tsvector generated column with GIN index, replaced the ILIKE '%query%' predicate with @@ plainto_tsquery, and added ts_rank relevance-based ordering. Removed an unused test import; entity unchanged since the column is DB-managed. #162
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
| name: Code Cleanup Audit | |
| on: | |
| pull_request: | |
| schedule: | |
| - cron: "0 1 * * 0" | |
| jobs: | |
| audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: pnpm install --frozen-lockfile | |
| - name: Check unused dependencies | |
| run: npx depcheck | |
| continue-on-error: true |