Skip to content

Commit

Permalink
MINOR: [DOCS] Added init change of pipeline_name to breaking changes …
Browse files Browse the repository at this point in the history
…in docs (open-metadata#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 <[email protected]>
  • Loading branch information
OnkarVO7 and pmbrull authored May 23, 2024
1 parent 17aed8a commit 329622b
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

0 comments on commit 329622b

Please sign in to comment.