Skip to content

Commit

Permalink
Add new clients into the monthly breakdown (#18629)
Browse files Browse the repository at this point in the history
* Add new clients into the monthly breakdown

* add changelog
  • Loading branch information
raskchanky authored and AnPucel committed Jan 14, 2023
1 parent 9614d57 commit e18070f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/18629.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
core/activity: add namespace breakdown for new clients when date range spans multiple months, including the current month.
```
1 change: 1 addition & 0 deletions vault/activity_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -1664,6 +1664,7 @@ 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
Expand Down

0 comments on commit e18070f

Please sign in to comment.