]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 934573 - Date range for Bug.history WebService API method
authorDave Lawrence <dlawrence@mozilla.com>
Wed, 6 Nov 2013 16:28:16 +0000 (11:28 -0500)
committerDave Lawrence <dlawrence@mozilla.com>
Wed, 6 Nov 2013 16:28:16 +0000 (11:28 -0500)
r/a=glob

Bugzilla/WebService/Bug.pm

index 30d07d1f4af338e8fe2849e0d0d07977e49d63c7..598316c5971b95f428b9886169430f867078e669 100644 (file)
@@ -40,6 +40,7 @@ use constant PRODUCT_SPECIFIC_FIELDS => qw(version target_milestone component);
 
 use constant DATE_FIELDS => {
     comments => ['new_since'],
+    history  => ['new_since'],
     search   => ['last_change_time', 'creation_time'],
 };
 
@@ -400,7 +401,7 @@ sub history {
         $bug_id = $bug->id;
         $item{id} = $self->type('int', $bug_id);
 
-        my ($activity) = $bug->get_activity;
+        my ($activity) = $bug->get_activity(undef, $params->{new_since});
 
         my @history;
         foreach my $changeset (@$activity) {
@@ -2432,7 +2433,12 @@ An array of numbers and strings.
 If an element in the array is entirely numeric, it represents a bug_id 
 from the Bugzilla database to fetch. If it contains any non-numeric 
 characters, it is considered to be a bug alias instead, and the data bug 
-with that alias will be loaded. 
+with that alias will be loaded.
+
+item C<new_since>
+
+C<dateTime> If specified, the method will only return changes I<newer>
+than this time.
 
 =back
 
@@ -2514,6 +2520,8 @@ names used by L<Bug.update|/"update"> for consistency.
 
 =item REST API call added Bugzilla B<5.0>.
 
+=item Added C<new_since> parameter if Bugzilla B<5.0>.
+
 =back
 
 =back