Skip to content

Commit

Permalink
Merge pull request openshift-pipelines#23 from vikram-raj/fix-all-ns
Browse files Browse the repository at this point in the history
ODC-7440: fix for all namespace selection
  • Loading branch information
openshift-merge-bot[bot] authored Dec 8, 2023
2 parents f8892fe + b1be472 commit db15433
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/pipelines-overview/PipelineRunsStatusCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ import {
import { SummaryProps } from './utils';
import { SummaryResponse, getResultsSummary } from '../utils/summary-api';
import { DataType } from '../utils/tekton-results';
import { LoadingInline } from '../Loading';
import { ALL_NAMESPACES_KEY } from '../../consts';

import './PipelinesOverview.scss';
import { LoadingInline } from '../Loading';

interface PipelinesRunsStatusCardProps {
timespan?: number;
Expand Down Expand Up @@ -71,6 +72,10 @@ const PipelinesRunsStatusCard: React.FC<PipelinesRunsStatusCardProps> = ({
};
const date = getDropDownDate(timespan).toISOString();

if (namespace == ALL_NAMESPACES_KEY) {
namespace = '-';
}

React.useEffect(() => {
const summaryOpt = {
summary: 'succeeded,cancelled,failed,others,running,total',
Expand Down

0 comments on commit db15433

Please sign in to comment.