mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
FIX: treats users_(by_type|tl) as other reports (#6391)
This commit is contained in:
parent
2ae7d3a118
commit
7bf8b0d305
@ -95,13 +95,11 @@
|
||||
{{#conditional-loading-section isLoading=isLoading}}
|
||||
{{admin-report
|
||||
forcedModes="inline-table"
|
||||
report=usersByTypeReport
|
||||
lastRefreshedAt=lastRefreshedAt}}
|
||||
dataSourceName="users_by_type"}}
|
||||
|
||||
{{admin-report
|
||||
forcedModes="inline-table"
|
||||
report=usersByTrustLevelReport
|
||||
lastRefreshedAt=lastRefreshedAt}}
|
||||
dataSourceName="users_by_trust_level"}}
|
||||
{{/conditional-loading-section}}
|
||||
</div>
|
||||
|
||||
|
@ -5,7 +5,7 @@ let _queue = [];
|
||||
let _processing = 0;
|
||||
|
||||
// max number of reports which will be requested in one bulk request
|
||||
const MAX_JOB_SIZE = 5;
|
||||
const MAX_JOB_SIZE = 4;
|
||||
|
||||
// max number of concurrent bulk requests
|
||||
const MAX_CONCURRENCY = 3;
|
||||
|
@ -1,14 +1,6 @@
|
||||
class AdminDashboardNextGeneralData < AdminDashboardNextData
|
||||
def reports
|
||||
@reports ||= %w{
|
||||
users_by_type
|
||||
users_by_trust_level
|
||||
}
|
||||
end
|
||||
|
||||
def get_json
|
||||
{
|
||||
reports: self.class.reports(reports).compact,
|
||||
updated_at: Time.zone.now.as_json
|
||||
}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user