Opened 20 years ago
Last modified 9 years ago
#1135 new enhancement
Component filter for the Timeline
Reported by: | 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)
Change History (17)
by , 20 years ago
Attachment: | Timeline.py.diff added |
---|
by , 20 years ago
Attachment: | timeline.cs.diff added |
---|
comment:1 by , 20 years ago
Component: | general → timeline |
---|
by , 20 years ago
Attachment: | component+svn_filtering.diff added |
---|
comment:2 by , 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 , 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.
comment:5 by , 19 years ago
Cc: | added |
---|
comment:6 by , 19 years ago
Status: | assigned → new |
---|
(changing the status, as I've not actually started to work on that yet)
comment:8 by , 18 years ago
Cc: | removed |
---|
comment:9 by , 18 years ago
Keywords: | filtering added |
---|---|
Milestone: | → 0.10 |
comment:12 by , 10 years ago
Owner: | removed |
---|
comment:13 by , 9 years ago
Keywords: | patch added |
---|
version 2 of the patch (replaces 2 previous files)