-
Notifications
You must be signed in to change notification settings - Fork 33
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
api experimenters groups #196
Conversation
The introduction of an option to switch between various behaviors of the API is certainly very useful. Has there been any discussion about not modifying the default behavior i.e. constructing this change as a backwards-compatible API addition that downstream clients could consume rather than a breaking change? |
Would this be released as omero-py Are there any other objects that might benefit from a similar option? If so it'd be nice to avoid option keys being added adhoc, it's difficult enough as it is to find out about the extra options to some BlitzGateway methods. |
I'd like to change the default behaviour to make it more consistent with other parts of the API. We have similar flags for Wells ( These options are mentioned in the |
This is more consistent to use the omero.model name ExperimenterGroups
Now we're loading groupExperimenterMap by default (no breaking change). Description updated. |
👍 for the non-breakingness. The contortions that were needed (with the hot swapping, etc) make me thing that this could all use a refactoring at some point in the future, but it looks like the impact of this PR is as intended. Generally, good to go though I note that the tests weren't included from ome/openmicroscopy#6224 due to:
I've relaunched, but you might want to recheck. |
All tests currently passing, including the new tests in this PR: https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/350/testReport/OmeroWeb.test.integration.test_api_experimenters_groups/ |
Travis failing with
|
Travis tests are still broken in this repo #198 |
Yup, more hands/eyes trying to figure #198 out welcome. |
Fixed a bug found when adding more tests to ome/openmicroscopy#6224 |
Not sure what the travis failure was. Relaunched. |
I used to be able to re-launch jobs from within travis, but I don't see that option now so I just have to close and open the PR... |
Google-ing for the tox failure found someone who fixed it like this: googleapis/google-cloud-python#1103 (comment) |
Re-opening with #216 merged. |
@will-moore @manics : re-opening with #216 in fixed the issue. |
Looking at the implementation methods like |
getObject() uses the same logic for all the different types it handles. It would be quite tricky and messy to use the Admin Service for some queries and the Query Service for others. |
I understand that but I think using the relevant service when possible instead of directly using the "queryService" is an approach that simplify the maintenance. |
This is not the approach we've taken with the BlitzGateway. If every class used a different service for loading different objects, there would be no consistency and much more complex maintenance. |
I am not convinced by that. A change in the model as we have seen in the past implies multiple locations to update: the service and the "iquery" usage. |
So is this good to merge or any suggested changes? |
The default behaviour is preserved (load experimenter). Could you add an issue for AdminService so we keep a record and work on maybe adding the functionality to the |
Assuming this PR is approved, I am happy to move forward with an |
Created issue at ome/openmicroscopy#6238 |
Thanks @will-moore. @jburel okay to get this merged with the issue created? |
Happy to include it in the coming release |
@will-moore can you prepare a CHANGELOG PR for all merged PRs in the 5.7.0 milestone and we can work together on the release of |
Porting BlitzGateway code from ome/openmicroscopy#5315
This adds options for NOT loading the
groupExperimenterMap
when loading Groups and Experimenters.Using the
opts
argument:Providing more control over loading of groups/experimenters was also part of proposed performance improvements in ome/openmicroscopy#6081 (not merged).
This will allow us to support experimenters and groups URLs e.g.
api/v0/m/experimenters/1/
without unnecessary loading of groups - see #196Tests added at ome/openmicroscopy#6224