Skip to content

ENG-2213: Reorganize services, connectors, and shared modules#7453

Draft
galvana wants to merge 6 commits intocli-and-core-cleanupfrom
service-and-connector-cleanup
Draft

ENG-2213: Reorganize services, connectors, and shared modules#7453
galvana wants to merge 6 commits intocli-and-core-cleanupfrom
service-and-connector-cleanup

Conversation

@galvana
Copy link
Contributor

@galvana galvana commented Feb 22, 2026

Summary

Continues the module structure cleanup from cli-and-core-cleanup. This PR reorganizes three major areas:

Connectors — Moves all connectors from fides.api.service.connectors.* to a root-level fides.connectors package with per-connector subdirectories (e.g., fides.connectors.bigquery, fides.connectors.saas, fides.connectors.mongodb). Co-locates query configs with their connectors, moves authentication/pagination/post-processor strategies under fides.connectors.saas.strategies, and adds fides.connectors.shared for cross-connector query configs.

Services — Flattens fides.api.service.* into fides.service.*:

  • messaging/fides.service.messaging
  • storage/fides.service.storage
  • masking/fides.service.privacy_request.masking
  • async_dsr/fides.service.privacy_request.async_dsr
  • dsr_package/, email_batch_service, request_runner_service, etc. → fides.service.privacy_request
  • attachment_servicefides.service.attachment
  • event_audit_servicefides.service.event_audit
  • connector_registry_servicefides.service.connection
  • DRP endpoints and mapper → fides.api.v1.endpoints.drp
  • strategy.pyfides.common.strategy

Shared modules — Decouples lower layers from fides.api.v1:

  • urn_registry.pyfides.common.urn_registry (all URL path constants, including V1_URL_PREFIX)
  • Credential functions → fides.common.credentials (moved from cli.core.utils to break config → cli circular import)
  • get_db generator → fides.common.session.session_management (canonical session location; api.deps re-exports it)
  • oauth/utils.py imports session management from common.session instead of api.deps

Test plan

  • nox -s static_checks passes (ruff + mypy)
  • nox -s collect_tests — 7851 tests collected
  • Full test suite passes in CI

@vercel
Copy link
Contributor

vercel bot commented Feb 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
fides-plus-nightly Ignored Ignored Preview Feb 27, 2026 2:33am
fides-privacy-center Ignored Ignored Feb 27, 2026 2:33am

Request Review

@galvana galvana force-pushed the service-and-connector-cleanup branch from ca3c197 to 01d2c46 Compare February 22, 2026 10:26
@galvana galvana changed the title Reorganize connectors and services directory structure ENG-2213: Reorganize services, connectors, and shared modules Feb 22, 2026
@galvana galvana force-pushed the service-and-connector-cleanup branch from df11e5a to 315cace Compare February 22, 2026 20:56
Adrian Galvan and others added 6 commits February 26, 2026 18:30
Move connectors to root-level with per-connector subdirectories,
co-locate query configs, flatten base/ into connectors root,
add shared/ for cross-connector query configs, and move
root-level services into their own subdirectories.

Co-authored-by: Cursor <cursoragent@cursor.com>
Bad merge artifact from rebase — the import was added during
conflict resolution but is never used in the test file.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Remove stray fides.common.constants imports from urn_registry.py
- Inline REQUEST_TASK_CALLBACK, CONNECTION_TYPES, CONNECTION_BY_KEY, SAAS_CONFIG
- Update test imports for moved modules (masking, connectors, okta)
- Remove duplicate urn_registry imports from test files

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@galvana galvana force-pushed the cli-and-core-cleanup branch from 8572883 to 551e7d3 Compare February 27, 2026 02:33
@galvana galvana force-pushed the service-and-connector-cleanup branch from 4415849 to 001c4ea Compare February 27, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant