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
Provide an import summary (see #12506). #2950
Conversation
@bpindelski: on the Python side I think we could simply add a test to https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/tools/OmeroPy/test/integration/clitest/test_import.py checking the stderr. |
I have a hunch, that a single line summary similar to that from Homebrew would be more useful (i.e.
|
It works in so much as:
This set contained one failed import (corrupt dv log) - it failed before upload. Should the number of failures/errors be somehow noted so that someone can go back through captured logs to fin the error? Secondly, what it meant here by In the case of a folder of lei files,
the disparity of files uploaded to images here is even greater and the final number is the correct image count. |
I'd agree that a one line summary might be better. I'd say the number of files in the original location is not that useful (I can always
|
@ximenesuk Thanks for your suggestions. I was exploring the options with the first implementation and now have almost a design spec 👍 I also agree, that conveying the concept of companion files or MIFs isn't easy, especially in one summary line. More commits coming! |
@sbesson I've added an initial Python test. Happy to extend it into cases where the values extracted from the message are compared to some expectations based on number of files imported etc. @ximenesuk I've also changed the message format. I'd be great if you could use your corrupted files to see if exceptions are being counted correctly. Thanks. |
@bpindelski Sorry, I missed your IM. |
@ximenesuk This should be the final set of changes. The reported time is in the ISO8601-like format (H:m:s.S). This seems universal enough and doesn't force me to stitch together "hour", "minute" and "second" strings. Also the singular/plural form of the nouns should be correct. |
I think a line feed might be helpful :-) Otherwise looking good. |
Is a summary after a Plate import planned? For instance, this is a folder containing four Images and a Plate:
12 of the reported images are part of a single Plate. Maybe adding |
Certainly a feature we could add to the insight import cc @gusferguson |
@ximenesuk I'll have to investigate the lack of newline. I didn't see it locally. Are you using Terminal.app or iTerm2? |
@bpindelski I'm using the terminal app. If I import a Plate on its own I get no summary at all - expected if you've not looked at that yet. If I import a mix I get the above, ie files and Filesets are correct but Images are unexpected (rather than wrong). In this case the Plate was imported first, I'm not sure what would have happened if the Plate had been last - might that have suppressed the summary? |
bb344c8
to
8344806
Compare
Looks good:
|
@jburel Does this need more testing? Or someone else to have a look? |
Opened a card on UX board https://trello.com/c/8n944Jxx/278-import-summary |
Provide an import summary (see #12506).
Coming very late to this: since the report is so nice & compact, is there any reason to have it as optional? |
Moved this to a ticket: https://trac.openmicroscopy.org.uk/ome/ticket/12549 |
This PR is an initial attempt at fixing http://trac.openmicroscopy.org.uk/ome/ticket/12506. It adds a summary line after the CLI import finishes. The output should be self-descriptive.
To test:
test_images_broken
) together with a valid image and check the error count,Also check that tests in http://ci.openmicroscopy.org/view/5.1/job/OMERO-5.1-merge-integration-python/lastCompletedBuild/testReport/test.integration.clitest.test_import/TestImport/ are green (ones that have
Summary
in their name).--no-rebase