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

opentrials / api / 152
90%
master: 92%

Build:
Build:
LAST BUILD BRANCH: v1.1.1
DEFAULT BRANCH: master
Ran 21 Apr 2016 02:23PM UTC
Jobs 1
Files 22
Run time 1s
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
152

push

travis-ci

vitorbaptista
[#58] Add Record model

A Record contains the non-deduplicated Trial attributes taken from the Source.
A Trial, in this sense, is generated from its many Records. This is useful to
allow the user to check the original trial's data.

This is the first entity which serves as an relationship table for the
many-to-many relationship between Trial and Source, while also having many
important columns on its own (and not simply "role", as is the case of the
other many relationship tables). This required a few changes to the code and
made the API responses a bit inconsistent.

For the other relationship tables, we have an "attributes" field, but not this
one. The idea of the "attributes" was to avoid naming clashes between the
attributes in the relationship table and in the entity itself. However, it
might be overkill. Maybe it would be better to simply avoid these clashes by
taking care of our namings. I'll make this changes in a later commit.

opentrials/opentrials#58

54 of 54 new or added lines in 6 files covered. (100.0%)

372 of 415 relevant lines covered (89.64%)

8.74 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
100.0
api/controllers/trials.js

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
config/index.js
1
100.0
api/models/location.js
1
100.0
api/models/organisation.js
1
100.0
api/controllers/trials.js
Jobs
ID Job ID Ran Files Coverage
1 152.1 21 Apr 2016 02:23PM UTC 0
89.64
Travis Job 152.1
Source Files on build 152
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #152
  • 3812dbd9 on github
  • Prev Build on feature/expose-trialrecords (#151)
  • Next Build on feature/expose-trialrecords (#156)
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