View Issue Details

IDProjectCategoryView StatusLast Update
0006005mantisbtchange logpublic2009-06-26 12:05
Reportercodeworx Assigned Togiallu  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Summary0006005: 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.

TagsNo 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' ;
versions.patch (3,536 bytes)   

Relationships

related to 0006017 closedgiallu Filter change log by specific versions 

Activities

nuclearspike

nuclearspike

2005-07-25 14:16

reporter   ~0010952

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.

david_s_nl

david_s_nl

2005-10-25 15:30

reporter   ~0011532

I totally agree: the ability to only show the changes of 1 particular version would be awesome !

DracoBlue

DracoBlue

2006-01-10 04:57

reporter   ~0011892

I'll have a look at this feature request, and submit a patch soon.

Best regards,
Jan Schütze

DracoBlue

DracoBlue

2006-01-10 06:27

reporter   ~0011893

Last edited: 2006-01-10 11:46

Done, I'll send the patch to the mailinglist in next hours.

Preview:
http://dracoblue.gamehost.at/mantis/changelog_page.php?first_version=0.3b&last_version=0.3b&switch_to_versions_button=Only+version+between

Best regards,
Jan Schütze

DracoBlue

DracoBlue

2006-01-10 11:47

reporter   ~0011898

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,
DracoBlue

david_s_nl

david_s_nl

2006-01-10 12:03

reporter   ~0011899

Very nice, well done!
I hope this will be implemented soon in an official version.

giallu

giallu

2009-01-21 10:45

reporter   ~0020671

This is now possible, check the roadmap/changelog pages in this tracker