Skip to content

Commit bf56cd8

Browse files
committed
refactor: remove STALE health status and align with control plane schema changes
- Remove staleServices field from GraphQL query and all consumers - Remove ServiceHealthStale constant from domain, API, and UI - Clean up STALE from service status sort ordering - Hide waste volume discovery bars at 95% threshold (matches services tab) - Regenerate all codegen (genqlient, sqlc, PowerSync schema)
1 parent 8d2c568 commit bf56cd8

30 files changed

Lines changed: 680 additions & 515 deletions

‎internal/api/datadog_account_service.go‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ const (
6565
DatadogAccountHealthDisabled DatadogAccountHealth = "DISABLED"
6666
DatadogAccountHealthInactive DatadogAccountHealth = "INACTIVE"
6767
DatadogAccountHealthError DatadogAccountHealth = "ERROR"
68-
DatadogAccountHealthStale DatadogAccountHealth = "STALE"
6968
DatadogAccountHealthOK DatadogAccountHealth = "OK"
7069
)
7170

@@ -77,7 +76,6 @@ type DatadogAccountStatus struct {
7776
ActiveServices int
7877
OkServices int
7978
ErrorServices int
80-
StaleServices int
8179
DisabledServices int
8280
InactiveServices int
8381
EventCount int
@@ -228,7 +226,6 @@ func (s *DatadogAccountService) GetStatus(ctx context.Context, datadogAccountID
228226
ActiveServices: statusNode.LogActiveServices,
229227
OkServices: statusNode.OkServices,
230228
ErrorServices: statusNode.ErrorServices,
231-
StaleServices: statusNode.StaleServices,
232229
DisabledServices: statusNode.DisabledServices,
233230
InactiveServices: statusNode.InactiveServices,
234231
EventCount: statusNode.LogEventCount,

‎internal/api/datadog_account_service_test.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ func TestDatadogAccountService_GetStatus(t *testing.T) {
298298
LogActiveServices: 8,
299299
OkServices: 7,
300300
ErrorServices: 1,
301-
StaleServices: 0,
302301
DisabledServices: 1,
303302
InactiveServices: 1,
304303
LogEventCount: 200,

‎internal/api/gen/generated.go‎

Lines changed: 21 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎internal/api/gen/queries/datadog_accounts.graphql‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ query GetDatadogAccountStatus($id: ID!) {
4848
disabledServices
4949
inactiveServices
5050
errorServices
51-
staleServices
5251
okServices
5352
policyPendingCount
5453
policyApprovedCount

0 commit comments

Comments
 (0)