mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 23:58:12 -05:00
PERF: Dematerialize topic_reply_count (#9769)
* PERF: Dematerialize topic_reply_count It's only ever used for trust level promotions that run daily, or compared to 0. We don't need to track it on every post creation. * UX: Add symbol in TL3 report if topic reply count is capped * DEV: Drop user_stats.topic_reply_count column
This commit is contained in:
@@ -12,6 +12,11 @@ export default EmberObject.extend({
|
||||
return Math.round((minDaysVisited * 100) / timePeriod);
|
||||
},
|
||||
|
||||
@discourseComputed("num_topics_replied_to", "min_topics_replied_to")
|
||||
capped_topics_replied_to(numReplied, minReplied) {
|
||||
return numReplied > minReplied;
|
||||
},
|
||||
|
||||
@discourseComputed(
|
||||
"days_visited",
|
||||
"min_days_visited",
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<tr>
|
||||
<th>{{i18n "admin.user.tl3_requirements.topics_replied_to"}}</th>
|
||||
<td>{{check-icon model.tl3Requirements.met.topics_replied_to}}</td>
|
||||
<td>{{model.tl3Requirements.num_topics_replied_to}}</td>
|
||||
<td>{{#if model.tl3Requirements.capped_topics_replied_to}}≥ {{/if}}{{model.tl3Requirements.num_topics_replied_to}}</td>
|
||||
<td>{{model.tl3Requirements.min_topics_replied_to}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user