Remove v1 endpoints superseded by v2#207
Merged
jenul-ferdinand merged 3 commits intoJul 5, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
31 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes deprecated /api/v1 endpoints that have been superseded by /api/v2, keeping only the remaining v1 surfaces that the frontend still calls (notably v1 reviews send-report, plus selected v1 auth/units routes with no v2 replacement yet). It also updates the characterization/performance harness to align with the reduced v1 surface.
Changes:
- Removed v1 auth/reviews/units endpoints (and their corresponding v1 domain-layer service/repository/controller code paths) that are no longer used.
- Pruned v1 characterization tests that covered removed endpoints and consolidated remaining v1 review coverage into a send-report-only test file.
- Retired the v1-vs-v2
/units/popularperformance comparison and converted it into a v2-only load smoke test.
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| backend/src/shared/testing/performance/v1.units.popular.yml | Deletes the Artillery script for the removed v1 /units/popular endpoint. |
| backend/src/shared/testing/performance/v1.units.popular.report.json | Removes the checked-in v1 Artillery report baseline tied to the deleted v1 endpoint. |
| backend/src/shared/testing/performance/units.api.test.ts | Updates perf test to run v2-only load smoke and assert all requests return 200. |
| backend/src/domains/identity/users/user.v1.service.ts | Removes v1 auth flows (Google auth/validate/upload-avatar) from the v1 service layer. |
| backend/src/domains/identity/users/user.repository.ts | Removes repository helpers that were only needed for the removed v1 auth flows. |
| backend/src/domains/identity/users/auth.v1.routes.ts | Unmounts removed v1 auth routes (google/authenticate, validate, upload-avatar). |
| backend/src/domains/identity/users/auth.v1.controller.ts | Removes controller handlers for deleted v1 auth routes. |
| backend/src/domains/identity/users/auth.v1.api.test.ts | Removes v1 characterization tests for deleted auth endpoints; keeps refresh/logout coverage. |
| backend/src/domains/academics/units/units.v1.routes.ts | Unmounts removed v1 units routes (list/popular/filter). |
| backend/src/domains/academics/units/units.v1.api.test.ts | Removes tests for deleted units endpoints; keeps tests for still-live v1 endpoints. |
| backend/src/domains/academics/units/unit.v1.service.ts | Removes v1 orchestration methods for deleted units endpoints. |
| backend/src/domains/academics/units/unit.v1.controller.ts | Removes handlers for deleted v1 units endpoints and cleans up related imports. |
| backend/src/domains/academics/units/unit.repository.ts | Removes v1-only filtered-with-reviews aggregation method. |
| backend/src/domains/academics/reviews/reviews.v1.write.api.test.ts | Deletes v1 write endpoint tests for endpoints that are now removed. |
| backend/src/domains/academics/reviews/reviews.v1.routes.ts | Unmounts all removed v1 reviews routes; keeps only POST /send-report. |
| backend/src/domains/academics/reviews/reviews.v1.read.api.test.ts | Deletes v1 read endpoint tests for endpoints that are now removed. |
| backend/src/domains/academics/reviews/reviews.v1.api.test.ts | Adds a focused characterization test file for the remaining v1 send-report endpoint. |
| backend/src/domains/academics/reviews/review.v1.service.ts | Deletes the v1 review service implementation now that its endpoints are removed. |
| backend/src/domains/academics/reviews/review.v1.controller.ts | Removes handlers for deleted v1 review endpoints; keeps only sendReport. |
| backend/src/domains/academics/reviews/review.repository.ts | Removes v1-only repository helpers used exclusively by deleted v1 review endpoints. |
| backend/src/domains/academics/reviews/index.ts | Stops exporting ReviewV1Service after deletion. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+19
to
+20
| // Every request must succeed under load. | ||
| expect(counters['http.codes.200']).toBe(counters['http.requests']); |
13 tasks
de2b64f
into
refactor/v1-routes-into-domains
3 checks passed
jenul-ferdinand
added a commit
that referenced
this pull request
Jul 5, 2026
Re-apply v1 endpoint removal (#207) onto main
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.
Stacked on #201 (targets its branch; retargets to main automatically once #201 merges). Part of #148.
What
Removes the v1 endpoints the frontend no longer calls, verified against the actual frontend service code (not just the #148 checklist):
How usage was verified
Untouched on purpose
Verification
🤖 Generated with Claude Code