Add configurable channel clone dialog - #396
Conversation
Can you show what the selection dialog looks like? Add it as an edit to the issue description. |
Signed-off-by: DESKTOP-9AKG4SL\ecomeau <ecomeau@caredx.com>
mgaffigan
left a comment
There was a problem hiding this comment.
Thanks for the PR! I'm not blocking if you have three other reviewers.
Over time, we have to simplify the core channel operations - this is a perpetuation of the global state everywhere with logic on the client.
I'd prefer to see either:
- if clone does not require service calls: a new "clone" method on channel that returns the unsaved object for edits
- if clone requires service calls: a new "clone" service operation that takes a source channel ID and clone options, and returns the new channel
I would caution against overcomplicating a clone dialog: after clone, the user must edit the channel anyway, and all the editors are existing in that interface.
I think this is also likely related to:
- move channel group membership to be a property of channels, not of groups
- move channel code template use to be a property of channels, not of code templates
Those refactorings may substantially simplify the clone process.
There was a problem hiding this comment.
This is already a very large and overcomplicated file. Can we avoid clone logic being added here?
| saveGroupId = null; | ||
| saveGroupId = groupId; |
There was a problem hiding this comment.
More global state? Can we avoid?
a1942a2 to
84e9616
Compare
I appreciate this. I think if I do go the route you talk about here I would do it in a new PR rather than try to salvage this branch. I might leave this up in case the team thinks this is a worthwhile addition in the meantime. I’ve been thinking about the longer-term roadmap: That all sounds daunting, especially thinking about channel export/import and the need to change server/client/CLI portions in conjunction. Selfishly I like MirthSync and I don't want to stray too far on our export structure. But I haven't thought too hard about these, so I will commit to looking into them at least! |
I added it up there thanks |
Summary
Implements Issue #153 by adding a configurable channel clone dialog.

#153
Users can now choose what to copy when cloning a channel, including:
The clone receives a new GUID and revision zero, preserves the source channel, and opens in the normal channel editor for review before saving.
Additional fixes
<source name>1.Testing
Compiled and tested in the Client/Server on Windows10:
Hard to capture in pictures, but proof that I went in and tested the endpoints at least.
