mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-16 11:37:04 +02:00
* Client count updates - Added Current month tab which leverages partial monthly activity api - Refactored Vault usage to Monthly history - New client count history component based on StatText and BarChart component - Restrict bar chart to showcase only top 10 namespaces - Removed config route, as config and history component will be rendered based on query param - Updated all metrics reference to clients - Removed old tests and added integration test for current month * Fixed navbar permission - Added changelog * Updated the model for current month data * Fixed current month tests * Fixed indentation and chart label
22 lines
610 B
JavaScript
22 lines
610 B
JavaScript
import Application from '../application';
|
|
|
|
export default Application.extend({
|
|
pathForType() {
|
|
return 'internal/counters/activity';
|
|
},
|
|
queryRecord(store, type, query) {
|
|
let url = this.urlForQuery(null, type);
|
|
if (query.tab === 'current') {
|
|
url = `${url}/monthly`;
|
|
query = null;
|
|
}
|
|
// API accepts start and end as query params
|
|
return this.ajax(url, 'GET', { data: query }).then(resp => {
|
|
let response = resp || {};
|
|
// if the response is a 204 it has no request id
|
|
response.id = response.request_id || 'no-data';
|
|
return response;
|
|
});
|
|
},
|
|
});
|