Skip to content

Commit

Permalink
make group count enable/disable configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
lazy-ninja committed Nov 20, 2024
1 parent f65d406 commit 5e9136e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/config/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ batchActionsDisabled: false
startWorkflowDisabled: false
hideWorkflowQueryErrors: false
refreshWorkflowCountsDisabled: false
WorkflowCountGroupByExecutionStatusEnabled: true
auth:
enabled: false
providers:
Expand Down
1 change: 1 addition & 0 deletions server/docker/config-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ batchActionsDisabled: {{ default .Env.TEMPORAL_BATCH_ACTIONS_DISABLED "false" }}
startWorkflowDisabled: {{ default .Env.TEMPORAL_START_WORKFLOW_DISABLED "false" }}
hideWorkflowQueryErrors: {{ default .Env.TEMPORAL_HIDE_WORKFLOW_QUERY_ERRORS "false" }}
refreshWorkflowCountsDisabled: {{ default .Env.TEMPORAL_REFRESH_WORKFLOW_COUNTS_DISABLED "false" }}
WorkflowCountGroupByExecutionStatusEnabled: {{ default .Env.TEMPORAL_WORKFLOW_COUNT_GROUP_BY_EXECUTION_STATUS_ENABLED "true" }}
cors:
cookieInsecure: {{ default .Env.TEMPORAL_CSRF_COOKIE_INSECURE "false" }}
allowOrigins:
Expand Down
3 changes: 3 additions & 0 deletions server/server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ type (
HideWorkflowQueryErrors bool `yaml:"hideWorkflowQueryErrors"`
// Whether to disable refreshing workflow counts in UI
RefreshWorkflowCountsDisabled bool `yaml:"refreshWorkflowCountsDisabled"`
// Whether to enable the count group by execution status in UI
WorkflowCountGroupByExecutionStatusEnabled bool `yaml:"WorkflowCountGroupByExecutionStatusEnabled"`

// Forward specified HTTP headers from HTTP API requests to Temporal gRPC backend
ForwardHeaders []string `yaml:"forwardHeaders"`
HideLogs bool `yaml:"hideLogs"`
Expand Down
2 changes: 2 additions & 0 deletions src/lib/services/settings-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export const fetchSettings = async (request = fetch): Promise<Settings> => {
hideWorkflowQueryErrors: !!settingsResponse?.HideWorkflowQueryErrors,
refreshWorkflowCountsDisabled:
!!settingsResponse?.RefreshWorkflowCountsDisabled,
countGroupByExecutionStatus:
!!settingsResponse?.WorkflowCountGroupByExecutionStatusEnabled,

showTemporalSystemNamespace: settingsResponse?.ShowTemporalSystemNamespace,
notifyOnNewVersion: settingsResponse?.NotifyOnNewVersion,
Expand Down
1 change: 1 addition & 0 deletions src/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export type SettingsResponse = {
StartWorkflowDisabled: boolean;
HideWorkflowQueryErrors: boolean;
RefreshWorkflowCountsDisabled: boolean;
WorkflowCountGroupByExecutionStatusEnabled: boolean;
ShowTemporalSystemNamespace: boolean;
NotifyOnNewVersion: boolean;
FeedbackURL: string;
Expand Down

0 comments on commit 5e9136e

Please sign in to comment.