OpenMetadata/ingestion-core
Alberto Miorin b3b5f44c23
Fix #1876: Allow dots in entity names (#2700)
Add getter and setter for `name` into EntityInterface

Refactor code in utility method.

Rename the escape method.

Fix webhook.

Fix pipeline tests

Fix airflowPipeline tests

Fix role, team, and user tests

Replace . with _DOT_ to keep compatibility with the past and avoid a migration.

Remove the Python code that was replacing the . with _DOT_.

Restore "no dots" for services and implement the JSON Schema rule.

** Entites escaping dots
1. AirflowPipeline
2. Chart
3. Dashboard
4. Database
5. Location
6. Metrics
7. MlModel
8. Pipeline
9. Table
10. Topic

** Entities rejecting dots
1. Database Service
2. Dashboard Service
3. Messaging Service
4. Pipeline Service
5. Storage Service

** Entities accepting dots
1. Bots
2. Policy
3. Report
4. Role
5. Team
6. User
7. Webhook

** Fields escaping dots
1. Column
2. Task

Add escape for Column and TableConstraints

Add escape to Task

Remove the Python code. It will be added in a follow-up PR.

Fix Pipeline entity tests
2022-02-17 08:21:53 +01:00
..

This guide will help you set up OpenMetadata Core Models
This guide will help you set up OpenMetadata Core Models

Python version 3.8+

These models are pydantic models automatically generated from the central JSON Schemas that define our APIs and Entities.

Prerequisites

  • Python >= 3.8.x

Docs

Please refer to the documentation here https://docs.open-metadata.org/connectors

Contribution

In order to contribute to this package:

cd ingestion-core
python -m virtualenv venv
source venv/bin/activate
python -m pip install ".[dev]"

OBS: During development we might need to treat this in a different virtual environment if we are yet to update the reference to the core package in openmetadata-ingestion.