Skip to content

Conversation

JoshFerge
Copy link
Member

Summary

This PR moves organization member endpoints from src/sentry/api/endpoints/organization_member/ to src/sentry/core/endpoints/ and renames them with the organization_member_ prefix for consistency.

Changes Made:

  • Moved endpoint files from src/sentry/api/endpoints/organization_member/ to src/sentry/core/endpoints/

  • Renamed files with organization_member_ prefix:

    • organization_member/index.pyorganization_member_index.py
    • organization_member/details.pyorganization_member_details.py
    • organization_member/team_details.pyorganization_member_team_details.py
    • organization_member/utils.pyorganization_member_utils.py
    • organization_member/requests/join.pyorganization_member_requests_join.py
    • organization_member/requests/invite/index.pyorganization_member_requests_invite_index.py
    • organization_member/requests/invite/details.pyorganization_member_requests_invite_details.py
  • Moved test files from tests/sentry/api/endpoints/ to tests/sentry/core/endpoints/

  • Updated all import references in src/sentry/api/urls.py and other affected files

  • Added missing utility functions from the original organization_member/__init__.py to organization_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_*.pytests/sentry/core/endpoints/test_organization_member_*.py

All import paths have been updated throughout the codebase to maintain functionality.

Test plan

  • Verify all organization member endpoints still work correctly
  • Run related tests to ensure no regressions
  • Check that all imports resolve correctly

- Moved organization member endpoint files from src/sentry/api/endpoints/organization_member/ to src/sentry/core/endpoints/
- Renamed endpoint files with organization_member_ prefix for clarity
- Moved corresponding test files from tests/sentry/api/endpoints/ to tests/sentry/core/endpoints/
- Updated all import references in src/sentry/api/urls.py and other affected files
- Updated SCIM endpoints and serializers to reference new locations

Files moved:
- 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

All corresponding test files moved and import paths updated.
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 5, 2025
Copy link

codecov bot commented Sep 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #98916      +/-   ##
==========================================
- Coverage   81.20%   81.20%   -0.01%     
==========================================
  Files        8535     8533       -2     
  Lines      377065   376971      -94     
  Branches    23942    23919      -23     
==========================================
- Hits       306208   306124      -84     
+ Misses      70489    70479      -10     
  Partials      368      368              

- Update pyproject.toml to reference new organization member requests location
- Fix mocked import paths in test files to point to new core endpoints
- All tests are now passing after the merge with master and import fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant