Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9b41f5c

Browse files
committedNov 20, 2024·
make group count enable/disable configurable
1 parent f65d406 commit 9b41f5c

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed
 

‎server/config/development.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ batchActionsDisabled: false
2020
startWorkflowDisabled: false
2121
hideWorkflowQueryErrors: false
2222
refreshWorkflowCountsDisabled: false
23+
workflowCountGroupByExecutionStatusDisabled: false
2324
auth:
2425
enabled: false
2526
providers:

‎server/docker/config-template.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ batchActionsDisabled: {{ default .Env.TEMPORAL_BATCH_ACTIONS_DISABLED "false" }}
1919
startWorkflowDisabled: {{ default .Env.TEMPORAL_START_WORKFLOW_DISABLED "false" }}
2020
hideWorkflowQueryErrors: {{ default .Env.TEMPORAL_HIDE_WORKFLOW_QUERY_ERRORS "false" }}
2121
refreshWorkflowCountsDisabled: {{ default .Env.TEMPORAL_REFRESH_WORKFLOW_COUNTS_DISABLED "false" }}
22+
workflowCountGroupByExecutionStatusDisabled: {{ default .Env.TEMPORAL_WORKFLOW_COUNT_GROUP_BY_EXECUTION_STATUS_DISABLED "false" }}
2223
cors:
2324
cookieInsecure: {{ default .Env.TEMPORAL_CSRF_COOKIE_INSECURE "false" }}
2425
allowOrigins:

‎server/server/config/config.go

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ type (
6565
HideWorkflowQueryErrors bool `yaml:"hideWorkflowQueryErrors"`
6666
// Whether to disable refreshing workflow counts in UI
6767
RefreshWorkflowCountsDisabled bool `yaml:"refreshWorkflowCountsDisabled"`
68+
// Whether to enable the count group by execution status in UI
69+
WorkflowCountGroupByExecutionStatusDisabled bool `yaml:"workflowCountGroupByExecutionStatusDisabled"`
70+
6871
// Forward specified HTTP headers from HTTP API requests to Temporal gRPC backend
6972
ForwardHeaders []string `yaml:"forwardHeaders"`
7073
HideLogs bool `yaml:"hideLogs"`

‎src/lib/services/settings-service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export const fetchSettings = async (request = fetch): Promise<Settings> => {
4040
hideWorkflowQueryErrors: !!settingsResponse?.HideWorkflowQueryErrors,
4141
refreshWorkflowCountsDisabled:
4242
!!settingsResponse?.RefreshWorkflowCountsDisabled,
43+
countGroupByExecutionStatus:
44+
!!settingsResponse?.WorkflowCountGroupByExecutionStatusDisabled,
4345

4446
showTemporalSystemNamespace: settingsResponse?.ShowTemporalSystemNamespace,
4547
notifyOnNewVersion: settingsResponse?.NotifyOnNewVersion,

‎src/lib/types/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export type SettingsResponse = {
254254
StartWorkflowDisabled: boolean;
255255
HideWorkflowQueryErrors: boolean;
256256
RefreshWorkflowCountsDisabled: boolean;
257+
WorkflowCountGroupByExecutionStatusDisabled: boolean;
257258
ShowTemporalSystemNamespace: boolean;
258259
NotifyOnNewVersion: boolean;
259260
FeedbackURL: string;

0 commit comments

Comments
 (0)
Please sign in to comment.