Fix Version/s: None
A few metrics (eg, AD1, PA2) as being rendered in the qa-dashboard has having multiple values per dataset run. This might be an issue with the format being submitted by post-qa or it may be internal to the dashboard (or both).
Another really quick partial fix is to just not draw lines between points.
More info on this issue.
If we look at the data returned by the measurements API we see the three values for AD1, for instance
what's missing there is the spec level each measurement of AD1 corresponds to.
That information is indeed available as measurement metadata (see the spec_name key)
I think I just need to include the spec_name as part of the data returned by the measurements API, then we can distinguish the measurements and draw a different line for each spec level.
If spec_name == None then there is no need to distinguish between the measurements and we draw just one line.
That would completely solve the display problem.
An update on this issue:
spec_name is part of the measurement metadata which is stored in a JSONField in the measurements table. mariadb does not suport filtering on this datatype and it turns out that it's quite inefficient to extract this value from the field and test it in order to filter out the measurement, specially because most of the metrics have 'spec_name': None
However we need a solution for that, in lsst.verify metrics can be tagged and we want to filter efficiently by tag, e.g. the filter in which the measurement was done.
In the current implementation it is kind of painful to make this change. In order to make more efficient queries, we have to add the new field spec_name in the Measurements table change the serializer to parse that information and save to the spec_name field and we have to make this change for all the data already ingested in the database (probably we cannot extreact the spec_name value with SQL alone)
I've started SQuaSH implementation with Mariab DB 10.1, it looks like in 10.2 it's possible to query a JSON field
for all the json functions available.
Have to figure out the status of
in supporting these features. If we manage to use them it will certainly alleviate the problem.
Reviewing back log tickets, this issue was fixed when we redesigned the SQuaSH API in
At the JTM Angelo Fausti and I discussed this and agreed that the dashboard should just show the `minimum` threshold values.