-
Notifications
You must be signed in to change notification settings - Fork 31
LIMS-1798: Only show the latest dispensing position #952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ndg63276
merged 7 commits into
pre-release/2025-R3.5
from
fix/LIMS-1798/only-show-latest-dispensing-position
Jul 22, 2025
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1343bff
LIMS-1550: Add 'Mark Dispensing' button to plate well view (#869)
ndg63276 e522f01
LIMS-167: Dont default to mx type for calendar/logistics views (#942)
ndg63276 08dfc93
LIMS-1716: Multicrystal processing only shows one DC per group (#938)
ndg63276 0e2dc3d
LIMS-1718: Display cluster info on multiplex jobs (#937)
ndg63276 fa08634
LIMS-1752: Create view for Ligand Fit pipeline (#943)
ndg63276 b7d32c1
LIMS-1798: Only show the latest dispensing position
5055d29
Merge branch 'pre-release/2025-R3.5' into fix/LIMS-1798/only-show-lat…
ndg63276 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| <?php | ||
|
|
||
| namespace SynchWeb\Downstream\Type; | ||
|
|
||
| use SynchWeb\Downstream\DownstreamPlugin; | ||
| use SynchWeb\Downstream\DownstreamResult; | ||
|
|
||
| class LigandFit extends DownstreamPlugin { | ||
| var $has_images = true; | ||
| var $friendlyname = 'LigandFit'; | ||
| var $has_mapmodel = array(1, 0); | ||
|
|
||
| function _get_ligandfit_results_json() { | ||
| $appid = array($this->autoprocprogramid); | ||
| $filepath = $this->db->pq( | ||
| "SELECT app.filePath, app.filename from autoprocprogramattachment app where autoprocprogramid = :1 and filename like '%.json' ", | ||
| $appid | ||
| ); | ||
| return $filepath; | ||
| } | ||
|
|
||
| function _get_ligandfit_results_png() { | ||
| $appid = array($this->autoprocprogramid); | ||
| $filepath = $this->db->pq( | ||
| "SELECT app.filepath, app.filename from autoprocprogramattachment app where autoprocprogramid = :1 and filename like '%.png' ", | ||
| $appid | ||
| ); | ||
| return $filepath; | ||
| } | ||
|
|
||
| function _get_model_appaid() { | ||
| $appid = array($this->autoprocprogramid); | ||
| $filepath = $this->db->pq( | ||
| "SELECT app.autoprocprogramattachmentid from autoprocprogramattachment app where autoprocprogramid = :1 and filename like '%.html' ", | ||
| $appid | ||
| ); | ||
| if (sizeof($filepath)) { | ||
| return $filepath[0]["AUTOPROCPROGRAMATTACHMENTID"]; | ||
| } else { | ||
| return; | ||
| } | ||
| } | ||
|
|
||
| function results() { | ||
| $json_filepath = $this->_get_ligandfit_results_json(); | ||
| if (sizeof($json_filepath)) { | ||
| $json_path = $json_filepath[0]["FILEPATH"] . "/" . $json_filepath[0]["FILENAME"] ; | ||
| $json_data = file_get_contents($json_path); | ||
| } else { | ||
| $json_data = "[]"; | ||
| } | ||
| $dat = array(); | ||
| $appaid = $this->_get_model_appaid(); | ||
| $dat['BLOBS'] = $appaid ? 1 : 0; | ||
| $dat['MODEL_APPAID'] = $appaid; | ||
| $dat['SOLUTIONS'] = json_decode($json_data); | ||
| $dat['PARENTAUTOPROCPROGRAM'] = $this->process['PROCESSINGCOMMENTS']; | ||
|
|
||
| $results = new DownstreamResult($this); | ||
| $results->data = $dat; | ||
|
|
||
| return $results; | ||
| } | ||
|
|
||
| function images($n = 0) { | ||
| $png = $this->_get_ligandfit_results_png(); | ||
| if (sizeof($png)) { | ||
| return $png[0]["FILEPATH"] . "/" . $png[0]["FILENAME"]; | ||
| } else { | ||
| return; | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.