Skip to content

Commit

Permalink
feat(pipeline): add destination history (#19714)
Browse files Browse the repository at this point in the history
* implement activity log

* Update UI snapshots for `chromium` (1)

* fixes

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <[email protected]>
  • Loading branch information
3 people authored Jan 16, 2024
1 parent 88cd774 commit aa0b801
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion frontend/src/scenes/pipeline/PipelineApp.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useValues } from 'kea'
import { ActivityLog } from 'lib/components/ActivityLog/ActivityLog'
import { NotFound } from 'lib/components/NotFound'
import { PageHeader } from 'lib/components/PageHeader'
import { FEATURE_FLAGS } from 'lib/constants'
Expand All @@ -9,7 +10,7 @@ import { PipelineAppLogs } from 'scenes/pipeline/PipelineAppLogs'
import { SceneExport } from 'scenes/sceneTypes'
import { urls } from 'scenes/urls'

import { PipelineAppKind, PipelineAppTab, PipelineTab } from '~/types'
import { ActivityScope, PipelineAppKind, PipelineAppTab, PipelineTab } from '~/types'

import { PipelineAppConfiguration } from './PipelineAppConfiguration'
import { pipelineAppLogic, PipelineAppLogicProps } from './pipelineAppLogic'
Expand Down Expand Up @@ -65,6 +66,7 @@ export function PipelineApp(params: { kindTab?: string; id?: string } = {}): JSX
[PipelineAppTab.Configuration]: <PipelineAppConfiguration />,
[PipelineAppTab.Metrics]: <PipelineAppMetrics pluginConfigId={id as number} />,
[PipelineAppTab.Logs]: <PipelineAppLogs id={id} kind={kind} />,
[PipelineAppTab.History]: <ActivityLog id={id} scope={ActivityScope.PLUGIN} />,
}

return (
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/scenes/pipeline/pipelineAppLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ export const pipelineAppLogic = kea<pipelineAppLogicType>([
return pluginConfigsLoading || pluginsLoading
},
],
tabs: [
(s) => [s.appBackend],
(appBackend) => {
if (appBackend === PipelineAppBackend.BatchExport) {
return Object.values(PipelineAppTab).filter((t) => t !== PipelineAppTab.History)
}

return Object.values(PipelineAppTab)
},
],
maybePluginConfig: [
(s, p) => [s.pluginConfigs, s.appBackend, p.id],
(pluginConfigs, appBackend, maybePluginConfigId): PluginConfigTypeNew | null => {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ export enum PipelineAppTab {
Configuration = 'configuration',
Logs = 'logs',
Metrics = 'metrics',
History = 'history',
}

export enum ProgressStatus {
Expand Down

0 comments on commit aa0b801

Please sign in to comment.