FIX: corrects top-referred and trending-search dates (#6372)
This commit is contained in:
parent
9e77fd8fc3
commit
2ad882113e
|
@ -23,11 +23,6 @@ export default Ember.Controller.extend(PeriodComputationMixin, {
|
|||
),
|
||||
shouldDisplayDurability: Ember.computed.and("diskSpace"),
|
||||
|
||||
@computed
|
||||
topReferredTopicsTopions() {
|
||||
return { table: { total: false, limit: 8 } };
|
||||
},
|
||||
|
||||
@computed
|
||||
activityMetrics() {
|
||||
return [
|
||||
|
@ -48,9 +43,38 @@ export default Ember.Controller.extend(PeriodComputationMixin, {
|
|||
};
|
||||
},
|
||||
|
||||
@computed
|
||||
topReferredTopicsOptions() {
|
||||
return {
|
||||
table: { total: false, limit: 8 }
|
||||
};
|
||||
},
|
||||
|
||||
@computed
|
||||
topReferredTopicsFilters() {
|
||||
return {
|
||||
startDate: moment()
|
||||
.subtract(2, "days")
|
||||
.startOf("day"),
|
||||
endDate: this.get("today")
|
||||
};
|
||||
},
|
||||
|
||||
@computed
|
||||
trendingSearchFilters() {
|
||||
return {
|
||||
startDate: moment()
|
||||
.subtract(2, "days")
|
||||
.startOf("day"),
|
||||
endDate: this.get("today")
|
||||
};
|
||||
},
|
||||
|
||||
@computed
|
||||
trendingSearchOptions() {
|
||||
return { table: { total: false, limit: 8 } };
|
||||
return {
|
||||
table: { total: false, limit: 8 }
|
||||
};
|
||||
},
|
||||
|
||||
usersByTypeReport: staticReport("users_by_type"),
|
||||
|
|
|
@ -154,12 +154,14 @@
|
|||
|
||||
<div class="section-column">
|
||||
{{admin-report
|
||||
filters=topReferredTopicsFilters
|
||||
dataSourceName="top_referred_topics"
|
||||
reportOptions=topReferredTopicsTopions}}
|
||||
reportOptions=topReferredTopicsOptions}}
|
||||
|
||||
{{admin-report
|
||||
dataSourceName="trending_search"
|
||||
reportOptions=trendingSearchOptions
|
||||
filters=trendingSearchFilters
|
||||
isEnabled=logSearchQueriesEnabled
|
||||
disabledLabel="admin.dashboard.reports.trending_search.disabled"}}
|
||||
{{{i18n "admin.dashboard.reports.trending_search.more"}}}
|
||||
|
|
Loading…
Reference in New Issue