Edgewall Software
Modify

Opened 20 years ago

Last modified 9 years ago

#1135 new enhancement

Component filter for the Timeline

Reported by: fog@… Owned by:
Priority: normal Milestone: unscheduled
Component: timeline Version: 0.8
Severity: normal Keywords: filtering patch
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The two attaches patches (to files Timeline.py and timeline.cs) implement Component filtering for the Timeline. Two new configuration options are defined in the [timeline] group:

  • display_components shows the component name for tickets and commits just before the "by XXX" text; and
  • changeset_guess_component assign to a checkin a component based on the first path element in the SVN repository (this only works for repositories used to host multiple projects. This configuration option is used only if changeset_show_files is set, because needs at least one file name to work on.

An example of the resulting Timeline can be seen on the initd.org website (both options activated.)

Attachments (4)

Timeline.py.diff (7.8 KB ) - added by fog@… 20 years ago.
timeline.cs.diff (2.4 KB ) - added by fog@… 20 years ago.
component+svn_filtering.diff (14.8 KB ) - added by fog@… 20 years ago.
version 2 of the patch (replaces 2 previous files)
component+svn_filtering.3.diff (14.9 KB ) - added by fog@… 20 years ago.
Version 3 of the patch

Download all attachments as: .zip

Change History (17)

by fog@…, 20 years ago

Attachment: Timeline.py.diff added

by fog@…, 20 years ago

Attachment: timeline.cs.diff added

comment:1 by anonymous, 20 years ago

Component: generaltimeline

by fog@…, 20 years ago

version 2 of the patch (replaces 2 previous files)

comment:2 by fog@…, 20 years ago

I attached a new version of the patch that implements:

  • svn repository filtering (re-based, in both Browse and Timeline you only get the branches you asked for;
  • component filtering in the Timeline;
  • generation of component names for the svn changesets (automatically guessed or re-based)

This patch introduces two new options in the [trac] group (for a total of 4 new options). The 2 new options are:

repository_filter — assign a regular expression to it to filter your SVN repository repository_component — assign to it a regular expression that matches at least one group to assign the first group as component name to the changeset (this option does nothing if changeset_guess_component is 0)

This is an example of the configuration we're using to make only the psycopg-related stuff from our SVN repo appear in the psycopg Trac:

repository_filter = ^/?(psycopg1|psycopg2|dbapi-programming)
repository_component = ^/?(psycopg1|psycopg2|dbapi-programming)
changeset_guess_component = 1
display_components = 1

Note that this new patch will guess the changeset component (if display_components is 1) even if changeset_show_files is 0 (I removed that limitation of the first version.

Also note that the new re-based component guessing allows for asigning components to projects orgainized as trunk/component1, trunk/component2, …, branches/component1, etc.

It is working well for us, see the psycopg Trac.

comment:3 by fog@…, 20 years ago

This last version of the patch uses the last group of the regular expression to assign to component name to the changeset. It allows for regular expressions like "/?(trunk|tags|branches)/(.*?)/" do what expected.

by fog@…, 20 years ago

Version 3 of the patch

comment:4 by Christian Boos, 19 years ago

Owner: changed from Jonas Borgström to Christian Boos
Status: newassigned

Also see #1678.

comment:5 by Gunnar Wagenknecht <gunnar@…>, 19 years ago

Cc: gunnar@… added

comment:6 by Christian Boos, 19 years ago

Status: assignednew

(changing the status, as I've not actually started to work on that yet)

comment:7 by Christian Boos, 19 years ago

#2374 has been marked as a duplicated of this proposal.

comment:8 by anonymous, 18 years ago

Cc: gunnar@… removed

comment:9 by Christian Boos, 18 years ago

Keywords: filtering added
Milestone: 0.10

comment:10 by Christian Boos, 18 years ago

Milestone: 0.101.0

woops, I meant 1.0

comment:11 by Christian Boos, 15 years ago

Milestone: 1.0unscheduled

Milestone 1.0 deleted

comment:12 by Ryan J Ollos, 10 years ago

Owner: Christian Boos removed

comment:13 by figaro, 9 years ago

Keywords: patch added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.