@galaxy-io/filament-ui 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/queries/constants.d.ts +1 -0
- package/dist/api/queries/constants.js +2 -1
- package/dist/api/queries/pipeline_versions.d.ts +5 -0
- package/dist/api/queries/pipelines.js +8 -13
- package/dist/api/queries/runs.d.ts +1 -1
- package/dist/api/queries/runs.js +5 -11
- package/dist/api/utils.d.ts +1 -0
- package/dist/api/utils.js +3 -1
- package/dist/components/connections/ConnectorPreviewChip.d.ts +7 -0
- package/dist/components/connections/ConnectorPreviewChip.js +11 -0
- package/dist/constants.js +1 -1
- package/dist/gen/ingestion/v1/capabilities_pb.js +1 -1
- package/dist/gen/ingestion/v1/connectors_pb.d.ts +11 -30
- package/dist/gen/ingestion/v1/connectors_pb.js +2 -24
- package/dist/gen/ingestion/v1/pipelines_pb.d.ts +29 -0
- package/dist/gen/ingestion/v1/pipelines_pb.js +17 -12
- package/dist/gen/ingestion/v1/service_pb.js +1 -1
- package/dist/module/commands.js +1 -1
- package/dist/module/hooks.d.ts +5 -6
- package/dist/module/hooks.js +6 -1
- package/dist/module/routes.d.ts +1 -2
- package/dist/module/schemas.d.ts +1 -2
- package/dist/module/schemas.js +1 -2
- package/dist/pages/connections/ConnectionsPage.js +5 -1
- package/dist/pages/connections/components/card/ConnectionCard.d.ts +1 -0
- package/dist/pages/connections/components/card/ConnectionCard.js +9 -4
- package/dist/pages/connections/components/create/select/CreateConnectionSelectorCard.js +9 -4
- package/dist/pages/connections/components/create/select/CreateConnectionSelectorSidebar.js +2 -2
- package/dist/pages/connections/components/create/select/hooks/useCreateConnectionSelectorCatalog.js +1 -1
- package/dist/pages/connections/components/create/types.d.ts +1 -3
- package/dist/pages/connections/components/create/types.js +1 -3
- package/dist/pages/connections/components/create/utils.js +2 -3
- package/dist/pages/connections/components/form/ConnectionForm.js +2 -3
- package/dist/pages/connections/components/form/ConnectionFormPreviewAlert.d.ts +10 -0
- package/dist/pages/connections/components/form/{ConnectionFormMaturityAlert.js → ConnectionFormPreviewAlert.js} +5 -8
- package/dist/pages/connections/constants.d.ts +0 -3
- package/dist/pages/connections/constants.js +3 -23
- package/dist/pages/observability/ObservabilityPage.js +61 -66
- package/dist/pages/observability/components/ObservabilityPageActions.js +1 -3
- package/dist/pages/observability/components/ObservabilityWidgetEmpty.d.ts +8 -0
- package/dist/pages/observability/components/ObservabilityWidgetEmpty.js +30 -0
- package/dist/pages/observability/components/band/ObservabilityBand.d.ts +3 -0
- package/dist/pages/observability/components/band/ObservabilityBand.js +28 -0
- package/dist/pages/observability/components/band/ObservabilityBandList.d.ts +12 -0
- package/dist/pages/observability/components/band/ObservabilityBandList.js +81 -0
- package/dist/pages/observability/components/band/ObservabilityBandMetricTile.d.ts +10 -0
- package/dist/pages/observability/components/band/ObservabilityBandMetricTile.js +86 -0
- package/dist/pages/observability/components/band/ObservabilityBandPivotSelect.d.ts +7 -0
- package/dist/pages/observability/components/band/ObservabilityBandPivotSelect.js +37 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsChart.d.ts +10 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsChart.js +26 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsPastTile.d.ts +3 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsPastTile.js +128 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsTile.d.ts +3 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsTile.js +13 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsUpcomingTile.d.ts +3 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsUpcomingTile.js +63 -0
- package/dist/pages/observability/components/band/ObservabilityBandTile.d.ts +12 -0
- package/dist/pages/observability/components/band/ObservabilityBandTile.js +71 -0
- package/dist/pages/observability/components/band/ObservabilityBandTimeseriesChart.d.ts +14 -0
- package/dist/pages/observability/components/band/ObservabilityBandTimeseriesChart.js +48 -0
- package/dist/pages/observability/components/band/ObservabilityBandTopList.d.ts +12 -0
- package/dist/pages/observability/components/band/ObservabilityBandTopList.js +19 -0
- package/dist/pages/observability/components/band/constants.d.ts +25 -0
- package/dist/pages/observability/components/band/constants.js +81 -0
- package/dist/pages/observability/components/band/types.d.ts +27 -0
- package/dist/pages/observability/components/band/utils.d.ts +25 -0
- package/dist/pages/observability/components/band/utils.js +93 -0
- package/dist/pages/observability/components/connections/ObservabilityConnectionRow.d.ts +9 -0
- package/dist/pages/observability/components/connections/ObservabilityConnectionRow.js +57 -0
- package/dist/pages/observability/components/connections/ObservabilityConnectionsWidget.d.ts +7 -0
- package/dist/pages/observability/components/connections/ObservabilityConnectionsWidget.js +56 -0
- package/dist/pages/observability/components/connections/constants.d.ts +5 -0
- package/dist/pages/observability/components/connections/constants.js +24 -0
- package/dist/pages/observability/components/connections/types.d.ts +4 -0
- package/dist/pages/observability/components/connections/utils.d.ts +4 -0
- package/dist/pages/observability/components/connections/utils.js +23 -0
- package/dist/pages/observability/components/failures/ObservabilityFailuresBanner.d.ts +3 -0
- package/dist/pages/observability/components/failures/ObservabilityFailuresBanner.js +33 -0
- package/dist/pages/observability/components/failures/ObservabilityFailuresDetails.d.ts +7 -0
- package/dist/pages/observability/components/failures/ObservabilityFailuresDetails.js +99 -0
- package/dist/pages/observability/components/failures/constants.d.ts +2 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesBar.d.ts +7 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesBar.js +34 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesColumnCell.d.ts +7 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesColumnCell.js +15 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesHeader.d.ts +3 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesHeader.js +34 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesRow.d.ts +11 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesRow.js +120 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesWidget.d.ts +3 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesWidget.js +142 -0
- package/dist/pages/observability/components/pipelines/constants.d.ts +23 -0
- package/dist/pages/observability/components/pipelines/constants.js +33 -0
- package/dist/pages/observability/components/pipelines/types.d.ts +22 -0
- package/dist/pages/observability/components/pipelines/types.js +11 -0
- package/dist/pages/observability/components/pipelines/utils.d.ts +9 -0
- package/dist/pages/observability/components/pipelines/utils.js +73 -0
- package/dist/pages/observability/components/runs/ObservabilityRunsPastTable.js +6 -13
- package/dist/pages/observability/components/runs/ObservabilityRunsTableActions.d.ts +3 -0
- package/dist/pages/observability/components/runs/ObservabilityRunsTableActions.js +43 -0
- package/dist/pages/observability/components/runs/ObservabilityRunsTableWidget.js +2 -0
- package/dist/pages/observability/components/runs/ObservabilityRunsViewToggle.d.ts +3 -0
- package/dist/pages/observability/components/runs/ObservabilityRunsViewToggle.js +26 -0
- package/dist/pages/observability/components/runs/constants.d.ts +4 -10
- package/dist/pages/observability/components/runs/constants.js +8 -12
- package/dist/pages/observability/components/scheduled/ObservabilityScheduledWidget.d.ts +3 -0
- package/dist/pages/observability/components/scheduled/ObservabilityScheduledWidget.js +94 -0
- package/dist/pages/observability/components/setup/ObservabilitySetupChecklist.js +3 -1
- package/dist/pages/observability/components/setup/constants.js +1 -1
- package/dist/pages/observability/constants.d.ts +18 -3
- package/dist/pages/observability/constants.js +24 -4
- package/dist/pages/observability/hooks/useObservabilityAggregateQuery.d.ts +2 -0
- package/dist/pages/observability/hooks/useObservabilityAggregateQuery.js +13 -0
- package/dist/pages/observability/hooks/useObservabilityBandRanking.d.ts +8 -0
- package/dist/pages/observability/hooks/useObservabilityBandRanking.js +21 -0
- package/dist/pages/observability/hooks/useObservabilityBandUpcoming.d.ts +8 -0
- package/dist/pages/observability/hooks/useObservabilityBandUpcoming.js +45 -0
- package/dist/pages/observability/hooks/useObservabilityMetricInputs.d.ts +9 -0
- package/dist/pages/observability/hooks/useObservabilityMetricInputs.js +33 -0
- package/dist/pages/observability/hooks/useObservabilityPipelines.d.ts +12 -0
- package/dist/pages/observability/hooks/useObservabilityPipelines.js +22 -0
- package/dist/pages/observability/hooks/useObservabilityTimeseriesQuery.d.ts +2 -0
- package/dist/pages/observability/hooks/useObservabilityTimeseriesQuery.js +13 -0
- package/dist/pages/observability/types.d.ts +16 -0
- package/dist/pages/observability/types.js +7 -1
- package/dist/pages/observability/utils.d.ts +6 -1
- package/dist/pages/observability/utils.js +19 -2
- package/dist/pages/pipelines/canvas/graph/diff.js +4 -1
- package/dist/pages/pipelines/canvas/graph/serialize.js +1 -0
- package/dist/pages/pipelines/canvas/hooks/usePipelineCanvasEdgeResources.d.ts +2 -1
- package/dist/pages/pipelines/canvas/hooks/usePipelineCanvasEdgeResources.js +2 -0
- package/dist/pages/pipelines/canvas/hooks/usePipelineCanvasPanelResourceOptions.d.ts +1 -0
- package/dist/pages/pipelines/canvas/hooks/usePipelineCanvasPanelResourceOptions.js +2 -1
- package/dist/pages/pipelines/canvas/panel/overview/resource/PipelineCanvasPanelResourceDetail.js +25 -2
- package/dist/pages/pipelines/canvas/panel/overview/resource/PipelineCanvasPanelResourcePartitionsSection.d.ts +11 -0
- package/dist/pages/pipelines/canvas/panel/overview/resource/PipelineCanvasPanelResourcePartitionsSection.js +35 -0
- package/dist/pages/pipelines/canvas/types.d.ts +1 -0
- package/dist/pages/pipelines/components/create/CreatePipelineModalProvider.d.ts +2 -1
- package/dist/pages/pipelines/components/create/CreatePipelineModalProvider.js +4 -0
- package/dist/pages/pipelines/components/create/actions.d.ts +11 -2
- package/dist/pages/pipelines/components/create/actions.js +1 -0
- package/dist/pages/pipelines/components/create/hooks/useCreatePipelineResources.js +9 -3
- package/dist/pages/pipelines/components/create/reducer.js +16 -0
- package/dist/pages/pipelines/components/create/rows.js +9 -1
- package/dist/pages/pipelines/components/create/serialize.js +8 -2
- package/dist/pages/pipelines/components/create/steps/components/CreatePipelineModalResourcesColumnsPane.js +90 -31
- package/dist/pages/pipelines/components/create/steps/components/CreatePipelineModalResourcesPaneSection.d.ts +9 -0
- package/dist/pages/pipelines/components/create/steps/components/CreatePipelineModalResourcesPaneSection.js +78 -0
- package/dist/pages/pipelines/components/create/types.d.ts +4 -1
- package/dist/pages/pipelines/components/create/utils.js +1 -0
- package/dist/pages/pipelines/components/header/PipelinePageHeading.js +1 -1
- package/dist/pages/pipelines/components/resource/PipelineResourcePartitionsChip.d.ts +7 -0
- package/dist/pages/pipelines/components/resource/PipelineResourcePartitionsChip.js +11 -0
- package/dist/pages/pipelines/components/resource/PipelineResourcePartitionsTable.d.ts +11 -0
- package/dist/pages/pipelines/components/resource/PipelineResourcePartitionsTable.js +45 -0
- package/dist/pages/pipelines/components/resource/types.d.ts +6 -2
- package/dist/pages/pipelines/components/resource/types.js +1 -0
- package/dist/pages/pipelines/components/resource/utils.d.ts +11 -2
- package/dist/pages/pipelines/components/resource/utils.js +7 -2
- package/dist/pages/pipelines/components/table/PipelinesTable.js +1 -1
- package/dist/pages/pipelines/settings/PipelineSettingsPageAdvanced.js +1 -1
- package/dist/pages/pipelines/settings/PipelineSettingsPageDanger.js +1 -1
- package/dist/pages/pipelines/settings/PipelineSettingsPageGeneral.js +1 -1
- package/dist/pages/pipelines/settings/PipelineSettingsPageSchedule.js +1 -1
- package/dist/styles.css +18 -0
- package/package.json +1 -1
- package/dist/pages/connections/components/form/ConnectionFormMaturityAlert.d.ts +0 -11
- package/dist/pages/observability/components/metrics/ObservabilityMetricsWidget.d.ts +0 -3
- package/dist/pages/observability/components/metrics/ObservabilityMetricsWidget.js +0 -139
- package/dist/pages/observability/components/metrics/constants.d.ts +0 -3
- package/dist/pages/observability/components/metrics/constants.js +0 -11
- package/dist/pages/observability/components/runs/ObservabilityRunsChart.d.ts +0 -3
- package/dist/pages/observability/components/runs/ObservabilityRunsChart.js +0 -66
- package/dist/pages/observability/components/runs/ObservabilityRunsChartWidget.d.ts +0 -3
- package/dist/pages/observability/components/runs/ObservabilityRunsChartWidget.js +0 -75
- package/dist/pages/observability/components/runs/ObservabilityRunsScheduledChart.d.ts +0 -3
- package/dist/pages/observability/components/runs/ObservabilityRunsScheduledChart.js +0 -39
- package/dist/pages/observability/components/runs/types.d.ts +0 -1
- package/dist/pages/observability/components/runs/utils.d.ts +0 -14
- package/dist/pages/observability/components/runs/utils.js +0 -71
- package/dist/pages/observability/components/timeseries/ObservabilityPivotSelect.d.ts +0 -8
- package/dist/pages/observability/components/timeseries/ObservabilityPivotSelect.js +0 -28
- package/dist/pages/observability/components/timeseries/ObservabilityTimeseriesChart.d.ts +0 -14
- package/dist/pages/observability/components/timeseries/ObservabilityTimeseriesChart.js +0 -105
- package/dist/pages/observability/components/timeseries/ObservabilityTimeseriesWidget.d.ts +0 -19
- package/dist/pages/observability/components/timeseries/ObservabilityTimeseriesWidget.js +0 -61
- package/dist/pages/observability/components/timeseries/constants.d.ts +0 -19
- package/dist/pages/observability/components/timeseries/constants.js +0 -57
|
@@ -6,5 +6,6 @@ var PROBE_QUERY_OPTIONS = {
|
|
|
6
6
|
refetchOnWindowFocus: false
|
|
7
7
|
};
|
|
8
8
|
var ACTIVE_RUNS_REFETCH_INTERVAL = 3e3;
|
|
9
|
+
var SCHEDULED_REFETCH_MAX_INTERVAL = 6e4;
|
|
9
10
|
//#endregion
|
|
10
|
-
export { ACTIVE_RUNS_REFETCH_INTERVAL, PROBE_QUERY_OPTIONS };
|
|
11
|
+
export { ACTIVE_RUNS_REFETCH_INTERVAL, PROBE_QUERY_OPTIONS, SCHEDULED_REFETCH_MAX_INTERVAL };
|
|
@@ -36,6 +36,11 @@ export declare const useCreatePipelineVersionMutation: (options?: UseMutationOpt
|
|
|
36
36
|
resource?: string | undefined;
|
|
37
37
|
columns?: string[] | undefined;
|
|
38
38
|
})[] | undefined;
|
|
39
|
+
partitions?: (import('../../gen/ingestion/v1/pipelines_pb').ResourcePartitionSelection | {
|
|
40
|
+
readonly $typeName?: undefined;
|
|
41
|
+
resource?: string | undefined;
|
|
42
|
+
partitions?: string[] | undefined;
|
|
43
|
+
})[] | undefined;
|
|
39
44
|
})[] | undefined;
|
|
40
45
|
}) | undefined;
|
|
41
46
|
}, unknown>;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { GetPipelineRequestSchema } from "../../gen/ingestion/v1/pipelines_pb.js";
|
|
2
2
|
import { IngestionService } from "../../gen/ingestion/v1/service_pb.js";
|
|
3
|
-
import { INITIAL_PAGE_PARAM, createListSearchInput, getNextPageParam } from "../utils.js";
|
|
4
3
|
import { ACTIVE_RUNS_REFETCH_INTERVAL } from "./constants.js";
|
|
4
|
+
import { INITIAL_PAGE_PARAM, createListSearchInput, getNextPageParam, getScheduledRefetchInterval } from "../utils.js";
|
|
5
5
|
import { isRunActive } from "../../utils/runs.js";
|
|
6
6
|
import { createListRunsQueryKey } from "./runs.js";
|
|
7
7
|
import { create } from "@bufbuild/protobuf";
|
|
8
|
-
import {
|
|
9
|
-
import { createConnectQueryKey,
|
|
8
|
+
import { useQueryClient } from "@tanstack/react-query";
|
|
9
|
+
import { createConnectQueryKey, useMutation, useQuery, useSuspenseInfiniteQuery, useSuspenseQuery, useTransport } from "@connectrpc/connect-query";
|
|
10
10
|
//#region src/api/queries/pipelines.ts
|
|
11
11
|
var getListPipelinesRefetchInterval = (pipelines) => {
|
|
12
|
-
|
|
12
|
+
if (!pipelines) return false;
|
|
13
|
+
if (pipelines.some((pipeline) => pipeline.lastRun && isRunActive(pipeline.lastRun))) return ACTIVE_RUNS_REFETCH_INTERVAL;
|
|
14
|
+
const waits = pipelines.flatMap((pipeline) => pipeline.schedule?.config?.isEnabled && pipeline.schedule.nextFireAt ? [Number(pipeline.schedule.nextFireAt) - Date.now()] : []);
|
|
15
|
+
return getScheduledRefetchInterval(waits, ACTIVE_RUNS_REFETCH_INTERVAL);
|
|
13
16
|
};
|
|
14
17
|
var createListPipelinesInput = (search) => ({
|
|
15
18
|
includeLastRun: true,
|
|
@@ -68,14 +71,6 @@ var useGetPipelineQuery = ({ input, options = {} }) => {
|
|
|
68
71
|
var useSuspenseGetPipelineQuery = ({ input }) => {
|
|
69
72
|
return useSuspenseQuery(IngestionService.method.getPipeline, input);
|
|
70
73
|
};
|
|
71
|
-
var selectPipelines = (results) => results.flatMap((result) => result.data?.pipeline ?? []);
|
|
72
|
-
var useGetPipelineQueries = (ids) => {
|
|
73
|
-
const transport = useTransport();
|
|
74
|
-
return useQueries({
|
|
75
|
-
queries: ids.map((id) => createQueryOptions(IngestionService.method.getPipeline, createGetPipelineInput(id), { transport })),
|
|
76
|
-
combine: selectPipelines
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
74
|
var useCreatePipelineMutation = (options = {}) => {
|
|
80
75
|
const queryClient = useQueryClient();
|
|
81
76
|
const transport = useTransport();
|
|
@@ -113,4 +108,4 @@ var useDeletePipelineMutation = (options = {}) => {
|
|
|
113
108
|
});
|
|
114
109
|
};
|
|
115
110
|
//#endregion
|
|
116
|
-
export { createGetPipelineInput, createGetPipelineQueryKey, createListPipelinesInput, createListPipelinesQueryKey, useCreatePipelineMutation, useDeletePipelineMutation,
|
|
111
|
+
export { createGetPipelineInput, createGetPipelineQueryKey, createListPipelinesInput, createListPipelinesQueryKey, useCreatePipelineMutation, useDeletePipelineMutation, useGetPipelineQuery, useListPipelinesQuery, useSuspenseGetPipelineQuery, useSuspenseListPipelinesInfiniteQuery, useSuspenseListPipelinesQuery, useUpdatePipelineMutation };
|
|
@@ -5,7 +5,7 @@ import { GetRunRequest, GetRunResponse, ListRunsRequest, ListRunsResponse, RunEv
|
|
|
5
5
|
import { IngestionService } from '../../gen/ingestion/v1/service_pb';
|
|
6
6
|
import { InfiniteQueryInput, UseInfiniteQueryOptions } from '../utils';
|
|
7
7
|
export declare const createListRunsQueryKey: (input?: ListRunsRequest, transport?: Transport) => import('@connectrpc/connect-query').ConnectQueryKey<Omit<import('@bufbuild/protobuf').DescMessage, "field" | "typeName"> & {
|
|
8
|
-
field: Record<"
|
|
8
|
+
field: Record<"pagination" | "runs", import('@bufbuild/protobuf').DescField>;
|
|
9
9
|
typeName: "ingestion.v1.ListRunsResponse";
|
|
10
10
|
} & {
|
|
11
11
|
readonly $codegenv2: {
|
package/dist/api/queries/runs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ListRunsRequestSchema, RunStatus, TailRunRequestSchema } from "../../gen/ingestion/v1/runs_pb.js";
|
|
2
2
|
import { ACTIVE_RUN_STATUSES } from "../../constants.js";
|
|
3
3
|
import { IngestionService } from "../../gen/ingestion/v1/service_pb.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ACTIVE_RUNS_REFETCH_INTERVAL, SCHEDULED_REFETCH_MAX_INTERVAL } from "./constants.js";
|
|
5
|
+
import { INITIAL_PAGE_PARAM, batchIterable, getNextPageParam, getScheduledRefetchInterval } from "../utils.js";
|
|
6
6
|
import { isRunActive } from "../../utils/runs.js";
|
|
7
7
|
import { createGetPipelineInput, createGetPipelineQueryKey, createListPipelinesQueryKey, useGetPipelineQuery } from "./pipelines.js";
|
|
8
8
|
import { create } from "@bufbuild/protobuf";
|
|
@@ -20,18 +20,12 @@ var createListRunsQueryKey = (input, transport) => {
|
|
|
20
20
|
cardinality: void 0
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
var SCHEDULED_REFETCH_MAX_INTERVAL = 6e4;
|
|
24
23
|
var IDLE_RUNS_REFETCH_INTERVAL = 3e4;
|
|
25
|
-
var
|
|
26
|
-
const scheduled = runs.filter((run) => run.status === RunStatus.SCHEDULED);
|
|
27
|
-
if (scheduled.length === 0) return false;
|
|
28
|
-
const waits = scheduled.map((run) => run.scheduledAt ? Number(run.scheduledAt) - Date.now() : SCHEDULED_REFETCH_MAX_INTERVAL);
|
|
29
|
-
return Math.min(Math.max(Math.min(...waits), floor), SCHEDULED_REFETCH_MAX_INTERVAL);
|
|
30
|
-
};
|
|
24
|
+
var getRunsScheduledRefetchInterval = (runs, floor) => getScheduledRefetchInterval(runs.filter((run) => run.status === RunStatus.SCHEDULED).map((run) => run.scheduledAt ? Number(run.scheduledAt) - Date.now() : SCHEDULED_REFETCH_MAX_INTERVAL), floor);
|
|
31
25
|
var getListRunsRefetchInterval = (runs) => {
|
|
32
26
|
if (!runs) return false;
|
|
33
27
|
if (runs.some((run) => isRunActive(run))) return ACTIVE_RUNS_REFETCH_INTERVAL;
|
|
34
|
-
return
|
|
28
|
+
return getRunsScheduledRefetchInterval(runs, ACTIVE_RUNS_REFETCH_INTERVAL);
|
|
35
29
|
};
|
|
36
30
|
var getActiveRunsRefetchInterval = (runs, nextFireAt) => {
|
|
37
31
|
if (runs?.some((run) => isRunActive(run))) return ACTIVE_RUNS_REFETCH_INTERVAL;
|
|
@@ -110,7 +104,7 @@ var useSuspenseListRunsInfiniteQuery = ({ input } = {}) => {
|
|
|
110
104
|
var getGetRunRefetchInterval = (run) => {
|
|
111
105
|
if (!run) return false;
|
|
112
106
|
if (isRunActive(run)) return GET_RUN_REFETCH_INTERVAL;
|
|
113
|
-
return
|
|
107
|
+
return getRunsScheduledRefetchInterval([run], GET_RUN_REFETCH_INTERVAL);
|
|
114
108
|
};
|
|
115
109
|
var createGetRunQueryKey = (input, transport) => {
|
|
116
110
|
return createConnectQueryKey({
|
package/dist/api/utils.d.ts
CHANGED
|
@@ -18,3 +18,4 @@ export declare const createListSearchInput: ({ q, sortBy, sortOrder }: ListSearc
|
|
|
18
18
|
sorting: import('../gen/ingestion/v1/sorting_pb').SortingRequest;
|
|
19
19
|
};
|
|
20
20
|
export declare function batchIterable<T>(source: AsyncIterable<T>, intervalMs: number): AsyncGenerator<T[]>;
|
|
21
|
+
export declare const getScheduledRefetchInterval: (waits: number[], floor: number) => number | false;
|
package/dist/api/utils.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SortBy, SortOrder, SortingRequestSchema } from "../gen/ingestion/v1/sorting_pb.js";
|
|
2
|
+
import { SCHEDULED_REFETCH_MAX_INTERVAL } from "./queries/constants.js";
|
|
2
3
|
import { create } from "@bufbuild/protobuf";
|
|
3
4
|
//#region src/api/utils.ts
|
|
4
5
|
var DEFAULT_PAGE_SIZE = 25;
|
|
@@ -56,5 +57,6 @@ async function* batchIterable(source, intervalMs) {
|
|
|
56
57
|
await iterator.return?.();
|
|
57
58
|
}
|
|
58
59
|
}
|
|
60
|
+
var getScheduledRefetchInterval = (waits, floor) => waits.length === 0 ? false : Math.min(Math.max(Math.min(...waits), floor), SCHEDULED_REFETCH_MAX_INTERVAL);
|
|
59
61
|
//#endregion
|
|
60
|
-
export { INITIAL_PAGE_PARAM, batchIterable, createListSearchInput, createListSortingInput, getNextPageParam };
|
|
62
|
+
export { INITIAL_PAGE_PARAM, batchIterable, createListSearchInput, createListSortingInput, getNextPageParam, getScheduledRefetchInterval };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ConnectorSpec } from '../../gen/ingestion/v1/connectors_pb';
|
|
3
|
+
interface ConnectorPreviewChipProps {
|
|
4
|
+
isPreview: ConnectorSpec["isPreview"];
|
|
5
|
+
}
|
|
6
|
+
declare const ConnectorPreviewChip: FC<ConnectorPreviewChipProps>;
|
|
7
|
+
export default ConnectorPreviewChip;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import Chip, { ChipSize, ChipVariant } from "@galaxy-io/dls/chips/Chip";
|
|
3
|
+
//#region src/components/connections/ConnectorPreviewChip.tsx
|
|
4
|
+
var ConnectorPreviewChip = ({ isPreview }) => isPreview ? /* @__PURE__ */ jsx(Chip, {
|
|
5
|
+
label: "Preview",
|
|
6
|
+
tooltip: "This connector is in preview",
|
|
7
|
+
variant: ChipVariant.TERTIARY,
|
|
8
|
+
size: ChipSize.SMALL
|
|
9
|
+
}) : null;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ConnectorPreviewChip as default };
|
package/dist/constants.js
CHANGED
|
@@ -4,7 +4,7 @@ var IS_DEBUG = process.env.NODE_ENV !== "production";
|
|
|
4
4
|
var NOOP = () => {};
|
|
5
5
|
var GITHUB_REPO_URL = "https://github.com/galaxy-io/filament";
|
|
6
6
|
var DOCUMENTATION_URL = "https://filament.getgalaxy.io";
|
|
7
|
-
var SLACK_COMMUNITY_URL = "https://join.slack.com/t/galaxy-
|
|
7
|
+
var SLACK_COMMUNITY_URL = "https://join.slack.com/t/galaxy-io-community/shared_invite/zt-45qln0zg5-9CTvKVXugvh3sEhpD6KzJQ";
|
|
8
8
|
var ACTIVE_RUN_STATUSES = /* @__PURE__ */ new Set([
|
|
9
9
|
RunStatus.REQUESTED,
|
|
10
10
|
RunStatus.RUNNING,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { file_ingestion_v1_common } from "./common_pb.js";
|
|
2
|
-
import { file_ingestion_v1_connectors } from "./connectors_pb.js";
|
|
3
2
|
import { file_ingestion_v1_pipelines } from "./pipelines_pb.js";
|
|
3
|
+
import { file_ingestion_v1_connectors } from "./connectors_pb.js";
|
|
4
4
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
//#region src/gen/ingestion/v1/capabilities_pb.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2';
|
|
2
2
|
import { ConfigSchema, ConnectorKind, ReplicationMode } from './common_pb';
|
|
3
3
|
import { PaginationRequest, PaginationResponse } from './pagination_pb';
|
|
4
4
|
import { SortingRequest } from './sorting_pb';
|
|
@@ -53,10 +53,6 @@ export type ConnectorSpec = Message<"ingestion.v1.ConnectorSpec"> & {
|
|
|
53
53
|
* @generated from field: string schema_field = 10;
|
|
54
54
|
*/
|
|
55
55
|
schemaField: string;
|
|
56
|
-
/**
|
|
57
|
-
* @generated from field: ingestion.v1.ConnectorMaturity maturity = 11;
|
|
58
|
-
*/
|
|
59
|
-
maturity: ConnectorMaturity;
|
|
60
56
|
/**
|
|
61
57
|
* @generated from field: string api_version = 12;
|
|
62
58
|
*/
|
|
@@ -67,6 +63,10 @@ export type ConnectorSpec = Message<"ingestion.v1.ConnectorSpec"> & {
|
|
|
67
63
|
* @generated from field: string alias_target = 13;
|
|
68
64
|
*/
|
|
69
65
|
aliasTarget: string;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: bool is_preview = 14;
|
|
68
|
+
*/
|
|
69
|
+
isPreview: boolean;
|
|
70
70
|
};
|
|
71
71
|
/**
|
|
72
72
|
* Describes the message ingestion.v1.ConnectorSpec.
|
|
@@ -391,6 +391,12 @@ export type ResourceColumns = Message<"ingestion.v1.ResourceColumns"> & {
|
|
|
391
391
|
* @generated from field: bool selectable_columns = 4;
|
|
392
392
|
*/
|
|
393
393
|
selectableColumns: boolean;
|
|
394
|
+
/**
|
|
395
|
+
* The resource's partitions an edge may select; empty when it is not partitioned.
|
|
396
|
+
*
|
|
397
|
+
* @generated from field: repeated string partitions = 5;
|
|
398
|
+
*/
|
|
399
|
+
partitions: string[];
|
|
394
400
|
};
|
|
395
401
|
/**
|
|
396
402
|
* Describes the message ingestion.v1.ResourceColumns.
|
|
@@ -411,28 +417,3 @@ export type GetResourceColumnsResponse = Message<"ingestion.v1.GetResourceColumn
|
|
|
411
417
|
* Use `create(GetResourceColumnsResponseSchema)` to create a new message.
|
|
412
418
|
*/
|
|
413
419
|
export declare const GetResourceColumnsResponseSchema: GenMessage<GetResourceColumnsResponse>;
|
|
414
|
-
/**
|
|
415
|
-
* @generated from enum ingestion.v1.ConnectorMaturity
|
|
416
|
-
*/
|
|
417
|
-
export declare enum ConnectorMaturity {
|
|
418
|
-
/**
|
|
419
|
-
* @generated from enum value: CONNECTOR_MATURITY_UNSPECIFIED = 0;
|
|
420
|
-
*/
|
|
421
|
-
UNSPECIFIED = 0,
|
|
422
|
-
/**
|
|
423
|
-
* @generated from enum value: CONNECTOR_MATURITY_ALPHA = 1;
|
|
424
|
-
*/
|
|
425
|
-
ALPHA = 1,
|
|
426
|
-
/**
|
|
427
|
-
* @generated from enum value: CONNECTOR_MATURITY_BETA = 2;
|
|
428
|
-
*/
|
|
429
|
-
BETA = 2,
|
|
430
|
-
/**
|
|
431
|
-
* @generated from enum value: CONNECTOR_MATURITY_STABLE = 3;
|
|
432
|
-
*/
|
|
433
|
-
STABLE = 3
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* Describes the enum ingestion.v1.ConnectorMaturity.
|
|
437
|
-
*/
|
|
438
|
-
export declare const ConnectorMaturitySchema: GenEnum<ConnectorMaturity>;
|
|
@@ -7,7 +7,7 @@ import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file ingestion/v1/connectors.proto.
|
|
9
9
|
*/
|
|
10
|
-
var file_ingestion_v1_connectors = /*@__PURE__*/ fileDesc("
|
|
10
|
+
var file_ingestion_v1_connectors = /*@__PURE__*/ fileDesc("Ch1pbmdlc3Rpb24vdjEvY29ubmVjdG9ycy5wcm90bxIMaW5nZXN0aW9uLnYxIvkCCg1Db25uZWN0b3JTcGVjEgwKBG5hbWUYASABKAkSFAoMZGlzcGxheV9uYW1lGAIgASgJEikKBGtpbmQYAyABKA4yGy5pbmdlc3Rpb24udjEuQ29ubmVjdG9yS2luZBIPCgd2ZXJzaW9uGAQgASgJEiwKBW1vZGVzGAUgAygOMh0uaW5nZXN0aW9uLnYxLlJlcGxpY2F0aW9uTW9kZRIxCg1jb25maWdfc2NoZW1hGAYgASgLMhouaW5nZXN0aW9uLnYxLkNvbmZpZ1NjaGVtYRITCgtkZXNjcmlwdGlvbhgHIAEoCRIVCg1kYXJrX2xvZ29fdXJsGAggASgJEhYKDmxpZ2h0X2xvZ29fdXJsGAkgASgJEhQKDHNjaGVtYV9maWVsZBgKIAEoCRITCgthcGlfdmVyc2lvbhgMIAEoCRIUCgxhbGl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XJhYmxlGAogASgIEhkKEXN1cHBvcnRzX2xvb2tiYWNrGAsgASgIIp8BCg9SZXNvdXJjZUNvbHVtbnMSEAoIcmVzb3VyY2UYASABKAkSLQoHY29sdW1ucxgCIAMoCzIcLmluZ2VzdGlvbi52MS5SZXNvdXJjZUNvbHVtbhIbChNtYW5hZ2VkX2luY3JlbWVudGFsGAMgASgIEhoKEnNlbGVjdGFibGVfY29sdW1ucxgEIAEoCBISCgpwYXJ0aXRpb25zGAUgAygJIk4KGkdldFJlc291cmNlQ29sdW1uc1Jlc3BvbnNlEjAKCXJlc291cmNlcxgBIAMoCzIdLmluZ2VzdGlvbi52MS5SZXNvdXJjZUNvbHVtbnNiBnByb3RvMw", [
|
|
11
11
|
file_google_protobuf_struct,
|
|
12
12
|
file_ingestion_v1_common,
|
|
13
13
|
file_ingestion_v1_pagination,
|
|
@@ -38,27 +38,5 @@ var ResourceSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_connectors, 9);
|
|
|
38
38
|
* Use `create(GetResourceColumnsRequestSchema)` to create a new message.
|
|
39
39
|
*/
|
|
40
40
|
var GetResourceColumnsRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_connectors, 11);
|
|
41
|
-
/**
|
|
42
|
-
* @generated from enum ingestion.v1.ConnectorMaturity
|
|
43
|
-
*/
|
|
44
|
-
var ConnectorMaturity = /* @__PURE__ */ function(ConnectorMaturity) {
|
|
45
|
-
/**
|
|
46
|
-
* @generated from enum value: CONNECTOR_MATURITY_UNSPECIFIED = 0;
|
|
47
|
-
*/
|
|
48
|
-
ConnectorMaturity[ConnectorMaturity["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
49
|
-
/**
|
|
50
|
-
* @generated from enum value: CONNECTOR_MATURITY_ALPHA = 1;
|
|
51
|
-
*/
|
|
52
|
-
ConnectorMaturity[ConnectorMaturity["ALPHA"] = 1] = "ALPHA";
|
|
53
|
-
/**
|
|
54
|
-
* @generated from enum value: CONNECTOR_MATURITY_BETA = 2;
|
|
55
|
-
*/
|
|
56
|
-
ConnectorMaturity[ConnectorMaturity["BETA"] = 2] = "BETA";
|
|
57
|
-
/**
|
|
58
|
-
* @generated from enum value: CONNECTOR_MATURITY_STABLE = 3;
|
|
59
|
-
*/
|
|
60
|
-
ConnectorMaturity[ConnectorMaturity["STABLE"] = 3] = "STABLE";
|
|
61
|
-
return ConnectorMaturity;
|
|
62
|
-
}({});
|
|
63
41
|
//#endregion
|
|
64
|
-
export {
|
|
42
|
+
export { DiscoverResourcesRequestSchema, GetConnectorRequestSchema, GetResourceColumnsRequestSchema, ResourceSchema, ValidateConfigRequestSchema, file_ingestion_v1_connectors };
|
|
@@ -115,6 +115,17 @@ export type PipelineEdge = Message<"ingestion.v1.PipelineEdge"> & {
|
|
|
115
115
|
* @generated from field: repeated ingestion.v1.ResourceColumnSelection columns = 10;
|
|
116
116
|
*/
|
|
117
117
|
columns: ResourceColumnSelection[];
|
|
118
|
+
/**
|
|
119
|
+
* partitions narrows the partitions a full read or a change stream's
|
|
120
|
+
* initial snapshot backfills from each partitioned resource. The change
|
|
121
|
+
* stream still carries every partition, including ones created later. An
|
|
122
|
+
* all-resource edge may configure several resources; a resource-specific
|
|
123
|
+
* edge may configure only its own resource. An omitted resource backfills
|
|
124
|
+
* every partition, and an empty selection backfills none.
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: repeated ingestion.v1.ResourcePartitionSelection partitions = 11;
|
|
127
|
+
*/
|
|
128
|
+
partitions: ResourcePartitionSelection[];
|
|
118
129
|
};
|
|
119
130
|
/**
|
|
120
131
|
* Describes the message ingestion.v1.PipelineEdge.
|
|
@@ -139,6 +150,24 @@ export type ResourceColumnSelection = Message<"ingestion.v1.ResourceColumnSelect
|
|
|
139
150
|
* Use `create(ResourceColumnSelectionSchema)` to create a new message.
|
|
140
151
|
*/
|
|
141
152
|
export declare const ResourceColumnSelectionSchema: GenMessage<ResourceColumnSelection>;
|
|
153
|
+
/**
|
|
154
|
+
* @generated from message ingestion.v1.ResourcePartitionSelection
|
|
155
|
+
*/
|
|
156
|
+
export type ResourcePartitionSelection = Message<"ingestion.v1.ResourcePartitionSelection"> & {
|
|
157
|
+
/**
|
|
158
|
+
* @generated from field: string resource = 1;
|
|
159
|
+
*/
|
|
160
|
+
resource: string;
|
|
161
|
+
/**
|
|
162
|
+
* @generated from field: repeated string partitions = 2;
|
|
163
|
+
*/
|
|
164
|
+
partitions: string[];
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Describes the message ingestion.v1.ResourcePartitionSelection.
|
|
168
|
+
* Use `create(ResourcePartitionSelectionSchema)` to create a new message.
|
|
169
|
+
*/
|
|
170
|
+
export declare const ResourcePartitionSelectionSchema: GenMessage<ResourcePartitionSelection>;
|
|
142
171
|
/**
|
|
143
172
|
* @generated from message ingestion.v1.ResourceCursorConfig
|
|
144
173
|
*/
|
|
@@ -8,7 +8,7 @@ import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file ingestion/v1/pipelines.proto.
|
|
10
10
|
*/
|
|
11
|
-
var file_ingestion_v1_pipelines = /*@__PURE__*/ fileDesc("Chxpbmdlc3Rpb24vdjEvcGlwZWxpbmVzLnByb3RvEgxpbmdlc3Rpb24udjEi+
|
|
11
|
+
var file_ingestion_v1_pipelines = /*@__PURE__*/ fileDesc("Chxpbmdlc3Rpb24vdjEvcGlwZWxpbmVzLnByb3RvEgxpbmdlc3Rpb24udjEi+QEKDFBpcGVsaW5lTm9kZRIKCgJpZBgBIAEoCRIpCgRraW5kGAIgASgOMhsuaW5nZXN0aW9uLnYxLkNvbm5lY3RvcktpbmQSFQoNY29ubmVjdGlvbl9pZBgDIAEoCRInCgZjb25maWcYBCABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Ej8KC3NlY3JldF9yZWZzGAUgAygLMiouaW5nZXN0aW9uLnYxLlBpcGVsaW5lTm9kZS5TZWNyZXRSZWZzRW50cnkaMQoPU2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pbmF0aW9uUmVzcG9uc2UiIwoVRGVsZXRlUGlwZWxpbmVSZXF1ZXN0EgoKAmlkGAEgASgJIhgKFkRlbGV0ZVBpcGVsaW5lUmVzcG9uc2UqqAEKHVBpcGVsaW5lU2NoZWR1bGVPdmVybGFwUG9saWN5EjAKLFBJUEVMSU5FX1NDSEVEVUxFX09WRVJMQVBfUE9MSUNZX1VOU1BFQ0lGSUVEEAASKQolUElQRUxJTkVfU0NIRURVTEVfT1ZFUkxBUF9QT0xJQ1lfU0tJUBABEioKJlBJUEVMSU5FX1NDSEVEVUxFX09WRVJMQVBfUE9MSUNZX0FMTE9XEAJiBnByb3RvMw", [
|
|
12
12
|
file_google_protobuf_struct,
|
|
13
13
|
file_ingestion_v1_common,
|
|
14
14
|
file_ingestion_v1_pagination,
|
|
@@ -31,54 +31,59 @@ var PipelineEdgeSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
|
31
31
|
*/
|
|
32
32
|
var ResourceColumnSelectionSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 2);
|
|
33
33
|
/**
|
|
34
|
+
* Describes the message ingestion.v1.ResourcePartitionSelection.
|
|
35
|
+
* Use `create(ResourcePartitionSelectionSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
var ResourcePartitionSelectionSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 3);
|
|
38
|
+
/**
|
|
34
39
|
* Describes the message ingestion.v1.ResourceCursorConfig.
|
|
35
40
|
* Use `create(ResourceCursorConfigSchema)` to create a new message.
|
|
36
41
|
*/
|
|
37
|
-
var ResourceCursorConfigSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
42
|
+
var ResourceCursorConfigSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 4);
|
|
38
43
|
/**
|
|
39
44
|
* Describes the message ingestion.v1.PipelineGraph.
|
|
40
45
|
* Use `create(PipelineGraphSchema)` to create a new message.
|
|
41
46
|
*/
|
|
42
|
-
var PipelineGraphSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
47
|
+
var PipelineGraphSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 5);
|
|
43
48
|
/**
|
|
44
49
|
* Describes the message ingestion.v1.CreatePipelineRequest.
|
|
45
50
|
* Use `create(CreatePipelineRequestSchema)` to create a new message.
|
|
46
51
|
*/
|
|
47
|
-
var CreatePipelineRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
52
|
+
var CreatePipelineRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 10);
|
|
48
53
|
/**
|
|
49
54
|
* Describes the message ingestion.v1.CreatePipelineScheduleRequest.
|
|
50
55
|
* Use `create(CreatePipelineScheduleRequestSchema)` to create a new message.
|
|
51
56
|
*/
|
|
52
|
-
var CreatePipelineScheduleRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
57
|
+
var CreatePipelineScheduleRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 12);
|
|
53
58
|
/**
|
|
54
59
|
* Describes the message ingestion.v1.UpdatePipelineScheduleRequest.
|
|
55
60
|
* Use `create(UpdatePipelineScheduleRequestSchema)` to create a new message.
|
|
56
61
|
*/
|
|
57
|
-
var UpdatePipelineScheduleRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
62
|
+
var UpdatePipelineScheduleRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 14);
|
|
58
63
|
/**
|
|
59
64
|
* Describes the message ingestion.v1.CreatePipelineVersionRequest.
|
|
60
65
|
* Use `create(CreatePipelineVersionRequestSchema)` to create a new message.
|
|
61
66
|
*/
|
|
62
|
-
var CreatePipelineVersionRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
67
|
+
var CreatePipelineVersionRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 16);
|
|
63
68
|
/**
|
|
64
69
|
* Describes the message ingestion.v1.UpdatePipelineRequest.
|
|
65
70
|
* Use `create(UpdatePipelineRequestSchema)` to create a new message.
|
|
66
71
|
*/
|
|
67
|
-
var UpdatePipelineRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
72
|
+
var UpdatePipelineRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 18);
|
|
68
73
|
/**
|
|
69
74
|
* Describes the message ingestion.v1.GetPipelineRequest.
|
|
70
75
|
* Use `create(GetPipelineRequestSchema)` to create a new message.
|
|
71
76
|
*/
|
|
72
|
-
var GetPipelineRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
77
|
+
var GetPipelineRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 20);
|
|
73
78
|
/**
|
|
74
79
|
* Describes the message ingestion.v1.ListPipelinesRequest.
|
|
75
80
|
* Use `create(ListPipelinesRequestSchema)` to create a new message.
|
|
76
81
|
*/
|
|
77
|
-
var ListPipelinesRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
82
|
+
var ListPipelinesRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 26);
|
|
78
83
|
/**
|
|
79
84
|
* Describes the message ingestion.v1.DeletePipelineRequest.
|
|
80
85
|
* Use `create(DeletePipelineRequestSchema)` to create a new message.
|
|
81
86
|
*/
|
|
82
|
-
var DeletePipelineRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines,
|
|
87
|
+
var DeletePipelineRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_pipelines, 28);
|
|
83
88
|
//#endregion
|
|
84
|
-
export { CreatePipelineRequestSchema, CreatePipelineScheduleRequestSchema, CreatePipelineVersionRequestSchema, DeletePipelineRequestSchema, GetPipelineRequestSchema, ListPipelinesRequestSchema, PipelineEdgeSchema, PipelineGraphSchema, PipelineNodeSchema, ResourceColumnSelectionSchema, ResourceCursorConfigSchema, UpdatePipelineRequestSchema, UpdatePipelineScheduleRequestSchema, file_ingestion_v1_pipelines };
|
|
89
|
+
export { CreatePipelineRequestSchema, CreatePipelineScheduleRequestSchema, CreatePipelineVersionRequestSchema, DeletePipelineRequestSchema, GetPipelineRequestSchema, ListPipelinesRequestSchema, PipelineEdgeSchema, PipelineGraphSchema, PipelineNodeSchema, ResourceColumnSelectionSchema, ResourceCursorConfigSchema, ResourcePartitionSelectionSchema, UpdatePipelineRequestSchema, UpdatePipelineScheduleRequestSchema, file_ingestion_v1_pipelines };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { file_ingestion_v1_runs } from "./runs_pb.js";
|
|
2
|
-
import { file_ingestion_v1_connectors } from "./connectors_pb.js";
|
|
3
2
|
import { file_ingestion_v1_pipelines } from "./pipelines_pb.js";
|
|
3
|
+
import { file_ingestion_v1_connectors } from "./connectors_pb.js";
|
|
4
4
|
import { file_ingestion_v1_capabilities } from "./capabilities_pb.js";
|
|
5
5
|
import { file_ingestion_v1_connections } from "./connections_pb.js";
|
|
6
6
|
import { file_ingestion_v1_notifiers } from "./notifiers_pb.js";
|
package/dist/module/commands.js
CHANGED
|
@@ -4,8 +4,8 @@ import { FilamentNavItem, Flow } from "./types.js";
|
|
|
4
4
|
import { useFilamentFlowOpen, useFilamentMountedBase, useFilamentSearchUpdate } from "./hooks.js";
|
|
5
5
|
import { FILAMENT_NAV_ITEMS, FILAMENT_NAV_ITEM_TO_COMMAND_ID_MAP, FILAMENT_NAV_ITEM_TO_ICON_MAP, FILAMENT_NAV_ITEM_TO_KEYWORDS_MAP, FILAMENT_NAV_ITEM_TO_LABEL_MAP, FILAMENT_NAV_ITEM_TO_PATH_MAP } from "./nav.js";
|
|
6
6
|
import { CONNECTOR_KIND_TO_PATH_MAP } from "../components/connections/constants.js";
|
|
7
|
-
import { CONNECTOR_KIND_TO_CREATE_TITLE_MAP } from "../pages/connections/constants.js";
|
|
8
7
|
import { useListConnectionsQuery } from "../api/queries/connections.js";
|
|
8
|
+
import { CONNECTOR_KIND_TO_CREATE_TITLE_MAP } from "../pages/connections/constants.js";
|
|
9
9
|
import { PIPELINE_CREATE_TITLE } from "../components/pipelines/constants.js";
|
|
10
10
|
import { formatPipelineName } from "../components/pipelines/utils.js";
|
|
11
11
|
import { useListPipelinesQuery } from "../api/queries/pipelines.js";
|
package/dist/module/hooks.d.ts
CHANGED
|
@@ -37,13 +37,12 @@ export declare const useObservabilitySearch: () => {
|
|
|
37
37
|
timeframe: import('../pages/observability/types').ObservabilityTimeframe;
|
|
38
38
|
refreshInterval: import('../pages/observability/types').ObservabilityRefreshInterval;
|
|
39
39
|
runs: import('../pages/observability/types').ObservabilityRunsView;
|
|
40
|
+
throughput: import('../pages/observability/types').ObservabilityThroughputView;
|
|
41
|
+
throughputPivot: import('../gen/metrics/v1/metrics_pb').MetricDimension;
|
|
42
|
+
usage: import('../pages/observability/types').ObservabilityUsageView;
|
|
43
|
+
usagePivot: import('../gen/metrics/v1/metrics_pb').MetricDimension;
|
|
44
|
+
pipelinesPage: number;
|
|
40
45
|
statuses: import('../gen/ingestion/v1/runs_pb').RunStatus[];
|
|
41
|
-
throughput?: import('../pages/observability/types').ObservabilityThroughputView | undefined;
|
|
42
|
-
throughputPivot?: import('../gen/metrics/v1/metrics_pb').MetricDimension | undefined;
|
|
43
|
-
usage?: import('../pages/observability/types').ObservabilityUsageView | undefined;
|
|
44
|
-
usagePivot?: import('../gen/metrics/v1/metrics_pb').MetricDimension | undefined;
|
|
45
|
-
runsBucket?: bigint | undefined;
|
|
46
|
-
runsStatus?: import('../gen/ingestion/v1/runs_pb').RunStatus | undefined;
|
|
47
46
|
};
|
|
48
47
|
export declare const usePipelinesSearch: () => {
|
|
49
48
|
q?: string | undefined;
|
package/dist/module/hooks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OBSERVABILITY_RUNS_DEFAULT_STATUSES } from "../pages/observability/components/runs/constants.js";
|
|
2
|
-
import { OBSERVABILITY_DEFAULT_REFRESH_INTERVAL, OBSERVABILITY_DEFAULT_RUNS_VIEW, OBSERVABILITY_DEFAULT_TIMEFRAME } from "../pages/observability/constants.js";
|
|
2
|
+
import { OBSERVABILITY_BAND_PIVOT_KEY_TO_DEFAULT_MAP, OBSERVABILITY_BAND_VIEW_KEY_TO_DEFAULT_MAP, OBSERVABILITY_DEFAULT_REFRESH_INTERVAL, OBSERVABILITY_DEFAULT_RUNS_VIEW, OBSERVABILITY_DEFAULT_TIMEFRAME } from "../pages/observability/constants.js";
|
|
3
3
|
import { connectionsSearchSchema, filamentLayoutSearchSchema, listSearchParamsSchema, observabilitySearchSchema, pipelineCanvasSearchSchema, pipelineHistorySearchSchema, pipelineParamsSchema, pipelineSearchSchema, pipelinesSearchSchema } from "./schemas.js";
|
|
4
4
|
import { useCallback } from "react";
|
|
5
5
|
import { useMatchRoute, useMatches, useNavigate, useParams, useSearch } from "@tanstack/react-router";
|
|
@@ -59,6 +59,11 @@ var useObservabilitySearch = () => useSearch({
|
|
|
59
59
|
timeframe: parsed.timeframe ?? OBSERVABILITY_DEFAULT_TIMEFRAME,
|
|
60
60
|
refreshInterval: parsed.refreshInterval ?? OBSERVABILITY_DEFAULT_REFRESH_INTERVAL,
|
|
61
61
|
runs: parsed.runs ?? OBSERVABILITY_DEFAULT_RUNS_VIEW,
|
|
62
|
+
throughput: parsed.throughput ?? OBSERVABILITY_BAND_VIEW_KEY_TO_DEFAULT_MAP.throughput,
|
|
63
|
+
throughputPivot: parsed.throughputPivot ?? OBSERVABILITY_BAND_PIVOT_KEY_TO_DEFAULT_MAP.throughputPivot,
|
|
64
|
+
usage: parsed.usage ?? OBSERVABILITY_BAND_VIEW_KEY_TO_DEFAULT_MAP.usage,
|
|
65
|
+
usagePivot: parsed.usagePivot ?? OBSERVABILITY_BAND_PIVOT_KEY_TO_DEFAULT_MAP.usagePivot,
|
|
66
|
+
pipelinesPage: parsed.pipelinesPage ?? 1,
|
|
62
67
|
statuses: parsed.statuses ?? OBSERVABILITY_RUNS_DEFAULT_STATUSES
|
|
63
68
|
};
|
|
64
69
|
}
|
package/dist/module/routes.d.ts
CHANGED
|
@@ -28,8 +28,7 @@ export declare const observabilityRouteOptions: FilamentRouteComponents & {
|
|
|
28
28
|
usage: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodEnum<typeof import('../pages/observability/types').ObservabilityUsageView>>>;
|
|
29
29
|
usagePivot: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodEnum<typeof import('../gen/metrics/v1/metrics_pb').MetricDimension>>>;
|
|
30
30
|
statuses: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodEnum<typeof import('../gen/ingestion/v1/runs_pb').RunStatus>>>>;
|
|
31
|
-
|
|
32
|
-
runsStatus: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodEnum<typeof import('../gen/ingestion/v1/runs_pb').RunStatus>>>;
|
|
31
|
+
pipelinesPage: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodCoercedNumber<unknown>>>;
|
|
33
32
|
}, import('zod/v4/core').$strip>;
|
|
34
33
|
};
|
|
35
34
|
export declare const pipelinesRouteOptions: FilamentRouteComponents & {
|
package/dist/module/schemas.d.ts
CHANGED
|
@@ -36,8 +36,7 @@ export declare const observabilitySearchSchema: z.ZodObject<{
|
|
|
36
36
|
usage: z.ZodCatch<z.ZodOptional<z.ZodEnum<typeof ObservabilityUsageView>>>;
|
|
37
37
|
usagePivot: z.ZodCatch<z.ZodOptional<z.ZodEnum<typeof MetricDimension>>>;
|
|
38
38
|
statuses: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof RunStatus>>>>;
|
|
39
|
-
|
|
40
|
-
runsStatus: z.ZodCatch<z.ZodOptional<z.ZodEnum<typeof RunStatus>>>;
|
|
39
|
+
pipelinesPage: z.ZodCatch<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
41
40
|
}, z.core.$strip>;
|
|
42
41
|
export type ObservabilitySearch = z.infer<typeof observabilitySearchSchema>;
|
|
43
42
|
export declare const pipelinesSearchSchema: z.ZodObject<{
|
package/dist/module/schemas.js
CHANGED
|
@@ -34,8 +34,7 @@ var observabilitySearchSchema = z.object({
|
|
|
34
34
|
usage: z.enum(ObservabilityUsageView).optional().catch(void 0),
|
|
35
35
|
usagePivot: z.enum(MetricDimension).optional().catch(void 0),
|
|
36
36
|
statuses: z.array(z.enum(RunStatus)).optional().catch(void 0),
|
|
37
|
-
|
|
38
|
-
runsStatus: z.enum(RunStatus).optional().catch(void 0)
|
|
37
|
+
pipelinesPage: z.coerce.number().int().positive().optional().catch(void 0)
|
|
39
38
|
});
|
|
40
39
|
var pipelinesSearchSchema = listSearchParamsSchema;
|
|
41
40
|
var connectionsSearchSchema = listSearchParamsSchema.pick({ q: true });
|
|
@@ -2,8 +2,9 @@ import { ConnectorKind } from "../../gen/ingestion/v1/common_pb.js";
|
|
|
2
2
|
import { Flow } from "../../module/types.js";
|
|
3
3
|
import { useConnectionsSearch, useFilamentFlowOpen, useFilamentSearchUpdate } from "../../module/hooks.js";
|
|
4
4
|
import { CONNECTOR_KIND_TO_PLURAL_LABEL_MAP, CONNECTOR_KIND_TO_PLURAL_NOUN_MAP } from "../../components/connections/constants.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useListConnectorsQuery } from "../../api/queries/connectors.js";
|
|
6
6
|
import { createListConnectionsInput, useSuspenseListConnectionsInfiniteQuery } from "../../api/queries/connections.js";
|
|
7
|
+
import { CONNECTOR_KIND_TO_CREATE_TITLE_MAP, CONNECTOR_KIND_TO_DOCS_PATH_MAP, CONNECTOR_KIND_TO_EMPTY_MESSAGE_MAP } from "./constants.js";
|
|
7
8
|
import DocsLink from "../../components/DocsLink.js";
|
|
8
9
|
import { useConnectionPipelines } from "./hooks/useConnectionPipelines.js";
|
|
9
10
|
import ListSearch from "../../components/ListSearch.js";
|
|
@@ -37,6 +38,8 @@ var ConnectionsPage = ({ kind }) => {
|
|
|
37
38
|
};
|
|
38
39
|
const { data, hasNextPage, isFetchingNextPage, fetchNextPage } = useSuspenseListConnectionsInfiniteQuery({ input: createListConnectionsInput(kind, { q }) });
|
|
39
40
|
const kindConnections = useMemo(() => data.pages.flatMap((page) => page.connections), [data.pages]);
|
|
41
|
+
const { data: catalog } = useListConnectorsQuery();
|
|
42
|
+
const previewByConnector = useMemo(() => new Map(catalog?.connectors.map((connector) => [`${connector.kind}:${connector.name}`, connector.isPreview]) ?? []), [catalog?.connectors]);
|
|
40
43
|
const endRef = useEndReached({
|
|
41
44
|
onEndReached: hasNextPage ? () => void fetchNextPage() : void 0,
|
|
42
45
|
isEnabled: !isFetchingNextPage,
|
|
@@ -89,6 +92,7 @@ var ConnectionsPage = ({ kind }) => {
|
|
|
89
92
|
gap: 12,
|
|
90
93
|
children: kindConnections.map((connection) => /* @__PURE__ */ jsx(ConnectionCard, {
|
|
91
94
|
connection,
|
|
95
|
+
isPreview: previewByConnector.get(`${connection.kind}:${connection.connector}`) ?? false,
|
|
92
96
|
pipelineCount: hasPipelineCounts ? pipelineCountsByConnectionId.get(connection.id) ?? 0 : void 0,
|
|
93
97
|
onClick: () => handleConnectionClick(connection.id)
|
|
94
98
|
}, connection.id))
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { formatVersion } from "../../../../utils/format.js";
|
|
2
2
|
import ConnectorTile from "../../../../components/connections/ConnectorTile.js";
|
|
3
3
|
import ConnectionKindChip from "../../../../components/connections/ConnectionKindChip.js";
|
|
4
|
+
import ConnectorPreviewChip from "../../../../components/connections/ConnectorPreviewChip.js";
|
|
4
5
|
import { FlowArrowIcon } from "@phosphor-icons/react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import Flex, { AlignItems, JustifyContent } from "@galaxy-io/dls/layout/Flex";
|
|
@@ -11,7 +12,7 @@ import Widget from "@galaxy-io/dls/widget/Widget";
|
|
|
11
12
|
import FlexItem from "@galaxy-io/dls/layout/FlexItem";
|
|
12
13
|
import pluralize from "pluralize";
|
|
13
14
|
//#region src/pages/connections/components/card/ConnectionCard.tsx
|
|
14
|
-
var ConnectionCard = ({ connection, pipelineCount, onClick }) => {
|
|
15
|
+
var ConnectionCard = ({ connection, isPreview, pipelineCount, onClick }) => {
|
|
15
16
|
const pipelineLabel = pipelineCount === void 0 ? EMPTY_VALUE : pluralize("pipeline", pipelineCount, true);
|
|
16
17
|
return /* @__PURE__ */ jsxs(Widget, {
|
|
17
18
|
isInteractive: true,
|
|
@@ -40,9 +41,13 @@ var ConnectionCard = ({ connection, pipelineCount, onClick }) => {
|
|
|
40
41
|
weight: TextWeight.MEDIUM,
|
|
41
42
|
children: connection.name
|
|
42
43
|
})]
|
|
43
|
-
}), /* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
}), /* @__PURE__ */ jsxs(Flex, {
|
|
45
|
+
alignItems: AlignItems.CENTER,
|
|
46
|
+
gap: 4,
|
|
47
|
+
children: [/* @__PURE__ */ jsx(ConnectorPreviewChip, { isPreview }), /* @__PURE__ */ jsx(ConnectionKindChip, {
|
|
48
|
+
kind: connection.kind,
|
|
49
|
+
size: ChipSize.SMALL
|
|
50
|
+
})]
|
|
46
51
|
})]
|
|
47
52
|
}), /* @__PURE__ */ jsx(Flex, {
|
|
48
53
|
alignItems: AlignItems.START,
|