ref(core): Move organization member endpoints and tests to core folder #98916
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
This PR moves organization member endpoints from
src/sentry/api/endpoints/organization_member/
tosrc/sentry/core/endpoints/
and renames them with theorganization_member_
prefix for consistency.Changes Made:
Moved endpoint files from
src/sentry/api/endpoints/organization_member/
tosrc/sentry/core/endpoints/
Renamed files with
organization_member_
prefix:organization_member/index.py
→organization_member_index.py
organization_member/details.py
→organization_member_details.py
organization_member/team_details.py
→organization_member_team_details.py
organization_member/utils.py
→organization_member_utils.py
organization_member/requests/join.py
→organization_member_requests_join.py
organization_member/requests/invite/index.py
→organization_member_requests_invite_index.py
organization_member/requests/invite/details.py
→organization_member_requests_invite_details.py
Moved test files from
tests/sentry/api/endpoints/
totests/sentry/core/endpoints/
Updated all import references in
src/sentry/api/urls.py
and other affected filesAdded missing utility functions from the original
organization_member/__init__.py
toorganization_member_utils.py
Updated SCIM endpoints and serializers to reference new locations
Files Moved:
Endpoint Files:
src/sentry/api/endpoints/organization_member/
→src/sentry/core/endpoints/organization_member_*.py
Test Files:
tests/sentry/api/endpoints/test_organization_member_*.py
→tests/sentry/core/endpoints/test_organization_member_*.py
All import paths have been updated throughout the codebase to maintain functionality.
Test plan