Edgewall Software
Modify

Ticket #4964 (closed enhancement: duplicate)

Opened 5 years ago

Last modified 5 years ago

User filter for timeline

Reported by: yotamrubin@… Owned by: cboos
Priority: low Milestone:
Component: timeline Version: 0.10.3.1
Severity: minor Keywords: user
Cc:
Release Notes:
API Changes:

Description

Hello there,

I've just added the capability to filter the timeline by username. The change should have been trivial, but apparently the Timeline is rather difficult to get into. The process_request function is quite large, and has a very complex namespace. I did some dumb refactoring - moved out logical blocks in process_request to their own functions, but the logic remains the same. Additionally, the way I added the user filter is rather ad-hoc, since the current filter mechanism is a boolean one, either it's enabled, or not. Maybe next weekend I'll work on improving the filter mechanism.

Attachments

trac-with-userfilter.diff (6.4 KB) - added by yotamrubin@… 5 years ago.
The userfilter patch
trac-with-userfilter-2.diff (2.7 KB) - added by francois_at_granade.com 5 years ago.
The first patch attached to this bug was slightly buggy (it would break the other types of filters). This new patch doesn't break anything.

Download all attachments as: .zip

Change History

Changed 5 years ago by yotamrubin@…

The userfilter patch

comment:1 follow-up: Changed 5 years ago by cboos

  • Keywords user added

Ouch, sorry, but this is never going to make it into Trac, as development of the 0.10-stable branch is for bug fixes only.

The trunk (Trac 0.11dev) is in heavy development since months, and the timeline module has changed a lot, though your points would still be valid with the new version of the code, see source:trunk/trac/timeline/web_ui.py. Look also at the new approach we started in e.g. r4970 for handling requests.

So it would be very much appreciated if you reworked your patch for the trunk. Also, be aware that the web templates are quite different now: see TracDev/PortingFromClearSilverToGenshi.

comment:2 Changed 5 years ago by cboos

  • Milestone 0.11 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

As #1198 was the original feature request, with already many people CC'ed there, I'm closing this one as duplicate.

comment:3 in reply to: ↑ 1 Changed 5 years ago by anonymous

Ok then. I've looked at the development version of trac. Seems like basic issues mentioned in my ticket appear in that version as well. I'll adapt my patch to the development version, and maybe resolve the filter issue as well.

Replying to cboos:

Ouch, sorry, but this is never going to make it into Trac, as development of the 0.10-stable branch is for bug fixes only.

The trunk (Trac 0.11dev) is in heavy development since months, and the timeline module has changed a lot, though your points would still be valid with the new version of the code, see source:trunk/trac/timeline/web_ui.py. Look also at the new approach we started in e.g. r4970 for handling requests.

So it would be very much appreciated if you reworked your patch for the trunk. Also, be aware that the web templates are quite different now: see TracDev/PortingFromClearSilverToGenshi.

Changed 5 years ago by francois_at_granade.com

The first patch attached to this bug was slightly buggy (it would break the other types of filters). This new patch doesn't break anything.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.