Skip to content
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

Option to skip disabled channels #46

Open
carm-afea opened this issue Jun 7, 2022 · 1 comment
Open

Option to skip disabled channels #46

carm-afea opened this issue Jun 7, 2022 · 1 comment

Comments

@carm-afea
Copy link

carm-afea commented Jun 7, 2022

Sometimes major changes to channels are made on cloned channels, preserving their previous version in a disabled state, with the goal of switching back to them in case of problems (rollback).
The whole concept would be ok if we could get rid of those backup channels after a few days or weeks.

That's not always the case, since a few customers like to keep a very large attic of obsolete objects, with the result of having up to 70% of disabled channels.
I wrote a bash script that, using channels' statuses fetched from here /api/channels/statuses?includeUndeployed=false deletes channels from the local mirthsync'd target dir (see attachment).

Now, it works, but it would be certainly more elegant and efficient to have an option switch into mirthsync.
I'd like to provide a patch, but I literally have got no time left to learn another language such as Clojure.

Script:
I had to rename it to .txt in order to upload it.
mirth_purge_disabled.sh.txt

It's a post processing script, but I realize now it would be more practical if it were a wrapper to mirthsync.sh

Update: probably related to these #45, #26, #34

@jessesaga
Copy link
Contributor

Here's a pre-release that implements this within mirthSync - https://github.com/SagaHealthcareIT/mirthsync/releases/tag/3.0.3-SNAPSHOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants