Skip to content

Conversation

@vallbull
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the type/feat New features label Jan 13, 2026
@ovsds ovsds self-requested a review January 22, 2026 21:33
from dl_api_lib.app_settings import (
ControlApiAppSettingsOS,
ControlApiAppTestingsSettings,
DeprecatedControlApiAppSettingsOS,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DON'T MERGE till green e2e

@ovsds ovsds requested a review from Copilot January 23, 2026 17:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates connector settings from a deprecated attrs-based configuration system to a new Pydantic-based settings framework. The migration removes fallback mechanisms and simplifies the connector settings architecture.

Changes:

  • Removed deprecated connector settings classes and their fallback functions across all connectors
  • Updated connector settings to use Pydantic models inheriting from ConnectorSettings
  • Changed connector settings dictionaries to use string keys (connection type values) instead of ConnectionType enum keys
  • Removed unused dependencies and imports related to the old settings system

Reviewed changes

Copilot reviewed 103 out of 103 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/dl_maintenance/dl_maintenance/api/common.py Simplified connector settings loading by returning empty dict instead of using deprecated loader
lib/dl_file_uploader_worker_lib/dl_file_uploader_worker_lib/settings.py Removed deprecated connector settings classes and fallback functions
lib/dl_file_uploader_worker_lib/dl_file_uploader_worker_lib_tests/conftest.py Updated fixtures to use new Pydantic settings with string-keyed dictionaries
lib/dl_core/dl_core/connectors/settings/registry.py Removed deprecated settings registry infrastructure
lib/dl_core/dl_core/connectors/settings/primitives.py Removed deprecated settings helper functions
lib/dl_core/dl_core/connectors/settings/mixins.py Removed deprecated settings mixins
lib/dl_core/dl_core/services_registry/top_level.py Updated service registry to use string-keyed connector settings
lib/dl_connector_*/core/settings.py Migrated all connector-specific settings from attrs to Pydantic models
lib/dl_connector_bundle_chs3/chs3_base/core/settings.py Migrated FileS3 connector settings to Pydantic with nested root settings
lib/dl_configs/dl_configs/connectors_settings.py Removed entire file containing deprecated base classes
lib/dl_configs/dl_configs/settings_loaders/loader_env.py Removed deprecated connector settings loader function
lib/dl_api_lib/dl_api_lib/app_settings.py Added ConnectorsSettingsMixin to new settings classes
app/dl_data_api/dl_data_api/app.py Updated to load connectors settings directly from app settings instead of using separate loader

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/feat New features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants