Skip to content
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

table_errors status_codes #301

Closed
wants to merge 1 commit into from

Conversation

will-moore
Copy link
Member

@will-moore will-moore commented Jun 25, 2021

See discussion at #300 (comment)

This aims to return appropriate status codes for Json Responses for the _table end-points:

/webclient/omero_table/50534/json/
/webgateway/table/Screen.plateLinks.child.wells.wellSamples.image/806/query/?query=Image-806
/webgateway/table/Dataset.imageLinks.child/806/query/?query=*
/webgateway/table/5/metadata/
/webgateway/table/50534/query/?query=Image>1211

However, this breaks the webclient, since the global ajaxError handling shows an error message for any 404s, 500s etc instead of simply ignoring them as before:

Screenshot 2021-06-25 at 10 25 56

cc @ chris-allan @kkoz

--exclude

@will-moore will-moore changed the title Use status=404 or 500 for failed _table requests table_errors status_codes Jun 25, 2021
@sbesson
Copy link
Member

sbesson commented Jun 28, 2021

As mentioned in ome/omero-py#292 (comment), this PR causes failures in the integration tests. Also trying to access the endpoint webgateway/table/<table_id>/metadata endpoint directly leads to the following error message "'dict' object has no att…'createServiceOptsDict'".

@will-moore will-moore closed this Aug 18, 2021
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.

2 participants