feat(pipelines): add pipelines view modes, time-range filtering, group aggregation, sorting, and job log polling
This commit is contained in:
@@ -516,7 +516,12 @@ export const deleteSecretAction = dataStatePart.createAction<{
|
||||
|
||||
export const fetchPipelinesAction = dataStatePart.createAction<{
|
||||
connectionId: string;
|
||||
projectId: string;
|
||||
projectId?: string;
|
||||
viewMode?: 'current' | 'project' | 'group' | 'error';
|
||||
groupId?: string;
|
||||
status?: string;
|
||||
sortBy?: 'created' | 'duration' | 'status';
|
||||
timeRange?: '1h' | '6h' | '1d' | '3d' | '7d' | '30d';
|
||||
}>(async (statePartArg, dataArg) => {
|
||||
const context = getActionContext();
|
||||
try {
|
||||
@@ -527,6 +532,11 @@ export const fetchPipelinesAction = dataStatePart.createAction<{
|
||||
identity: context.identity!,
|
||||
connectionId: dataArg.connectionId,
|
||||
projectId: dataArg.projectId,
|
||||
viewMode: dataArg.viewMode,
|
||||
groupId: dataArg.groupId,
|
||||
status: dataArg.status,
|
||||
sortBy: dataArg.sortBy,
|
||||
timeRange: dataArg.timeRange,
|
||||
});
|
||||
return { ...statePartArg.getState(), pipelines: response.pipelines };
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user