enable admin option to opt-in to aggregate statistics

This commit is contained in:
ansuz 2022-09-22 16:34:35 +05:30
parent 9098af75ab
commit fede73efb1
2 changed files with 6 additions and 4 deletions

View File

@ -73,9 +73,11 @@ Stats.instanceData = function (Env) {
//data.archiveRetentionTime = Env.archiveRetentionTime,
}
// we won't consider instances for public listings
// unless they opt to provide more info about themselves
if (!Env.provideAggregateStatistics) { return data; }
// Admins can opt-in to providing more detailed information about the extent of the instance's usage
if (!Env.provideAggregateStatistics) {
// check how many instances provide stats before we put more work into it
data.providesAggregateStatistics = true;
}
return data;
};

View File

@ -105,7 +105,7 @@ define([
'cp-admin-update-available',
'cp-admin-checkup',
'cp-admin-block-daily-check',
//'cp-admin-provide-aggregate-statistics',
'cp-admin-provide-aggregate-statistics',
'cp-admin-list-my-instance',
'cp-admin-consent-to-contact',