-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix bug on download images based on omero-insight#264 #78
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d1f3b01
Fix bug on download images based on omero-insight#264
Rdornier bf37f70
remove unused imports
Rdornier e59a04a
Remove gradle files
Rdornier b64ade5
Delete gradlew
Rdornier 0373ea1
Delete gradle/wrapper directory
Rdornier aa5f22b
Delete gradlew.bat
Rdornier ebffc73
Merge branch 'download-bug' of https://github.com/Rdornier/omero-gate…
Rdornier ef10da9
remove commented lines
Rdornier 9a4720b
Delete hs_err_pid13244.log
Rdornier 648d907
Remove log files from git
Rdornier 32ef773
Merge branch 'download-bug' of https://github.com/Rdornier/omero-gate…
Rdornier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need that Map? In the end only the
downloaded
list is returned. This map and thenotDownloaded
list isn't actuall used.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I initially thought returning
downloaded
andnotDownloaded
(i.e. the resultMap
) but this would change the method definition (returns now a Map and not a list anymore) and may not be compatible with previous versions.The reason I kept them is beacuse I'm wondering if there is any possibility to return also the information contained in
notDownloaded
. Do you think it is possible ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. An option would be to add a second method for now which returns the map and mark the old one as deprecated. That would only be needed in the main TransferFacility class, not really in the helper. Looking at the code, I actually can't see a reason any more why I split the code into a helper class in the first place, could as well go into the TransferFacility class itself. Your thoughts @jburel ? (Btw, this part of the Java gateway is not used by Insight, but should be!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But that could be done in a follow up PR anyway. Lets get this one in first :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly. It would then be possible to know which files had not been downloaded.
Also true