• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MediaComem / biopocket-backend / 172
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: story-2-user-registration
DEFAULT BRANCH: master
Ran 05 Jun 2018 08:18AM UTC
Jobs 2
Files 67
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
172

push

travis-ci

AlphaHydrae
Add an API route to list actions (#18)

Add a new `/actions` route to the API. It allows users to list
all available actions of the BioPocket application, without requiring any
authentification. This route implements pagination and inclusion.

Add several validations to the project : one to validate that
a value is an positive integer, one to validate that a value is included
in a whitelist of values, and the last one to validate pagination params
such as offset and limit.
Add tests for the last two validators.

Update the sample-data script to include a dozen themes and hundred
actions related to those themes.

Refactored ApiError implementation. There is now a dedicated file for this
class. Plus it can now contains specific headers that will be added to the
response's headers.
A new badRequest error has been added to the `errors.js` file.

Updated the documentation to include the new API route.
Add new documentation type: `validationError`. It represents validation
errors returned by the routes. It should contain all properties that an
error object can have, regardless of the route.
Also add documentation type for `Action` and `Theme`.

Add two new documentation traits.
`paginatedResource` that documents everything related to pagination in
routes.
`resourceWithInclusion` that documents everything related to resources
that can include other resources in their response objects.

Update previous documentation to include the new types and/or traits.

Add a `.gitattributes` file to force using LF instead of CRLF in all
files.

STORY: TG-52

455 of 562 branches covered (80.96%)

Branch coverage included in aggregate %.

1972 of 2062 relevant lines covered (95.64%)

65.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 172.1 (NODE_ENV=test SESSION_SECRET=secret) 05 Jun 2018 08:18AM UTC 0
92.49
Travis Job 172.1
2 172.2 (NODE_ENV=test SESSION_SECRET=secret) 05 Jun 2018 08:20AM UTC 0
92.49
Travis Job 172.2
Source Files on build 172
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #172
  • 86bd56f0 on github
  • Prev Build on sprint-2-discovering-actions (#148)
  • Next Build on sprint-2-discovering-actions (#175)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc