diff --git a/ui/src/index.tsx b/ui/src/index.tsx index f5e9d220ff7..928027a089e 100644 --- a/ui/src/index.tsx +++ b/ui/src/index.tsx @@ -45,6 +45,7 @@ import {disablePresentationMode} from 'src/shared/actions/app' // Styles import 'src/style/chronograf.scss' +import TaskRunsPage from 'src/tasks/components/TaskRunsPage' const rootNode = getRootNode() const basepath = getBasepath() @@ -120,6 +121,7 @@ class Root extends PureComponent { + diff --git a/ui/src/tasks/actions/v2/index.ts b/ui/src/tasks/actions/v2/index.ts index 889c3855fdc..9d498b02bce 100644 --- a/ui/src/tasks/actions/v2/index.ts +++ b/ui/src/tasks/actions/v2/index.ts @@ -3,7 +3,7 @@ import {push, goBack} from 'react-router-redux' import _ from 'lodash' // APIs -import {Task as TaskAPI, Organization} from '@influxdata/influx' +import {Task as TaskAPI, Organization, Run} from '@influxdata/influx' import {client} from 'src/utils/api' import {notify} from 'src/shared/actions/notifications' import { @@ -477,3 +477,8 @@ export const getErrorMessage = (e: any) => { } return message } + +export const getRuns = async (taskID: string): Promise => { + const runs = await client.tasks.getRunsByTaskID(taskID) + return runs +} diff --git a/ui/src/tasks/components/TaskRow.tsx b/ui/src/tasks/components/TaskRow.tsx index 1ab63e4c4c8..430446bc03c 100644 --- a/ui/src/tasks/components/TaskRow.tsx +++ b/ui/src/tasks/components/TaskRow.tsx @@ -71,6 +71,12 @@ export class TaskRow extends PureComponent { {this.schedule} +