Closed will-moore closed 1 year ago
My understanding is that the code introduced in #15 resolves the base URL passed by the initial request call sent by the client and uses it to make a secondary request call within the deployment itself to retrieve the content of another deployment.
Currently idr-next.openmicroscopy.org is not a public DNS and even the idr-next deployments do not know about it. So any internal request to https://idr-next.openmicroscopy.org/searchengine/api/v1/resources/
will fail with a resolution error e.g.
[sbesson@prod110-proxy ~]$ curl https://idr-next.openmicroscopy.org/searchengine/api/v1/resources
curl: (6) Could not resolve host: idr-next.openmicroscopy.org; Unknown error
A few immediate options:
[sbesson@prod110-proxy ~]$ curl http://localhost/searchengine/api/v1/resources/
OMERO search engine (API V1)
/cc @francesw @jburel
Using JS to do this would not give such a nice redirect experience. You'd have to load a page with JS, the JS would make a query and then redirect -> reload a 2nd page.
I can try relative URLs instead of the absolute URLs given by Django...
Closing - I think we can accept that re-directs won't work on idr-next. Doesn't break other testing.
See https://github.com/IDR/deployment/pull/388
For the mapr redirect logic, we need to look-up Map-Ann Keys for a given value, added in https://github.com/IDR/idr-gallery/pull/15
This works OK on idr-testing and idr production, but not on idr-next, since the idr-next searchengine is not available from where the Django code is running.