Skip to content

Commit 818968b

Browse files
committed
chore(user): remove legacy favorites controller and deprecation config
Deletes `FavoriteLegacyController` and its legacy unit/integration tests for the deprecated `/userinteraction/favorites` contract, and removes the legacy favorites successor-path configuration from `application.yml`. Also the CHANGELOG.md has been removed accordingly.
1 parent 42029d9 commit 818968b

File tree

5 files changed

+9
-680
lines changed

5 files changed

+9
-680
lines changed

CHANGELOG.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- Updated APISIX routes (dev and pro configs) to proxy Favorites requests through /itachallenge/api/v1/user/users/**.
1919
### Removed
2020
- Removed legacy GET endpoint for user solutions from User microservice.
21+
- Removed deprecated Favorites endpoints from Challenge microservice that pointed to the old User microservice paths.
22+
- Removed the legacy FavoriteController and related test classes that handled the old Favorites endpoints in the User microservice.
2123
### Added
22-
- Added new Favorites routes:
23-
GET /itachallenge/api/v1/user/users/{userId}/favorites
24-
POST /itachallenge/api/v1/user/users/{userId}/favorites/{challengeId}
25-
DELETE /itachallenge/api/v1/user/users/{userId}/favorites/{challengeId}
26-
- Added config properties in application.yml for successor endpoint paths used by legacy deprecation headers.
24+
- Added new Favorites routes:
25+
GET /itachallenge/api/v1/user/users/{userId}/favorites
26+
POST /itachallenge/api/v1/user/users/{userId}/favorites/{challengeId}
27+
DELETE /itachallenge/api/v1/user/users/{userId}/favorites/{challengeId}
2728
- Added/updated unit and integration tests to cover both the new Favorites endpoints and the legacy deprecated endpoints.
28-
### Deprecated
29-
- Deprecated legacy Favorites routes while keeping them available during a staged rollout.
30-
-
29+
3130
### [itachallenge-user-3.2.2-RELEASE] - 2026-02-23
3231

3332
### Removed

itachallenge-user/src/main/java/com/itachallenge/user/controller/userinteraction/favorite/FavoriteLegacyController.java

Lines changed: 0 additions & 206 deletions
This file was deleted.

itachallenge-user/src/main/resources/application.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,5 @@ challenge:
6464
service:
6565
url: http://apisix-gateway:9080 # IN PRODUCTION
6666
#url: http://172.17.0.2:8762 # LOCAL IP
67-
app:
68-
api:
69-
favorites:
70-
successor-version:
71-
post-path: "/itachallenge/api/v1/users/{userId}/favorites/{challengeId}"
72-
get-path: "/itachallenge/api/v1/users/{userId}/favorites"
73-
delete-path: "/itachallenge/api/v1/users/{userId}/favorites/{challengeId}"
67+
68+

0 commit comments

Comments
 (0)