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 download #3

Merged
merged 5 commits into from
Jan 24, 2020
Merged

table download #3

merged 5 commits into from
Jan 24, 2020

Conversation

will-moore
Copy link
Member

@will-moore will-moore commented Aug 19, 2019

Ported from ome/openmicroscopy#6055

NB: Integration tests remain in that PR, so should be merged at the same time.

In several training workshops, explaining what an OMERO.table is and what data is contains is made difficult because it is very hard to show a table. Even when downloaded, it is not easy see the contents of a table since it's an HDF file.
For users of tables, inspecting the data they contain for trouble-shooting purposes etc is also hard. It is only possible to see the data for a single object/row at a time.

This allows users to view an OMERO.table file as an html table and to download it as a CSV.

Testing this PR

  1. Find an OMERO.table attached to an object e.g. Project, Screen etc. Tables are recognised by the openmicroscopy.org/omero/bulk_annotations namespace (you can find objects annotated with this namespace by searching for 'bulk'. E.g. http://web-dev-merge.openmicroscopy.org/webclient/search/?search_query=bulk (user-3)
  2. Files will show an 'eye' (view) icon. When clicked, this opens the file as an html table in another tab.
  3. The table page also has links to download the table as CSV (or show as JSON)
  4. Click to download CSV and open in Excell.
  5. Also click to view JSON (might be useful for devs?)
  6. Check new web test is passing

NB: the default action of clicking the OMERO.table annotation itself to download the HDF file remains the same.

@joshmoore
Copy link
Member

Re-opening to activate travis

@joshmoore joshmoore closed this Aug 23, 2019
@joshmoore joshmoore reopened this Aug 23, 2019
@joshmoore joshmoore force-pushed the master branch 5 times, most recently from 5be5767 to 52ab200 Compare August 27, 2019 17:26
This was referenced Aug 28, 2019
@will-moore will-moore closed this Sep 2, 2019
@joshmoore joshmoore mentioned this pull request Sep 6, 2019
8 tasks
@joshmoore
Copy link
Member

Not sure if this was closed on purpose or accident, but ome/openmicroscopy#6055 has been updated to only include the integration tests. They will initial fail until this is re-opened and green.

Note: I used git merge in 6055. Perhaps squashing would have been more appropriate. Happy to discuss.

@will-moore will-moore reopened this Sep 11, 2019
This was referenced Sep 17, 2019
@snoopycrimecop snoopycrimecop mentioned this pull request Nov 6, 2019
@will-moore
Copy link
Member Author

Closing to allow #54 in (conflicting)

@jburel
Copy link
Member

jburel commented Nov 7, 2019

plate_grid will have to be updated when modifications are made to the returned output

@will-moore will-moore reopened this Nov 8, 2019
manics added a commit to manics-archive/omero-web that referenced this pull request Nov 11, 2019
$ curl -sSL https://patch-diff.githubusercontent.com/raw/ome/openmicroscopy/pull/5994.diff | sed -e 's%/components/tools/OmeroPy/%/%g' -e 's%/components/tools/OmeroWeb/%/%g' -e 's%etc/templates/web/%omeroweb/templates/%g' -e 's%/test/unit/clitest/%/test/unit/%g' -e 's%/src/%/%g' | git apply --reject

Checking patch omero/plugins/web.py...
error: while searching for:

import traceback
from datetime import datetime
from omero.cli import DiagnosticsControl
from omero.cli import CLI
import platform

error: patch failed: omero/plugins/web.py:10
Hunk ome#2 succeeded at 276 (offset 1 line).
error: while searching for:
                         "Web template configuration requires"
                         "wsgi or wsgi-tcp.")

        template_file = "%s.conf.template" % server
        c = file(self._get_web_templates_dir() / template_file).read()
        self.ctx.out(c % d)

    def syncmedia(self, args):
        self.collectstatic()

error: patch failed: omero/plugins/web.py:301
Checking patch test/unit/reference_templates/nginx-development-withoptions.conf...
Checking patch test/unit/reference_templates/nginx-development.conf...
Checking patch test/unit/reference_templates/nginx-location-withoptions.conf...
Checking patch test/unit/reference_templates/nginx-location.conf...
Checking patch test/unit/reference_templates/nginx-withoptions.conf...
Checking patch test/unit/reference_templates/nginx.conf...
Checking patch omeroweb/templates/nginx-development.conf.template...
Checking patch omeroweb/templates/nginx-location.conf.template...
Checking patch omeroweb/templates/nginx.conf.j2...
Checking patch omeroweb/templates/nginx.conf.template...
Applying patch omero/plugins/web.py with 2 rejects...
Rejected hunk ome#1.
Hunk ome#2 applied cleanly.
Rejected hunk ome#3.
Applied patch test/unit/reference_templates/nginx-development-withoptions.conf cleanly.
Applied patch test/unit/reference_templates/nginx-development.conf cleanly.
Applied patch test/unit/reference_templates/nginx-location-withoptions.conf cleanly.
Applied patch test/unit/reference_templates/nginx-location.conf cleanly.
Applied patch test/unit/reference_templates/nginx-withoptions.conf cleanly.
Applied patch test/unit/reference_templates/nginx.conf cleanly.
Applied patch omeroweb/templates/nginx-development.conf.template cleanly.
Applied patch omeroweb/templates/nginx-location.conf.template cleanly.
Applied patch omeroweb/templates/nginx.conf.j2 cleanly.
Applied patch omeroweb/templates/nginx.conf.template cleanly.
@joshmoore joshmoore added this to In progress in OMERO.server 5.6.0 (Python 3) via automation Dec 17, 2019
@joshmoore joshmoore moved this from In progress to Features in OMERO.server 5.6.0 (Python 3) Dec 17, 2019
@will-moore
Copy link
Member Author

@will-moore will-moore removed this from Features in OMERO.server 5.6.0 (Python 3) Jan 9, 2020
@will-moore will-moore added this to Features in OMERO.server 5.6.2 Jan 9, 2020
@joshmoore joshmoore merged commit 88e26c2 into ome:master Jan 24, 2020
OMERO.server 5.6.2 automation moved this from Features to Done Jan 24, 2020
@will-moore will-moore mentioned this pull request Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants