Conversation
|
Conflicting PR. Removed from build OMERO-DEV-merge-push#580. See the console output for more details.
|
|
Conflicting PR. Removed from build OMERO-DEV-merge-push#581. See the console output for more details.
|
|
|
| """ | ||
| query, clauses, params = super( | ||
| _PlateAcquisitionWrapper, cls)._getQueryString(opts) | ||
| if opts is not None and 'plate' in opts: |
There was a problem hiding this comment.
maybe good to have one method to prepare the query for plate filtering
Same check in this method and getName
There was a problem hiding this comment.
Sorry - I'm not sure what you mean here.
There was a problem hiding this comment.
code like
if 'plate' in opts: clauses.append('obj.plate.id = :pid') params.add('pid', rlong(opts['plate']))
| # at /plates/:plate_id/wells/ we have 'plate_id' in kwargs | ||
| if 'plate_id' in kwargs: | ||
| opts['plate'] = long(kwargs['plate_id']) | ||
| elif 'plateacquisition_id' in kwargs: |
There was a problem hiding this comment.
Do we want to allow to filter by plate id and plateacquisition id?
There was a problem hiding this comment.
I don't think there's a case for that, since plateacquisition ID would also define plate ID.
| import pytest | ||
| from test_api_projects import get_update_service, \ | ||
| get_connection, marshal_objects | ||
| get_connection, marshal_objects, cmp_name_insensitive |
|
|
||
| def test_plate_index_wells(self, user1, multi_acquisition_plate): | ||
| """ | ||
| Test filtering of Wells by Plate/Acquisition AND index. |
There was a problem hiding this comment.
Plate/PlateAcquisition to match the rest
|
|
|
@jburel Yes, description was wrong. Fixed now. |
|
NB: this is now conflicting with #5067. |
|
Conflicting PR. Removed from build OMERO-DEV-merge-push#597. See the console output for more details.
|
|
@jburel I'm thinking maybe I should use the full term |
|
@will-moore: I think making it more explicit will be better. |
| api_wells, | ||
| api_plate_plateacquisitions, | ||
| api_plateacquisition, | ||
| api_plateacquisition_index_wells, |
There was a problem hiding this comment.
I will also replace here wellsample_index instead of just index
| api_plate_plateacquisitions, | ||
| api_plateacquisition, | ||
| api_plateacquisition_index_wells, | ||
| api_plate_index_wells, |
|
Tests are passing |
|
Merging |
What this PR does
Follow-up PR on listing Wells in Plate, filtering by PlateAcquisition and WellSample Index.
Allows api user to "browse" Plate -> (PlateAcquisition) -> Wells (for single index) as in the client UIs.
Testing this PR
/plates/. When listing plates we don't include Index counts./plates/:id/which gives min/max WellSample index./plates/:id/plateacquisitions//plateacquisitions/:id/wellsampleindex/:idx/wells/When filtering Wells by Index, each WellSample list should have a single item.