Skip to content

web api app#4920

Merged
jburel merged 6 commits intoome:developfrom
will-moore:web_api_app
Nov 10, 2016
Merged

web api app#4920
jburel merged 6 commits intoome:developfrom
will-moore:web_api_app

Conversation

@will-moore
Copy link
Copy Markdown
Member

@will-moore will-moore commented Nov 2, 2016

What this PR does

Moves the new /api/ urls and functionality from #4708 to a new api app.

All the tests in OmeroWeb/test/integration/test_api_login.py, test_api_projects.py and test_api_errors.py remain unchanged and should still be green.

Most changes are to fix pep8 warnings (since I now have them "ON" by default in SublimeText 3) including LoginRequired and JsonResponseHandler for class-based decorator names. I could revert these if preferred.

@jburel jburel added the develop label Nov 2, 2016
@snoopycrimecop
Copy link
Copy Markdown
Member

Conflicting PR. Removed from build OMERO-DEV-merge-push#496. See the console output for more details.
Possible conflicts:

  • PR histograms #4703 will-moore 'histograms'
    • components/tools/OmeroWeb/omeroweb/webgateway/views.py

@snoopycrimecop
Copy link
Copy Markdown
Member

Conflicting PR. Removed from build OMERO-DEV-merge-push#497. See the console output for more details.
Possible conflicts:

  • PR histograms #4703 will-moore 'histograms'
    • components/tools/OmeroWeb/omeroweb/webgateway/views.py

will-moore added a commit to will-moore/openmicroscopy that referenced this pull request Nov 4, 2016
@@ -0,0 +1,2 @@

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs standard file header.

ScreenPlateLinkI, AnnotationAnnotationLinkI, TagAnnotationI
from omero import ApiUsageException, ServerError, CmdError
from omero.rtypes import rlong, rlist
from omeroweb.api.views import LoginView
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The base class should be left in the webgateway. Having interdependence between the api and webclient application seems like a bad idea. Especially if we decide to move the api application into its own repository.

@chris-allan
Copy link
Copy Markdown
Member

As a matter of discussion, in addition to the above review, I don't personally like the camel case decorator class names but I'm not vehemently opposed to them.

/cc @aleksandra-tarkowska, @knabar, @waxenegger

@chris-allan
Copy link
Copy Markdown
Member

Ready to merge.

@jburel
Copy link
Copy Markdown
Member

jburel commented Nov 10, 2016

Thanks @chris-allan

@jburel jburel merged commit 9258f29 into ome:develop Nov 10, 2016
@jburel jburel added this to the 5.3.0 milestone Mar 29, 2017
@will-moore will-moore deleted the web_api_app branch February 18, 2019 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants