mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-08 05:26:19 +00:00
MINOR: [DOCS] Added init change of pipeline_name to breaking changes in docs (#16397)
* Added pipeline_name to breaking changes * Update openmetadata-docs/content/v1.4.x/deployment/upgrade/versions/130-to-140.md --------- Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
This commit is contained in:
parent
17aed8a9e9
commit
329622bb45
@ -49,3 +49,38 @@ We have updated `openmetadata.yaml` config file and removed the below setting op
|
||||
dataQualityConfiguration:
|
||||
severityIncidentClassifier: ${DATA_QUALITY_SEVERITY_INCIDENT_CLASSIFIER:-"org.openmetadata.service.util.incidentSeverityClassifier.LogisticRegressionIncidentSeverityClassifier"}
|
||||
```
|
||||
|
||||
### Custom Connectors: Updates to the Initialization Method for Source Class
|
||||
|
||||
We have introduced a new parameter, `pipeline_name` to the initialization method of source python classes. This change will also apply to the initialization of custom connectors.
|
||||
|
||||
Please ensure to update your initialization methods accordingly, as demonstrated below.
|
||||
|
||||
Before:
|
||||
```
|
||||
@classmethod
|
||||
def create(
|
||||
cls,
|
||||
config_dict: dict,
|
||||
metadata_config: OpenMetadataConnection
|
||||
):
|
||||
config: WorkflowSource = WorkflowSource.parse_obj(config_dict)
|
||||
.....
|
||||
.....
|
||||
return cls(config, metadata_config)
|
||||
```
|
||||
|
||||
After 1.4.0 Upgrade:
|
||||
```
|
||||
@classmethod
|
||||
def create(
|
||||
cls,
|
||||
config_dict: dict,
|
||||
metadata_config: OpenMetadataConnection,
|
||||
pipeline_name: Optional[str] = None
|
||||
):
|
||||
config: WorkflowSource = WorkflowSource.parse_obj(config_dict)
|
||||
.....
|
||||
.....
|
||||
return cls(config, metadata_config)
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user