feat(dataflow): preserve publication review outcomes
Module Package Release / publish-packages (push) Successful in 13s
Module Package Release / publish-packages (push) Successful in 13s
This commit is contained in:
@@ -1584,6 +1584,26 @@ def _publish_pipeline_result(
|
||||
run.output_publication_ref = publication.ref
|
||||
run.output_datasource_ref = publication.datasource.ref
|
||||
run.output_materialization_ref = publication.materialization.ref
|
||||
if publication.status in {"published_with_warnings", "review_required"}:
|
||||
diagnostics = list(run.diagnostics)
|
||||
diagnostics.append(
|
||||
DataflowDiagnostic(
|
||||
severity="warning",
|
||||
code=(
|
||||
"publication.review_required"
|
||||
if publication.status == "review_required"
|
||||
else "publication.warning"
|
||||
),
|
||||
message=(
|
||||
"The output materialization requires review before it can "
|
||||
"become the datasource's current state."
|
||||
if publication.status == "review_required"
|
||||
else "The output was published with datasource validation "
|
||||
"warnings."
|
||||
),
|
||||
).model_dump(mode="json")
|
||||
)
|
||||
run.diagnostics = diagnostics
|
||||
|
||||
|
||||
def _mark_pipeline_run_failed(
|
||||
|
||||
Reference in New Issue
Block a user