From 59450ecb82fad78565faa1466e2d2be2dfc2f1b2 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 16 Jan 2023 15:51:19 +0000 Subject: [PATCH] Revert "Add new clients into the monthly breakdown (#18629)" (#18726) This reverts commit d641bbc28e5e8cc12b81d409e5d5fc1f2cb7f66c. --- changelog/18629.txt | 3 --- vault/activity_log.go | 1 - 2 files changed, 4 deletions(-) delete mode 100644 changelog/18629.txt diff --git a/changelog/18629.txt b/changelog/18629.txt deleted file mode 100644 index 50743b391..000000000 --- a/changelog/18629.txt +++ /dev/null @@ -1,3 +0,0 @@ -```release-note:bug -core/activity: add namespace breakdown for new clients when date range spans multiple months, including the current month. -``` diff --git a/vault/activity_log.go b/vault/activity_log.go index d89f7599b..3c4bc613d 100644 --- a/vault/activity_log.go +++ b/vault/activity_log.go @@ -1664,7 +1664,6 @@ func (a *ActivityLog) handleQuery(ctx context.Context, startTime, endTime time.T a.logger.Warn("no month data found, returning query with no namespace attribution for current month") } else { currentMonth.Namespaces = currentMonthNamespaceAttribution[0].Namespaces - currentMonth.NewClients = currentMonthNamespaceAttribution[0].NewClients } pq.Months = append(pq.Months, currentMonth) distinctEntitiesResponse += pq.Months[len(pq.Months)-1].NewClients.Counts.EntityClients