Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8e70cf25
Commit
8e70cf25
authored
Oct 11, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addresses Robert's feedback
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
33ce1976
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
doc/api/projects.md
doc/api/projects.md
+1
-1
doc/api/users.md
doc/api/users.md
+1
-1
spec/requests/api/users_spec.rb
spec/requests/api/users_spec.rb
+3
-2
No files found.
doc/api/projects.md
View file @
8e70cf25
...
@@ -436,7 +436,7 @@ Parameters:
...
@@ -436,7 +436,7 @@ Parameters:
### Get project events
### Get project events
Get the events for the specified project.
Get the events for the specified project.
Sorted from newest to
lat
est
Sorted from newest to
old
est
```
```
GET /projects/:id/events
GET /projects/:id/events
...
...
doc/api/users.md
View file @
8e70cf25
...
@@ -630,7 +630,7 @@ Will return `200 OK` on success, `404 User Not Found` is user cannot be found or
...
@@ -630,7 +630,7 @@ Will return `200 OK` on success, `404 User Not Found` is user cannot be found or
### Get user contribution events
### Get user contribution events
Get the contribution events for the specified user, sorted from newest to
lat
est.
Get the contribution events for the specified user, sorted from newest to
old
est.
```
```
GET /users/:id/events
GET /users/:id/events
...
...
spec/requests/api/users_spec.rb
View file @
8e70cf25
...
@@ -898,7 +898,6 @@ describe API::API, api: true do
...
@@ -898,7 +898,6 @@ describe API::API, api: true do
describe
'GET /user/:id/events'
do
describe
'GET /user/:id/events'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:lambda_user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:note
)
{
create
(
:note_on_issue
,
note:
'What an awesome day!'
,
project:
project
)
}
let
(
:note
)
{
create
(
:note_on_issue
,
note:
'What an awesome day!'
,
project:
project
)
}
...
@@ -909,7 +908,9 @@ describe API::API, api: true do
...
@@ -909,7 +908,9 @@ describe API::API, api: true do
context
"as a user than cannot see the event's project"
do
context
"as a user than cannot see the event's project"
do
it
'returns no events'
do
it
'returns no events'
do
get
api
(
"/users/
#{
user
.
id
}
/events"
,
lambda_user
)
other_user
=
create
(
:user
)
get
api
(
"/users/
#{
user
.
id
}
/events"
,
other_user
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
json_response
).
to
be_empty
expect
(
json_response
).
to
be_empty
...
...
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