Conversation
| #!/usr/bin/env python | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| # Copyright (C) 2019 University of Dundee & Open Microscopy Environment. |
|
@sbesson @chris-allan Travis is failing with Any ideas what I'm doing wrong? |
|
@will-moore You don't need the |
|
|
|
@aleksandra-tarkowska @knabar - thanks. pip install seems to be working (the build is failing elsewhere now)! |
|
@will-moore could you create requirements file please as this PR broke devspace (because is green). And tomorrow web will fail on CI. Alternatively I would suggest to exclude and tomorrow I will help you with all builds? |
|
excluding so it does not break tomorrow's build |
|
Adding breaking too so it will be tested via breaking |
|
@aleksandra-tarkowska Where do you want me to create a requirements file? |
This provides a single point to specifiy additional requirements that is consumed by the other various requirements files.
This is now provided by OmeroWeb/requirements-common.txt
|
@aleksandra-tarkowska As discussed: added omero-marshal to OmeroWeb requirements files and removed it from .travis.yml |
|
just chat with @will-moore I propose to create requirements folder I will handle that in a separate PR for better review |
|
Working: |
This allows behaviour to be customised by subclasses.
| # To make django's method_decorator work, this is required until | ||
| # python/django sort out how argumented decorator wrapping should work | ||
| # https://github.com/openmicroscopy/openmicroscopy/pull/1820 | ||
| def __getattr__(self, name): |
There was a problem hiding this comment.
Fix from @dpwrussell went into Django upstream in 1.7. Do we still need this?
Might be time, not in this PR, to roll back the hack added in #1820 as well.
/cc @aleksandra-tarkowska, @joshmoore
There was a problem hiding this comment.
@chris-allan Seems we don't need this now since @dpwrussell's fix. I'll remove it.
chris-allan
left a comment
There was a problem hiding this comment.
Provided that we have passing integration tests I'm happy for this to be merged.
Test run status to be confirmed by @sbesson.
|
Conflicting PR. Removed from build OMERO-DEV-merge-push#487. See the console output for more details.
|
|
Where is follow up trello card for all the post merging issues? |
|
@aleksandra-tarkowska: I have just created a card https://trello.com/c/IXaPj64B/212-web-api-round-2 |
|
Conflicting PR. Removed from build OMERO-DEV-merge-push#488. See the console output for more details.
|
|
OmeroWeb.test.integration.test_api_projects/TestProjects/test_project_update/ is broken |
|
@aleksandra-tarkowska If this test is failing on the devspace it's probably because it doesn't have the latest server since that test now requires #4829. See #4708 (review) |
|
@will-moore, I am afraid the problem must be somewhere else. It was tested against last night merge build snoopycrimecop@c2f9b13. |
|
Sorry, my mistake. The fix I need is actually from omero_marshal: ome/omero-marshal@e83f056 |
| Django>=1.8,<1.9 | ||
| django-pipeline==1.3.20 | ||
| git+git://github.com/openmicroscopy/omero-marshal.git@v0.4.0#egg=omero-marshal | ||
| git+git://github.com/openmicroscopy/omero-marshal.git@v0.4.1#egg=omero-marshal |
There was a problem hiding this comment.
Any reason to use the Git form rather than omero-marshal==0.4.1 as above ?
|
indeed, tests are green |
|
Thanks all. Merging |
This is a subset of webgateway api methods explored in #4572.
User guide for the API which covers all urls added in this PR can be found at https://github.com/will-moore/design/blob/webgateway_json_api/webgateway_json_api.md
I have also added an example test script at
https://github.com/will-moore/openmicroscopy/blob/webgateway_api2/examples/Training/python/Json_Api/Login.py
which can be used for testing this PR.
Browse API at http://10.0.51.145/web/api/
This PR uses
omero-marshalwhich is included in the build.We also add /version/ into the url to allow versioning, E.g.
The supported versions are specified in settings
API_VERSIONS = ['0.1']Details of our versioning strategy are to be decided.
This PR splits the querying and marshalling into api_query.py and api_marshal.py respectively.
New tests are under OmeroWeb/test/integration/test_api_*
I have ported some integration tests from test_tree.py, and turned them into Django session-based tests to test the actual json api, not just the underlying querying and marshalling. These tests also use
omero-marshal.TODO / discuss
/webgateway/api/v1/m/projects/:id/Future TODOs:
OMERO.webapiuser agent with QA_internaland_rawflags in@jsonpdecorator