You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* LIMS-2125: Allow use of shipping service for EU dispatches (#1049)
* LIMS-2033: Fix count of autoprocessing errors (#1047)
* LIMS-2037: Remove manual check for duplicate acronyms (#1034)
* LIMS-2120: Hide courier fields if using facility account (#1050)
* LIMS-2141: Suppress errors if visit directory has been replaced with a file (#1051)
* I02-1 has 3 webcams
---------
Co-authored-by: Mark Williams <mark.williams@diamond.ac.uk>
Copy file name to clipboardExpand all lines: api/src/Page/Processing.php
+30-9Lines changed: 30 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -648,32 +648,53 @@ function _ap_message_status() {
648
648
649
649
$rows = $this->db->union(
650
650
array(
651
-
"SELECT app.autoprocprogramid, dc.datacollectionid as id, SUM(IF(appm.severity = 'ERROR', 1, 0)) as errors, SUM(IF(appm.severity = 'WARNING', 1, 0)) as warnings, SUM(IF(appm.severity = 'INFO', 1, 0)) as infos
651
+
"SELECT DISTINCT dc.datacollectionid as id, dc.datacollectiongroupid as dcg, appm.autoprocprogrammessageid, appm.severity
652
652
FROM autoprocprogrammessage appm
653
653
INNER JOIN autoprocprogram app ON app.autoprocprogramid = appm.autoprocprogramid
654
654
INNER JOIN autoprocintegration api ON api.autoprocprogramid = app.autoprocprogramid
655
655
INNER JOIN datacollection dc ON dc.datacollectionid = api.datacollectionid
656
656
INNER JOIN datacollectiongroup dcg ON dcg.datacollectiongroupid = dc.datacollectiongroupid
657
657
INNER JOIN blsession s ON s.sessionid = dcg.sessionid
658
-
WHERE $where
659
-
GROUP BY dc.datacollectionid",
660
-
"SELECT app.autoprocprogramid, dc.datacollectionid as id, SUM(IF(appm.severity = 'ERROR', 1, 0)) as errors, SUM(IF(appm.severity = 'WARNING', 1, 0)) as warnings, SUM(IF(appm.severity = 'INFO', 1, 0)) as infos
658
+
WHERE $where",
659
+
"SELECT DISTINCT dc.datacollectionid as id, dc.datacollectiongroupid as dcg, appm.autoprocprogrammessageid, appm.severity
661
660
FROM autoprocprogrammessage appm
662
661
INNER JOIN autoprocprogram app ON app.autoprocprogramid = appm.autoprocprogramid
663
662
INNER JOIN processingjob pj ON pj.processingjobid = app.processingjobid
664
663
INNER JOIN datacollection dc ON dc.datacollectionid = pj.datacollectionid
665
664
INNER JOIN datacollectiongroup dcg ON dcg.datacollectiongroupid = dc.datacollectiongroupid
666
665
INNER JOIN blsession s ON s.sessionid = dcg.sessionid
667
-
WHERE $where
668
-
GROUP BY dc.datacollectionid
669
-
",
666
+
WHERE $where",
670
667
),
671
668
$args,
672
669
false,
673
-
"SELECT autoprocprogramid, id, sum(errors) as errors, sum(warnings) as warnings, sum(infos) as infos FROM (:QUERY) inq GROUP BY id"
670
+
"SELECT id, dcg, SUM(IF(severity = 'ERROR', 1, 0)) as errors, SUM(IF(severity = 'WARNING', 1, 0)) as warnings, SUM(IF(severity = 'INFO', 1, 0)) as infos FROM (:QUERY) inq GROUP BY id"
0 commit comments