-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Issues by project to MantisGraph #1957
Conversation
Fixes #33521 Signed-off-by: Damien Regad <dregad@mantisbt.org> Original commit modified - Whitespace fixes - PHPdoc adjustments - Renamed, reordered and corrected language strings
Before introduction of the By Projects graphs, the Graphs menu was opening the By Developers graph by default. Since the default was changed to By Projects, it needs to be reflected in all graph scripts to ensure the Graphs tab is shown as active. Fixes #33521
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CasN many thanks for your contribution. This looks good (mostly) and tested OK.
I'll make the necessary adjustments to fix my review comments and merge.
plugins/MantisGraph/MantisGraph.php
Outdated
@@ -64,7 +64,7 @@ function register() { | |||
|
|||
$this->author = 'MantisBT Team'; | |||
$this->contact = 'mantisbt-dev@lists.sourceforge.net'; | |||
$this->url = 'https://mantisbt.org'; | |||
$this->url = 'https://www.mantisbt.org'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you changing this, the URL is correct
@@ -227,7 +227,7 @@ private function get_url_with_filter( $p_page ) { | |||
*/ | |||
function summary_menu() { | |||
$t_menu_items[] = '<a href="' | |||
. $this->get_url_with_filter( 'developer_graph.php' ) | |||
. $this->get_url_with_filter( 'project_graph.php' ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the default graph is fine, but it needs to be reflected in all graph scripts
print_summary_menu( 'project_graph.php', $t_filter );
Otherwise the Graphs tab will no longer be marked as active.
@@ -88,3 +88,6 @@ $s_plugin_MantisGraph_graph_topdev = 'Top Developers by Fixed Issues'; | |||
$s_plugin_MantisGraph_graph_opendev = 'Developers by Open Issues'; | |||
$s_plugin_MantisGraph_graph_topreporter_fixed = 'Top Reporters by Fixed Issues'; | |||
$s_plugin_MantisGraph_other_categories = 'other categories (%d)'; | |||
|
|||
$s_plugin_MantisGraph_other_projects = 'other projecst (%d)'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
@@ -88,3 +88,6 @@ $s_plugin_MantisGraph_graph_topdev = 'Top Developers by Fixed Issues'; | |||
$s_plugin_MantisGraph_graph_opendev = 'Developers by Open Issues'; | |||
$s_plugin_MantisGraph_graph_topreporter_fixed = 'Top Reporters by Fixed Issues'; | |||
$s_plugin_MantisGraph_other_categories = 'other categories (%d)'; | |||
|
|||
$s_plugin_MantisGraph_other_projects = 'other projecst (%d)'; | |||
$s_plugin_MantisGraph_graph_imp_project_title = 'By Projects Graphs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why you're tagging these 2 strings at the end, it would be more consistent to put them together with related strings. Also the imp
prefix is probably the result of a copy/paste, not needed IMO (TBH, I'm not even what its meaning is/was).
c655ae0
to
c03fa0c
Compare
Also, to keep in mind for future contributions: When referring to Mantis issues in your commit message, you should always follow the regex from source integration plugin (
In other words
You can reference multiple issues if needed, e.g. |
This addresses issue 33521