Skip to content

Commit

Permalink
Fix MetadataRest
Browse files Browse the repository at this point in the history
  • Loading branch information
IceS2 committed Jul 25, 2024
1 parent f5b90bf commit d3b3846
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ingestion/src/metadata/ingestion/sink/metadata_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from requests.exceptions import HTTPError

from metadata.config.common import ConfigModel
from metadata.data_insight.source.metadata import DataInsightRecord
from metadata.data_quality.api.models import TestCaseResultResponse, TestCaseResults
from metadata.generated.schema.analytics.reportData import ReportData
from metadata.generated.schema.api.lineage.addLineage import AddLineageRequest
Expand Down Expand Up @@ -488,14 +487,6 @@ def write_data_insight_sample(
)
return Either(right=record.record)

@_run_dispatch.register
def write_data_insight(self, record: DataInsightRecord) -> Either[ReportData]:
"""
Use the /dataQuality/testCases endpoint to ingest sample test suite
"""
self.metadata.add_data_insight_report_data(record.data)
return Either(left=None, right=record.data)

@_run_dispatch.register
def write_data_insight_kpi(self, record: KpiResult) -> Either[KpiResult]:
"""
Expand Down

0 comments on commit d3b3846

Please sign in to comment.