mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Add new clients into the monthly breakdown (#18629)
* Add new clients into the monthly breakdown * add changelog
This commit is contained in:
3
changelog/18629.txt
Normal file
3
changelog/18629.txt
Normal file
@@ -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.
|
||||||
|
```
|
||||||
@@ -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")
|
a.logger.Warn("no month data found, returning query with no namespace attribution for current month")
|
||||||
} else {
|
} else {
|
||||||
currentMonth.Namespaces = currentMonthNamespaceAttribution[0].Namespaces
|
currentMonth.Namespaces = currentMonthNamespaceAttribution[0].Namespaces
|
||||||
|
currentMonth.NewClients = currentMonthNamespaceAttribution[0].NewClients
|
||||||
}
|
}
|
||||||
pq.Months = append(pq.Months, currentMonth)
|
pq.Months = append(pq.Months, currentMonth)
|
||||||
distinctEntitiesResponse += pq.Months[len(pq.Months)-1].NewClients.Counts.EntityClients
|
distinctEntitiesResponse += pq.Months[len(pq.Months)-1].NewClients.Counts.EntityClients
|
||||||
|
|||||||
Reference in New Issue
Block a user