]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1084490 - Fix Bugzilla::WebService::BugUserLastVisit->get & correct POD
authorDylan William Hardison <dylan@hardison.net>
Fri, 17 Oct 2014 17:39:36 +0000 (13:39 -0400)
committerDylan William Hardison <dylan@hardison.net>
Tue, 21 Oct 2014 18:23:34 +0000 (14:23 -0400)
r=dkl a=glob

Bugzilla/WebService/BugUserLastVisit.pm

index 0fc214db87c216b3cddfcdc29dd8c52c6864421d..a29d2633b83beb17381a64bed97d00a1d61625bd 100644 (file)
@@ -69,10 +69,10 @@ sub get {
         $user->visible_bugs([grep /^[0-9]$/, @$ids]);
     }
 
-    my @last_visits = @{ $user->last_visits };
+    my @last_visits = @{ $user->last_visited };
 
     if ($ids) {
-        # remove bugs that we arn't interested in if ids is passed in.
+        # remove bugs that we are not interested in if ids is passed in.
         my %id_set = map { ($_ => 1) } @$ids;
         @last_visits = grep { $id_set{ $_->bug_id } } @last_visits;
     }
@@ -167,20 +167,13 @@ B<EXPERIMENTAL>
 
 =item B<Description>
 
-Get the last visited timestamp for one or more specified bug ids or get a
-list of the last 20 visited bugs and their timestamps.
+Get the last visited timestamp for one or more specified bug ids.
 
 =item B<REST>
 
 To return the last visited timestamp for a single bug id:
 
-GET /rest/bug_visit/<bug-id>
-
-To return more than one bug timestamp or the last 20:
-
-GET /rest/bug_visit
-
-The returned data format is the same as below.
+    GET /rest/bug_user_last_visit/<bug-id>
 
 =item B<Params>