Skip to content

Commit

Permalink
Merge branch 'events-paginate' into 'master'
Browse files Browse the repository at this point in the history
API: Events paginate

Updated the api method for /project/:id/events, to use the paginate method instead of limiting and offsetting the recent events in the method itself.

This will also change the first page to be 1 instead of 0, but using 0 will still work and will give back the first page.
This also add's the link headers (next/first/last).

See merge request !267
  • Loading branch information
Douwe Maan committed Mar 30, 2015
2 parents 5059681 + 3b3662d commit fe7992a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ v 7.10.0 (unreleased)
- Prevent holding Control-Enter or Command-Enter from posting comment multiple times.
- Prevent note form from being cleared when submitting failed.
- Improve file icons rendering on tree (Sullivan Sénéchal)
- API: Add pagination to project events

v 7.9.0
- Send EmailsOnPush email when branch or tag is created or deleted.
Expand Down
2 changes: 1 addition & 1 deletion lib/api/projects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def project_sort
present user_project, with: Entities::ProjectWithAccess, user: current_user
end

# Get a single project events
# Get events for a single project
#
# Parameters:
# id (required) - The ID of a project
Expand Down

0 comments on commit fe7992a

Please sign in to comment.