Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#11111](https://github.com/inventree/InvenTree/pull/11111) - removes legacy metadata APIs
- [#9814](https://github.com/inventree/InvenTree/pull/9814) - removes legacy config path support
- [#11667](https://github.com/inventree/InvenTree/pull/11667) - removes legacy url patterns
- [#11985](https://github.com/inventree/InvenTree/pull/11985) - removes legacy user endpoint fallback


## Unreleased - YYYY-MM-DD
Expand Down
20 changes: 0 additions & 20 deletions src/backend/InvenTree/users/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
SerializerContextMixin,
UpdateAPI,
)
from InvenTree.schema import exclude_from_schema
from InvenTree.settings import FRONTEND_URL_BASE
from users.models import ApiToken, Owner, RuleSet, UserProfile
from users.serializers import (
Expand Down Expand Up @@ -502,25 +501,6 @@ def get_object(self):


user_urls = [
# Legacy endpoints (to avoid breaking existing API clients)
# TODO @matmair - remove these legacy endpoints in the next breaking release
path(
'roles/',
exclude_from_schema(RoleDetails, '/api/user/me/roles/').as_view(),
name='api-user-roles_legacy',
),
path(
'token/',
ensure_csrf_cookie(
exclude_from_schema(GetAuthToken, '/api/user/me/token/').as_view()
),
name='api-token_legacy',
),
path(
'profile/',
exclude_from_schema(UserProfileDetail, '/api/user/me/profile/').as_view(),
name='api-user-profile_legacy',
),
# Individual user endpoints
path(
'me/',
Expand Down
4 changes: 2 additions & 2 deletions src/performance/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_api_auth_performance():
'/api/order/so/shipment/',
#'/api/order/po/',
#'/api/order/po-line/',
'/api/user/roles/',
'/api/user/me/roles/',
'/api/parameter/',
'/api/parameter/template/',
],
Expand All @@ -77,7 +77,7 @@ def test_api_list_performance(url):
'/api/order/so/shipment/',
'/api/order/po/',
'/api/order/po-line/',
'/api/user/roles/',
'/api/user/me/roles/',
'/api/parameter/',
'/api/parameter/template/',
],
Expand Down
Loading