mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-05 18:42:55 +00:00
bug6288: comment the live-content conflict branches in LandscapeManagementPanel
Each branch that handles a refused landscape operation now explains that the refusal is a live-content conflict (one or more affected replica sets are currently serving live content) and that the branch offers the user the chance to proceed and force the operation anyway. Assisted-By: Claude Opus 4.8 (claude-opus-5)
This commit is contained in:
1 parent
fec26daad6
commit
eb30965b32
1 file changed
+15
+15
@@ -706,6 +706,9 @@ public class LandscapeManagementPanel extends SimplePanel {
|
||||
applicationReplicaSetsBusy.setBusy(false);
|
||||
}
|
||||
} else {
|
||||
// The operation was refused because one or more affected replica sets are
|
||||
// currently serving live content (a live-content conflict); offer the user
|
||||
// the chance to proceed and force the operation anyway.
|
||||
applicationReplicaSetsBusy.setBusy(false);
|
||||
showLiveContentWarning(result.getLiveContentCheckResult(), confirmed -> {
|
||||
if (confirmed) {
|
||||
@@ -1204,6 +1207,9 @@ public class LandscapeManagementPanel extends SimplePanel {
|
||||
fromHost.getInstanceId()), NotificationType.SUCCESS);
|
||||
refreshApplicationReplicaSetsTable();
|
||||
} else {
|
||||
// The operation was refused because one or more affected replica sets are
|
||||
// currently serving live content (a live-content conflict); offer the user
|
||||
// the chance to proceed and force the operation on the conflicting sets.
|
||||
showLiveContentWarning(result.getLiveContentCheckResult(), confirmed -> {
|
||||
if (confirmed) {
|
||||
applicationReplicaSetsBusy.setBusy(true);
|
||||
@@ -1333,6 +1339,9 @@ public class LandscapeManagementPanel extends SimplePanel {
|
||||
mongoDbArchivingErrorMessage));
|
||||
}
|
||||
} else {
|
||||
// The operation was refused because one or more affected replica sets are
|
||||
// currently serving live content (a live-content conflict); offer the user
|
||||
// the chance to proceed and force the operation anyway.
|
||||
applicationReplicaSetsBusy.setBusy(false);
|
||||
showLiveContentWarning(result.getLiveContentCheckResult(), confirmed -> {
|
||||
if (confirmed) {
|
||||
@@ -1411,6 +1420,9 @@ public class LandscapeManagementPanel extends SimplePanel {
|
||||
public void onSuccess(final LiveContentAwareOperationResult<Triple<DataImportProgress, CompareServersResultDTO, String>> operationResult) {
|
||||
applicationReplicaSetsBusy.setBusy(false);
|
||||
if (!operationResult.isSuccessful()) {
|
||||
// The operation was refused because one or more affected replica sets are
|
||||
// currently serving live content (a live-content conflict); offer the user
|
||||
// the chance to proceed and force the operation anyway.
|
||||
showLiveContentWarning(operationResult.getLiveContentCheckResult(), confirmed -> {
|
||||
if (confirmed) {
|
||||
applicationReplicaSetsBusy.setBusy(true);
|
||||
@@ -1635,6 +1647,9 @@ public class LandscapeManagementPanel extends SimplePanel {
|
||||
applicationReplicaSetsTable.replaceBasedOnEntityIdentityComparator(result);
|
||||
applicationReplicaSetsTable.refresh();
|
||||
} else {
|
||||
// The operation was refused because one or more affected replica sets
|
||||
// are currently serving live content (a live-content conflict); offer
|
||||
// the user the chance to proceed and force the operation anyway.
|
||||
showLiveContentWarning(operationResult.getLiveContentCheckResult(), confirmed -> {
|
||||
if (confirmed) {
|
||||
howManyMoreToGo[0]++;
|
||||
|
||||
Reference in new issue
Block a user