replication-manager
replication-manager copied to clipboard
Cluster selection box may be incorrect after restarting the daemon
I am using Replication-Manager 2.0.1-28-gf0721d9a 2019-06-11T11:50:55+0000 linux amd64 (Debian Stretch)
I have configured several clusters (say "cluster01" and "cluster02").
Using the http interface to manage clusters, I encountered the following problem:
- I select cluster02 in the select box at the right top of the dashboard
- I restart replication-manager daemon
=> The restart may have switched the dashboard to cluster01 (I can see cluster01 servers in the server list) but the select box still shows cluster02.
So thinking about applying a switchover on cluster02, we are actually applying switchover on cluster01...
I do not know what is the best way to avoid this problem of ergonomics. Whenever possible, the selection box should be reset to match the actual cluster and/or maybe a more detailed message than "Confirm switchover" (with the real cluster name for example) should warn before applying the action...
Actually, I think the restart should log you out of the Web Control Panel to avoid that kind of issue. But we can certainly add a message to the Confirm Switchover as well to make it more clear on which cluster you're currently operating.
To show a clearer message when submitting switchover I first tried to display the selected cluster in the alert box as you can see in this branch (of my fork):
https://github.com/koleo/replication-manager/compare/2.0...koleo:feature/confirm-cluster-detail
But this is not the right information, it shows the selected option in select box, not the cluster on which switchover will occur. So my change is even... worse : )