We're updating the issue view to help you get more done. 

Orange warning triangle displayed when using only free text phenotypes

Description

If there are only custom terms, the scorer reports a score of 0, which looks correct in this case. That is returned via JSON to SpecificityMetricWidget javascript.
In that javascript is this piece of code:

1 2 3 4 5 6 var score = json && json.score || -1; if (score >= 0) { this.showValue(score); } else { this.unknownValue(); }

json && json.score evaluates to false (since json.score == 0), and score is set to -1, and unknownValue() is triggered displaying the red triangle.
I think this is a bug, since the test explicitly tests "if (score >= 0)", i.e. value of 0 is supposed to be valid.

Environment

None

Status

Assignee

Sergiu Dumitriu

Reporter

Sasha Andjic

Labels

None

External issue ID

None

External issue ID

None

Epic Link

Fix versions

Affects versions

1.2.3

Priority

Medium