Skip to content

Commit

Permalink
LIMS-1240: Dont use shortComments LIKE 'EDNA%' (#795)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Williams <[email protected]>
  • Loading branch information
ndg63276 and Mark Williams authored Jul 23, 2024
1 parent 78a1bc4 commit 1c34347
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/src/Page/Sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ private function get_sub_samples_query($where, $first_inner_select_where = '', $
LEFT OUTER JOIN screening sc ON dc.datacollectionid = sc.datacollectionid
LEFT OUTER JOIN screeningoutput so ON sc.screeningid = so.screeningid
LEFT OUTER JOIN screeningstrategy st ON st.screeningoutputid = so.screeningoutputid AND sc.shortcomments LIKE '%EDNA%'
LEFT OUTER JOIN screeningstrategy st ON st.screeningoutputid = so.screeningoutputid AND sc.programversion = 'EDNA MXv1'
LEFT OUTER JOIN screeningstrategywedge ssw ON ssw.screeningstrategyid = st.screeningstrategyid
LEFT OUTER JOIN autoprocintegration ap ON ap.datacollectionid = dc.datacollectionid
Expand Down Expand Up @@ -1206,7 +1206,7 @@ function _samples()
LEFT OUTER JOIN screening sc ON dc.datacollectionid = sc.datacollectionid
LEFT OUTER JOIN screeningoutput so ON sc.screeningid = so.screeningid
LEFT OUTER JOIN screeningstrategy st ON st.screeningoutputid = so.screeningoutputid AND sc.shortcomments LIKE '%EDNA%'
LEFT OUTER JOIN screeningstrategy st ON st.screeningoutputid = so.screeningoutputid AND sc.programVersion = 'EDNA MXv1'
LEFT OUTER JOIN screeningstrategywedge ssw ON ssw.screeningstrategyid = st.screeningstrategyid
LEFT OUTER JOIN autoprocintegration ap ON ap.datacollectionid = dc.datacollectionid
Expand Down
10 changes: 7 additions & 3 deletions api/src/Page/Stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,12 @@ function _pipelines() {

$t = $this->has_arg('t') ? $this->arg('t') : 'ai';

if (array_key_exists($t, $types)) $this->$types[$t]();
else $this->_error('No such stat type');
if (array_key_exists($t, $types)) {
$func = $types[$t];
$this->$func();
} else {
$this->_error('No such stat type');
}
}


Expand All @@ -275,7 +279,7 @@ function _auto_indexing() {
INNER JOIN datacollectiongroup dcg ON dcg.datacollectiongroupid = dc.datacollectiongroupid
INNER JOIN blsession ses ON ses.sessionid = dcg.sessionid
INNER JOIN v_run vr ON (ses.startdate BETWEEN vr.startdate AND vr.enddate)
WHERE s.shortcomments LIKE 'EDNA%' AND TIMESTAMPDIFF('SECOND', dc.endtime, s.bltimestamp) < 10000
WHERE s.shortcomments LIKE 'Strategy%' AND TIMESTAMPDIFF('SECOND', dc.endtime, s.bltimestamp) between 0 and 10000
AND ses.beamlinename in ('$bls')
GROUP BY s.shortcomments, vr.run
ORDER BY vr.run
Expand Down

0 comments on commit 1c34347

Please sign in to comment.