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:
Onkar Ravgan 2024-05-23 17:54:52 +05:30 committed by GitHub
parent 17aed8a9e9
commit 329622bb45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
```