Skip to content

Commit

Permalink
0004434: Relationship (dependency) graphs
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2994 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
mantis committed Sep 25, 2004
1 parent 7a72de3 commit 1cd201e
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 8 deletions.
63 changes: 61 additions & 2 deletions config_defaults_inc.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: config_defaults_inc.php,v 1.212 2004-09-24 08:39:44 bpfennigschmidt Exp $
# $Id: config_defaults_inc.php,v 1.213 2004-09-25 14:33:32 prichards Exp $
# --------------------------------------------------------


Expand Down Expand Up @@ -1369,4 +1369,63 @@
# Enable support for bug relationships where a bug can be a related, dependent on, or duplicate of another.
# See relationship_api.php for more details.
$g_enable_relationship = ON;
?>

# --- Relationship Graphs -----------
# Show issue relationships using graphs.
#
# In order to use this feature, you must first install either GraphViz
# (all OSs except Windows) or WinGraphviz (only Windows).
#
# Graphviz homepage: http://www.research.att.com/sw/tools/graphviz/
# WinGraphviz homepage: http://home.so-net.net.tw/oodtsen/wingraphviz/
#
# Refer to the notes near the top of core/graphviz_api.php and
# core/relationship_graph_api.php for more information.

# Enable relationship graphs support.
$g_relationship_graph_enable = OFF;

# Font name and size, as required by Graphviz. If Graphviz fails to run
# for you, you are probably using a font name that gd can't find. On
# Linux, try the name of the font file without the extension.
$g_relationship_graph_fontname = 'Arial';
$g_relationship_graph_fontsize = 8;

# Local path where the above font is found on your system.
#
# You shouldn't care about this on Windows since there is only one system
# folder where fonts are installed and Graphviz already knows where it
# is. On Linux and other unices, the default font search path is defined
# during Graphviz compilation. If you are using a pre-compiled Graphviz
# package provided by your distribution, probably the font search path was
# already configured by the packager.
#
# If for any reason, the font file you want to use is not in any directory
# listed on the default font search path list, you can either: (1) export
# the DOTFONTPATH environment variable in your webserver startup script
# or (2) use this config option conveniently available here. If you need
# to list more than one directory, use colons to separate them.
$g_relationship_graph_fontpath = '';

# Default dependency orientation. If you have issues with lots of childs
# or parents, leave as 'horizontal', otherwise, if you have lots of
# "chained" issue dependencies, change to 'vertical'.
$g_relationship_graph_orientation = 'horizontal';

# Max depth for relation graphs. This only affects relation graphs,
# dependency graphs are drawn to the full depth. A value of 3 is already
# enough to show issues really unrelated to the one you are currently
# viewing.
$g_relationship_graph_max_depth = 2;

# If set to ON, clicking on an issue on the relationship graph will open
# the bug view page for that issue, otherwise, will navigate to the
# relationship graph for that issue.
$g_relationship_graph_view_on_click = OFF;

# Complete path to dot and neato tools. Your webserver must have execute
# permission to these programs in order to generate relationship graphs.
# NOTE: These are meaningless under Windows! Just ignore them!
$g_dot_tool = '/usr/bin/dot';
$g_neato_tool = '/usr/bin/neato';
?>
9 changes: 8 additions & 1 deletion core/relationship_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: relationship_api.php,v 1.21 2004-09-25 14:16:08 prichards Exp $
# $Id: relationship_api.php,v 1.22 2004-09-25 14:36:50 prichards Exp $
# --------------------------------------------------------

### Relationship API ###
Expand Down Expand Up @@ -582,6 +582,13 @@ function relationship_view_box( $p_bug_id ) {
?>
<span class="small"><?php print_bracket_link( 'bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=relation', lang_get( 'relation_graph' ) ) ?></span>
<span class="small"><?php print_bracket_link( 'bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=dependency', lang_get( 'dependency_graph' ) ) ?></span>
<?php
}

if ( ON == config_get( 'relationship_graph_enable' ) ) {
?>
<span class="small"><?php print_bracket_link( 'bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=relation', lang_get( 'relation_graph' ) ) ?></span>
<span class="small"><?php print_bracket_link( 'bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=dependency', lang_get( 'dependency_graph' ) ) ?></span>
<?php
}
?>
Expand Down
18 changes: 13 additions & 5 deletions lang/strings_english.txt
Expand Up @@ -9,11 +9,11 @@
###########################################################################
# English strings for Mantis
# -------------------------------------------------
# $Revision: 1.211 $
# $Author: bpfennigschmidt $
# $Date: 2004-09-23 18:24:03 $
# $Revision: 1.212 $
# $Author: prichards $
# $Date: 2004-09-25 14:35:26 $
#
# $Id: strings_english.txt,v 1.211 2004-09-23 18:24:03 bpfennigschmidt Exp $
# $Id: strings_english.txt,v 1.212 2004-09-25 14:35:26 prichards Exp $
###########################################################################
?>
<?php
Expand Down Expand Up @@ -1050,6 +1050,14 @@ $s_create_child_bug_button = "Create Child";
$s_bug_cloned_to = "Issue cloned";
$s_bug_created_from = "Issue generated from";

# Relationship Graphs
$s_viewing_bug_relationship_graph_title = "Relationship Graph";
$s_relation_graph = "Relation Graph";
$s_dependency_graph = "Dependency Graph";
$s_vertical = "Vertical";
$s_horizontal = "Horizontal";
$s_view_issue = "View Issue";

# Source Control Integration
$s_checkin = 'Checkin';
?>
?>

0 comments on commit 1cd201e

Please sign in to comment.