Conversation
2da328a
to
e70942d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questions raised about the usage of true/null values.
Another question: do we need the is_primary
field in the ES indexer?
knex.schema | ||
.table('records', (table) => { | ||
table.boolean('is_primary') | ||
.nullable(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this default to false
, instead of being nullable?
@@ -468,6 +469,7 @@ exports.seed = (knex) => { | |||
trial_id: trials[1].id, | |||
source_id: sources.isrctn.id, | |||
source_url: 'http://www.isrctn.com/ISRCTN11631712', | |||
is_primary: null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use true
/false
instead of true
/null
?
@nightsh I added a default to
As far as I've seen we don't have an index dedicated to Also, coveralls is giving mixed messages and I don't really understand what bothers him. If you do, let me know. |
opentrials/opentrials#610