Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Aug 7, 2024
1 parent 7322c22 commit 2242953
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import {workspacePipelinePath} from '../workspace/workspacePath';

const BATCH_LIMIT = 500;

const QUERY_VERSION = 1;

export const useRunsForTimeline = ({
rangeMs,
filter,
Expand Down Expand Up @@ -65,12 +67,12 @@ export const useRunsForTimeline = ({
id: localCacheIdPrefix ? `${localCacheIdPrefix}-useRunsForTimeline-filtered` : false,
keyPrefix: JSON.stringify(filter),
keyMaxCount: 3,
version: 1,
version: QUERY_VERSION,
});
}
return new HourlyDataCache<RunTimelineFragment>({
id: localCacheIdPrefix ? `${localCacheIdPrefix}-useRunsForTimeline` : false,
version: 1,
version: QUERY_VERSION,
});
}, [filter, localCacheIdPrefix]);
const [completedRuns, setCompletedRuns] = useState<RunTimelineFragment[]>([]);
Expand Down

0 comments on commit 2242953

Please sign in to comment.