Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
676ae499
Commit
676ae499
authored
Oct 17, 2014
by
Dylan William Hardison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1084490 - Fix Bugzilla::WebService::BugUserLastVisit->get & correct POD
r=dkl a=glob
parent
c30fc43f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
BugUserLastVisit.pm
Bugzilla/WebService/BugUserLastVisit.pm
+4
-11
No files found.
Bugzilla/WebService/BugUserLastVisit.pm
View file @
676ae499
...
...
@@ -69,10 +69,10 @@ sub get {
$user
->
visible_bugs
([
grep
/^[0-9]$/
,
@$ids
]);
}
my
@last_visits
=
@
{
$user
->
last_visit
s
};
my
@last_visits
=
@
{
$user
->
last_visit
ed
};
if
(
$ids
)
{
# remove bugs that we ar
n'
t interested in if ids is passed in.
# remove bugs that we ar
e no
t 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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment