Closed will-moore closed 5 years ago
let idrId = studyData.Name.split('-')[0] + studyData.Name[studyData.Name.length-1]; // idr0001A
@will-moore : how about a regex? In this case, something like ^(.*?)-.*?(.)$
On https://merge-ci.openmicroscopy.org/web/gallery/ seeing weird terms like "confocal imagess" and "HeLa cells in mitosiss" and "Test DVss", wonder why the extra 's'.
Would be lovely if it could wrap the studies, all six are in a horizontal scrolly thing for me even after I maximize the window.
To test this PR with IDR settings (added in https://github.com/IDR/deployment/pull/189) please try the IDR test server. It should appear unchanged compared with idr.openmicroscopy.org Check:
~@will-moore : I'm missing a search bar on osx/chrome.~ nvm
Regarding https://github.com/ome/omero-gallery/pull/42#issuecomment-506351011 all looking good to me. :+1:
Will - discussed at IDR meeting:
Also:
./omero_gallery/gallery_settings.py:128:1: W293 blank line contains whitespace
Ready for testing again at https://merge-ci.openmicroscopy.org/web/gallery/
bin/omero config set omero.web.gallery.category_queries '{"all":{"label":"All Studies", "index":0, "query":"FIRST50:Name"}}'
NB: Some of the Studies in the merge-ci example above have a Map Annotation with "Publication Title" which is used instead of Name in the UI, so they don't appear to be sorted by Name (but they are).
Minor CSS issue on small windows where the rows aren't centered:
@joshmoore the off-centre 2-column layout is the same as at eg. http://idr.openmicroscopy.org/search/?query=Organism:Homo%20sapiens when resizing window. Needs a bit more work to fix that.
Finally deployed with latest settings on test70 and all looks good!
Searching for an image attribute on test70 results in an undefined
Study ID: https://test70/cell/search/?query=mapr_gene:INCENP
Also seen some weird behaviour when searching for phenotypes, see private screen recording (updated: turns out this is also present on idr-prod so isn't caused by this PR)
To test fixes:
We discussed with @will-moore about how would this fare when there is no public user on the server at all (such as outreach). In discussion with @joshmoore we concluded that an immediate redirect to login page should be the behaviour in such case. Is that here ? Or is it something for another PR ?
I've added the login in a different PR: https://github.com/ome/omero-gallery/pull/45
No problems here for me then.
In order to use this for other (non-IDR) deployments, we need to remove anything that is specific to IDR: To test:
test70
, with full IDR config and this PR deployed, IDR UI should behave as before with no changes.test70
or at /gallery/gallery-settings/ for merge-ci (since gallery is not configured at root URL).With this PR, we need only a single config to see the "new" gallery UI instead of the old one: e.g.
will list up to 50 Screens and Projects, sorted by Name in the first category.
To restore IDR functionality we now need the following configs (to be tested at https://github.com/IDR/deployment/pull/189)