Skip to content

Commit

Permalink
MINOR - Add Application type for logs (#15802)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
pmbrull and Sachin-chaurasiya committed Apr 5, 2024
1 parent 473dcb7 commit 29ba3d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 29ba3d4

Please sign in to comment.