instedd / cdx

Connected Diagnostics Platform
https://cdx.io
9 stars 7 forks source link

Alerts are being activated with QC tests #962

Closed pmallol closed 8 years ago

pmallol commented 8 years ago

In Version: 0.11-pre8

Preconditions: There is a GeneXpert device activated There is also an Alert group already configured for Device Errors ranging from 500 to 700

  1. Upload the following QC test:
{
  "event": {
    "result": "MTB DETECTED MEDIUM|Rif Resistance NOT DETECTED",
    "assay_name": "MTB-RIF Assay",
    "sample_ID": "A-12347",
    "system_user": "JaneDoe",
    "device_serial_number": "123456",
    "end_time": "2016-03-09T20:08:41-05:00",
    "start_time": "2016-03-09T20:08:41-05:00",
    "event_id": "76B4AFBA09A143718CED4767ADS4EAE7",
    "test_type": "1",
    "error_code":"502"
  }
}

Obtained: An alert message is sent to the recipient's mail.

Expected: No alert emails should be triggered by QC tests

pmallol commented 8 years ago

Refer to comment: https://github.com/instedd/cdx/issues/925#issuecomment-191422905

macoca commented 8 years ago

This should've been fixed by https://github.com/instedd/cdx/commit/561e335c2e29aa7c4074878ef468c58aa107e292

anthonyoleary commented 8 years ago

I just created a pull request for a fix. https://github.com/instedd/cdx/pull/971/files.

Tested in api/playground:
"test_type": "0" - generates an alert, "test_type": "1 - does not generate an alert.

pmallol commented 8 years ago

Still present in Version: 0.11-pre10

mmuller commented 8 years ago

Ok in version 0.11-pre12