Skip to content

Commit

Permalink
NAS-129364 / 24.10 / "There are unapplied network interface changes" …
Browse files Browse the repository at this point in the history
…window is displayed incorrectly (#10396)

* NAS-129364: "There are unapplied network interface changes" window is displayed incorrectly

* NAS-129364: PR Update
  • Loading branch information
AlexKarpov98 authored Aug 6, 2024
1 parent f9d3c8f commit c7b5350
Show file tree
Hide file tree
Showing 91 changed files with 191 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/app/helptext/network/interfaces/interfaces-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export const helptextInterfaces = {
rollback_changes_title: T('Revert Network Interface Changes'),
rollback_changes_warning: T('Revert interface changes? All changes that are being tested will be lost.'),
changes_rolled_back: T('Interface changes reverted.'),
network_reconnection_issue: T('Network Reconnection Issue'),
network_reconnection_issue_text: T('We encountered an issue while applying the new network changes. \
Unfortunately, we were unable to reconnect to the system after the changes were implemented. \
As a result, we have restored the previous network configuration to ensure continued connectivity.'),

services_restarted: {
title: T('Attention'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class GlobalSearchComponent implements OnInit, AfterViewInit, OnDestroy {

private handleFocusOut(event: FocusEvent): void {
const relatedTarget = event.relatedTarget as HTMLElement;
if (!relatedTarget || !this.searchBoxWrapper.nativeElement.contains(relatedTarget)) {
if (relatedTarget && !this.searchBoxWrapper.nativeElement.contains(relatedTarget)) {
this.detachOverlay();
}
}
Expand Down
12 changes: 10 additions & 2 deletions src/app/pages/network/network.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class NetworkComponent implements OnInit {
);
}

private handleWaitingCheckIn(seconds: number): void {
private handleWaitingCheckIn(seconds: number, isAfterInterfaceCommit = false): void {
if (seconds !== null) {
if (seconds > 0 && this.checkinRemaining === null) {
this.checkinRemaining = Math.round(seconds);
Expand All @@ -189,6 +189,14 @@ export class NetworkComponent implements OnInit {
if (this.checkinInterval) {
clearInterval(this.checkinInterval);
}
// Inform user that we have restored the previous network configuration to ensure continued connectivity.
if (isAfterInterfaceCommit) {
this.hasPendingChanges = false;
this.dialogService.warn(
this.translate.instant(this.helptext.network_reconnection_issue),
this.translate.instant(this.helptext.network_reconnection_issue_text),
);
}
}
}

Expand Down Expand Up @@ -243,7 +251,7 @@ export class NetworkComponent implements OnInit {
.subscribe((checkInSeconds) => {
this.store$.dispatch(networkInterfacesChanged({ commit: true, checkIn: false }));
this.interfacesStore.loadInterfaces();
this.handleWaitingCheckIn(checkInSeconds);
this.handleWaitingCheckIn(checkInSeconds, true);
this.cdr.markForCheck();
});
});
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/az.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/be.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/br.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/bs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2454,6 +2454,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4436,6 +4437,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/cy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1916,6 +1916,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Stats": "",
"Network Timeout Before Initiating Failover": "",
"Network Usage": "",
Expand Down Expand Up @@ -3507,6 +3508,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/dsb.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/en-au.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/en-gb.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/eo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Reports": "",
"Network Settings": "",
"Network Stats": "",
Expand Down Expand Up @@ -4850,6 +4851,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/es-ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,7 @@
"Network Interface Card": "",
"Network Interface Read": "",
"Network Interface Write": "",
"Network Reconnection Issue": "",
"Network Settings": "",
"Network Stats": "",
"Network Traffic": "",
Expand Down Expand Up @@ -2702,6 +2703,7 @@
"Warning: {n} of {total} snapshots could not be deleted.": "",
"Warnings": "",
"Watch List": "",
"We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.": "",
"We've generated a Netdata password and attempted to automatically log you in in a new tab.": "",
"Weak Ciphers": "",
"Web Interface": "",
Expand Down
Loading

0 comments on commit c7b5350

Please sign in to comment.