MINOR - Add Application type for logs (#15802)

* MINOR - Add Application type for logs

* MINOR - Add Application type for logs

* Add application_task to DataInsightLatestRun interface and update LogsViewer component

---------

Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
This commit is contained in:
Pere Miquel Brull 2024-04-05 07:09:59 +02:00 committed by GitHub
parent 0fd4a1fb87
commit 67dee85abd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 4 deletions

View File

@ -96,8 +96,8 @@ public abstract class PipelineServiceClient {
"test_suite_task",
PipelineType.DATA_INSIGHT.toString(),
"data_insight_task",
PipelineType.ELASTIC_SEARCH_REINDEX.toString(),
"elasticsearch_reindex_task");
PipelineType.APPLICATION.toString(),
"application_task");
public static final String SERVER_VERSION;

View File

@ -15,6 +15,7 @@ import { PipelineStatus } from '../../../../generated/entity/services/ingestionP
export interface DataInsightLatestRun {
data_insight_task: string;
application_task: string;
total: string;
pipelineStatus: PipelineStatus;
}

View File

@ -91,7 +91,7 @@ const LogsViewer = () => {
const logs = await getLatestApplicationRuns(ingestionName);
setAppLatestRun(data[0]);
setLogs(logs.data_insight_task);
setLogs(logs.data_insight_task || logs.application_task);
return;
}

View File

@ -18,8 +18,8 @@ export interface IngestionPipelineLogByIdInterface {
lineage_task?: string;
test_suite_task?: string;
data_insight_task?: string;
elasticsearch_reindex_task?: string;
dbt_task?: string;
elasticsearch_reindex_task?: string;
total?: string;
after?: string;
}