mirror of
https://github.com/open-metadata/OpenMetadata
synced 2026-05-24 09:39:11 +00:00
* refactor(sampler): introduce EntityAdapter to centralise per-entity classification logic Replace scattered isinstance(entity, Table/Container) branches across processor.py, pii/base_processor.py, patch_mixin.py, and metadata_rest.py with a single EntityAdapter strategy pattern in sampler/entity_adapters.py. Each adapter encodes get_columns, set_columns, patch_fields, build_sampler_kwargs, pipeline_config_class, and service_type for one entity type. _BY_ENTITY and _BY_PIPELINE registries make lookup O(1). Adding a new classifiable entity now requires changes to entity_adapters.py only — no other ingestion files need to change. Also extracts build_database_service_conn_config into sampler/config_utils.py and updates the developer guide accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Apply PR feedback * Typing and text fixes * Apply gitar bot feedback * Fix tests * Apply Gitar bot suggestions --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| add-support-for-another-entity.md | ||