Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #3795 (closed enhancement: fixed)

Opened 10 years ago

Last modified 10 years ago

Trac Moderator: unmoderated counter

Reported by: wehart Owned by: jdsiiro
Priority: normal Milestone: FAST 2.1
Component: Trac Version:
Keywords: Cc:


Can we add an "Unmoderated Tickets" counter plugin? I'd like to display that on the main Trac page, so moderators don't need to click on the moderator link to find out if they have work to do... Ideally, this counter would be a link that takes you to the moderator page...


Change History

comment:1 Changed 10 years ago by jdsiiro

r1807 adds the number of pending tickets to the "Moderator" link in the metanav navigation bar (iif there are any pending submissions).

While I like this feature, I have a small concern that *every* page load for moderators must run to the database to count the number of pending submissions. If we start to get lots of submissions (i.e. that table gets big), we might want to consider a way to cache the number of pending tickets so the nav entry doesn't have to re-count each time.

Given this, I can still add a wiki macro to the plugin if you still think it is necessary.

comment:2 Changed 10 years ago by wehart

I think that this meet the need! I'm happy to close this. Though I agree that it might make sense to cache the count, I think we should simply see if we're getting a performance hit in our wiki usage.

comment:3 Changed 10 years ago by jdsiiro

  • Status changed from new to closed
  • Resolution set to fixed

Fair enough -- I will close this then. For what it's worth, the only people who may see a performance hit will be Moderators (including all TRAC_ADMINS). The code doesn't hit the database unless the user is a Moderator.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.