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
blitz: ExporterI no longer uses DOMUtil.writeXML #1093
blitz: ExporterI no longer uses DOMUtil.writeXML #1093
Conversation
@rleigh-dundee: can you rebase this so we have the genshi fix included? Cheers. |
Rebased. |
How is this best tested? Integration tests on |
I'm not sure that this is going to be testable if the integration tests are bust. Maybe just run the ExporterI tests alone (if possible)? If this is completely unusable, maybe we would be best off just deleting ExporterI and its testcase entirely. Maybe in a separate PR so we can remove the 2003fc stuff from bioformats in the interim. |
Yeah, things are kind of hosed at the moment -- see http://trac.openmicroscopy.org.uk/ome/ticket/10799 Though, we may not want to get rid of this stuff if there are any plans to add an "export as OME-XML" capability to the clients. |
The code looks nice anyway and appears to build okay. (-: |
@rleigh-dundee : what do you mean "delete ExporterI"?? Otherwise, my only comment moving forward, is that it would likely be nice to have a helper method in Bio-Formats for doing this sort of thing. That's a heck of a lot of code for something we expect others to do. (There will be the same issue in C++). /cc @melissalinkert But any new API can be tackled in a separate PR if we want to get this in. |
At least, our present documentation seems keen on the virtues of OME-XML. |
Regarding the helper method (DOMUtil.writeXML), it's five lines of code that had a single user in bioformats (AbstractOMEXMLMetadata.dumpXML), and dumpXML has zero users, so could potentially be itself removed. The other single user in openmicroscopy is here, in ExporterI. If we really want this as a helper, it could certainly be added back in a place other than DOMUtil. Regarding deleting ExporterI, this was because I saw zero direct uses of the class in-tree. However, it may be used indirectly via components/blitz/resources/ome/services/blitz-servantDefinitions.xml ? |
@rleigh-dundee: zero users in our code. This is public API.
|
+1 to keeping this as a helper method, possibly in XMLTools. |
|
Travis won't be able to build this until it has the ability to merge pending bioformats PRs into the bioformats submodule. |
It was not possible to test this change in the clients, as none consume the |
|
With @joshmoore suggestion, I've tried |
Thanks, @bpindelski. Waiting on 482 |
blitz: ExporterI no longer uses DOMUtil.writeXML
Sorry, wasn't thinking - probably should not have merged this just yet, as the submodule pointer will need updating now that ome/bioformats#482 is in. |
Can't we just update it to c89b89b directly? |
I'm updating the submodules now via gh-1149. |
In which PR was this rebased? |
@mtbc: This PR has not been rebased onto dev_4_4 (and should not--XMLTools.writeXML() does not exist on bioformats dev_4_4). |
Ah, great, thanks, sorry -- I had been confused by #1093 (comment) |
--no-rebase Reducing 4.4 effort |
Requires ome/bioformats#482 to test.