-
Notifications
You must be signed in to change notification settings - Fork 14
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
Is it possible to write an updated transfer.xml after unpack? #71
Comments
Ok, a few points;
The main goal of cli-transfer is to always generate a 1-to-1 replica of the original element, and when that happens this is a straightforward problem. I worry about dealing with edge cases where an error happens. I don't think "just query every image in the destination server for its original source ID" is a great answer, though (and it doesn't give you a mapping between dataset/project IDs, for example). We can do better and I think there are a few options for this:
As a developer, I worry about feature creep - running cli-transfer as a pure serialization tool (as #69 proposes) is a slam dunk in my opinion, and will be done at some point, so I worry about adding another extra feature that is close but not exactly the same. I think option 1 is a better idea - thoughts? @joshmoore? |
Briefly before this slips off my radar:
|
Thanks a lot for the detailed answer! Just having the ID mappings would be nice, but I guess I'd have to walk back up its ancestry anyway...
I think this is the best option. The 'server side' Furthermore I feel #69 solves a lot of other issues so a big +1.
Has someone written Wouldn't If you don't mind it, I can give #69 a try? |
cc: @tlambert03 (e.g., tlambert03/ome-types#222)
❤️ I'll be at a hackathon next week largely on o-c-transfer, so if I can test anything, let me know. |
This link is not good :) I am closing this as this should be solved by #69 |
proper link: tlambert03/ome-types#222. fwiw :) |
Thanks, @tlambert03. Not sure how that happened! 😉 |
Hi,
Thanks a lot for transfer, makes my life much easier.
As Sébastien said in #7 , omero-cli-transfer nicely computes a map of source to destination ids, but this mapping is lost once the transfer is done (not server side, but you need to query again).
I would like to use directly such mapping, e.g. to write a pointer to the newly imported image url
https://server.omero/webclient/?show=image-96
in some import report (or on my data brokering system). I could query the server again, but why do that job twice 😉?I saw in the code that you duplicate and update the original OME object. Would there be a way to dump that new one - with updated ids reflecting the state of the destination database and the imported data? Something called
transfered.xml
for example?This is kinda related to the
--server
option from Josh, if I understand correctly. transfer creates research objects, so having a representation of that RO at its root directory is nice.The text was updated successfully, but these errors were encountered: