Dependency Graph
View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006005 | mantisbt | change log | public | 2005-07-25 00:54 | 2009-06-26 12:05 |
| Reporter | codeworx | Assigned To | giallu | ||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | fixed | ||
| Summary | 0006005: Ability to request a version on changelog | ||||
| Description | We have multiple projects which keep the same version numbers across them. On the change log, it would be great to be able to see the changes for a selected version only (instead of seeing all versions) | ||||
| Additional Information | Then you could select "all projects" --> Changelog --> my_version and get that version across across all your projects. | ||||
| Tags | No tags attached. | ||||
| Attached Files | versions.patch (3,536 bytes)
Index: changelog_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/changelog_page.php,v
retrieving revision 1.17
diff -u -r1.17 changelog_page.php
--- changelog_page.php 1 Jan 2006 02:56:39 -0000 1.17
+++ changelog_page.php 10 Jan 2006 16:31:55 -0000
@@ -75,6 +75,67 @@
$t_version_rows = version_get_all_rows( $t_project_id );
echo '<br /><span class="pagetitle">', string_display( $t_project_name ), ' - ', lang_get( 'changelog' ), '</span><br /><br />';
+ $t_last_version =false;
+ $t_last_version_fromget = gpc_get_string( 'last_version' , '' );
+ $t_first_version_fromget = gpc_get_string( 'first_version' , '' );
+
+ if ($t_last_version_fromget != '') $t_do_we_show_this=false;
+ else $t_do_we_show_this = true;
+
+ $t_version_rows_filtered = array();
+ foreach( $t_version_rows as $t_version_row ) {
+ # Did we reach the last version to show?
+ if ($t_last_version_fromget == $t_version_row['version']) {
+ $t_do_we_show_this = true;
+ }
+
+ # Do we have to show this?
+ if ($t_do_we_show_this === true) {
+ $t_version_rows_filtered[]=$t_version_row;
+ }
+
+ # Did we reach the first version to show?
+ if ($t_first_version_fromget == $t_version_row['version']) {
+ $t_do_we_show_this = false;
+ }
+
+ /*
+ * Part to define the first and last value default values
+ */
+ if ($t_last_version == false) {
+ $t_last_version = $t_version_row['version'];
+ }
+ $t_first_version = $t_version_row['version'];
+ }
+
+ $t_version_rows = $t_version_rows_filtered;
+
+ $t_first_version = gpc_get_string( 'first_version' , $t_first_version);
+ $t_last_version = gpc_get_string( 'last_version' , $t_last_version);
+
+
+
+
+ ?>
+<table class="width100" cellspacing="1">
+ <tr>
+ <td class="right" colspan="4">
+ <form method="get" name="list_versions_open" action="changelog_page.php">
+ <?php echo lang_get( 'from_version' ) ?>
+ <select name="first_version">
+ <?php print_version_option_list( $t_first_version, $t_project_id, VERSION_RELEASED ) ?>
+ </select>
+ <?php echo lang_get( 'to_version' ) ?>
+ <select name="last_version">
+ <?php print_version_option_list( $t_last_version, $t_project_id, VERSION_RELEASED ) ?>
+ </select>
+ <input type="submit" name="switch_to_versions_button" class="button-small" value="<?php echo lang_get( 'view_changes' ) ?>" />
+ </form>
+ </td>
+ </tr>
+</table> <?php
+
+ echo '<br />';
echo '<tt>';
$i = 0;
Index: lang/strings_english.txt
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/lang/strings_english.txt,v
retrieving revision 1.268
diff -u -r1.268 strings_english.txt
--- lang/strings_english.txt 17 Dec 2005 23:08:52 -0000 1.268
+++ lang/strings_english.txt 10 Jan 2006 16:32:05 -0000
@@ -129,6 +129,11 @@
$s_view_status_group_bugs_button = 'Update View Status';
$s_set_sticky_group_bugs_button = 'Set/Unset Sticky';
+# changelog_page.php
+$s_view_changes ='View changes';
+$s_to_version ='to';
+$s_from_version ='From';
+
# improved JPgraphs strings
$s_graph_imp_status_title = 'Synthesis graphs by status' ;
$s_graph_imp_priority_title = 'Synthesis graphs by priority' ;
| ||||
|
It would also be nice to have it either show only the last x versions or back x days. Our change log page is rather large and only the top 3-5 are ever really looked at. To have a drop down of something like "last 30 days, last 90 days, all" (where the setting is remembered) would help to reduce the amount of data that the page must display. |
|
|
I totally agree: the ability to only show the changes of 1 particular version would be awesome ! |
|
|
I'll have a look at this feature request, and submit a patch soon. Best regards, |
|
|
Done, I'll send the patch to the mailinglist in next hours. Best regards, |
|
|
This small patch offers the possibility to show in changelog only the changes wich have been made between two versions, and hide the other changes. Best regards, |
|
|
Very nice, well done! |
|
|
This is now possible, check the roadmap/changelog pages in this tracker |
|
related to
child of
duplicate of