Ticket #2910 (closed enhancement: fixed)

Opened 3 months ago

Last modified 3 months ago

RFE: Configuration of default forum sorting

Reported by: kasper@pumpkins.dk Assigned to: Blackhex
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

It would be great with a configuration option for forum sorting. As of now the default sorting is by ID, ascending. It would be great if you could choose which column to sort by and which direction to sort (ASC/DESC).

Attachments

Change History

04/15/08 00:36:47 changed by Blackhex

  • status changed from new to assigned.
  • summary changed from Configuration of default forum sorting to RFE: Configuration of default forum sorting.

OK, I'll take a look on it soon.

04/16/08 03:01:27 changed by Blackhex

  • status changed from assigned to closed.
  • resolution set to fixed.

Implemented in r3518. Don't forget to enable DiscussionApi component on 0.10.

04/16/08 03:45:00 changed by kasper@pumpkins.dk

Thanks for the fix, but I think there's still something wrong (at least in my installation). Check it out here: http://www.eobjects.dk/trac/discussion/1?&order=id

As you can see even when I press the "ID" it always sorts descendingly. And it doesn't even change if I modify trac.ini.

In my log it says:

2008-04-16 10:31:08,179 Trac[loader] WARNING: Cannot load plugin spamfilter.ip_blacklist because it requires "dnspython>=1.3.5"
2008-04-16 10:31:08,224 Trac[loader] WARNING: Cannot load plugin spamfilter.bayes because it requires "spambayes"

Even thought I've installed both dnspython and spambayes (using APT).

Here's the important parts of trac.ini:

[components]
tracdiscussion.api.DiscussionApi = enabled
tracdiscussion.admin.DiscussionWebAdmin = enabled
tracdiscussion.core.DiscussionCore = enabled
tracdiscussion.init.DiscussionInit = enabled
tracdiscussion.search.DiscussionSearch = enabled
tracdiscussion.timeline.DiscussionTimeline = enabled
tracdiscussion.wiki.DiscussionWiki = enabled
tracdiscussion.notification.DiscussionNotifyEmail = enabled
tracspamfilter.* = enabled

[discussion]
title = Discussion
default_display = flat
forum_sort = id
forum_sort_direction = asc
topic_sort = id
topic_sort_direction = asc

Is this maybe because I upgraded from an older discussion plugin?

04/16/08 05:04:21 changed by Blackhex

No, I just forgot that direction is internally boolean and not string and I did't notice that during testing. Now it should be fixed.

04/16/08 05:40:31 changed by kasper

Great, works like a charm :)


Add/Change #2910 (RFE: Configuration of default forum sorting)




Change Properties
Action