Skip to content

Web api app2#4945

Closed
will-moore wants to merge 26 commits into
ome:developfrom
will-moore:web_api_app2
Closed

Web api app2#4945
will-moore wants to merge 26 commits into
ome:developfrom
will-moore:web_api_app2

Conversation

@will-moore
Copy link
Copy Markdown
Member

What this PR does

Adds support for Datasets to the web api.
This also moves more logic for building queries to the BlitzGateway, to reduce duplication within api_query.py.

This means that the _getQueryString() for each BlitzGateway Wrapper object now returns a base query string, params and clauses. These are then augmented in conn.buildQuery(), which is used both by conn.getObjects() and by the web /api_query.py.

cc @chris-allan

TODO: maybe add more Dataset tests, similar to test_api_project.py, but less extensive.

Using a single OjbectView to handle single Project or Dataset but creating
a new DatasetsView to handle listing of Datasets
We want to provide a more user-friendly way to add extra parameters to the
query that also allows other filters etc that are not supported in ParametersI
'No Permissions' errors seen in https://trac.openmicroscopy.org/ome/ticket/11362 are caused by
trying to load groups that are not your default group when using ctx omero.group:-1
This means the query won't fail if the query string has extra select statements. E.g. if
child_count=True in _getQueryString()
Previously if this test failed once and left undeleted Objects, subsequent tests would find
these and fail again, leaving even more undeleted objects. Now we cleanup first before
checking for orphanedCount. So, even if it fails once, it will cleanup next time then start
passing again.
@will-moore will-moore closed this Nov 17, 2016
will-moore added a commit to will-moore/openmicroscopy that referenced this pull request Nov 17, 2016
will-moore added a commit to will-moore/openmicroscopy that referenced this pull request Nov 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant