Skip to content

Commit

Permalink
Merge pull request #1276 from GnsP/error-classification-ui
Browse files Browse the repository at this point in the history
fix preview logs
  • Loading branch information
GnsP authored Jan 10, 2025
2 parents edd04a8 + 1a66ac9 commit 678ffe9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/cdap/components/LogViewer/TopPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import * as React from 'react';
import { Provider } from 'react-redux';
import withStyles, { WithStyles, StyleRules } from '@material-ui/core/styles/withStyles';
import DataFetcher from 'components/LogViewer/DataFetcher';
import Button from '@material-ui/core/Button';
Expand All @@ -27,6 +28,7 @@ import IconSVG from 'components/shared/IconSVG';
import LoadingSVG from 'components/shared/LoadingSVG';
import { getDownloadLogsUrl, getRawLogsUrl } from './LogsUrlUtils';
import RunLogsStatsChips from 'components/PipelineDetails/RunLevelInfo/RunLogsStatsChips';
import PipelineDetailStore from 'components/PipelineDetails/store';

export const TOP_PANEL_HEIGHT = '50px';

Expand Down Expand Up @@ -181,7 +183,9 @@ const TopPanelView: React.FC<ITopPanelProps> = ({
return (
<div className={classes.root} data-cy="log-viewer-top-panel" data-testid="log-viewer-top-panel">
<div className={classes.leftContainer}>
<RunLogsStatsChips />
<Provider store={PipelineDetailStore}>
<RunLogsStatsChips />
</Provider>
</div>
<div className={classes.rightContainer}>
<Button
Expand Down
2 changes: 1 addition & 1 deletion app/directives/dag-plus/my-dag-ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1829,6 +1829,6 @@ angular.module(PKG.name + '.commons')
}, true);

$scope.$watch('errorStages', function() {
vm.errorStages = $scope.errorStages;
vm.errorStages = $scope.errorStages || [];
}, true);
});

0 comments on commit 678ffe9

Please sign in to comment.