Skip to content

Commit

Permalink
NAS-134595: Fix instances in ui search
Browse files Browse the repository at this point in the history
  • Loading branch information
denysbutenko committed Mar 5, 2025
1 parent d677c5a commit 4afb574
Show file tree
Hide file tree
Showing 95 changed files with 236 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h3 mat-card-title>{{ 'Roles' | translate }}</h3>
<div class="vms value">
{{ 'This dataset is used by: {vms}' | translate: { vms: vmNames() } }}
</div>
<a class="action" ixTest="manage-vm-settings" [routerLink]="['/virtualization']">
<a class="action" ixTest="manage-vm-settings" [routerLink]="['/instances']">
{{ 'Manage VM Settings' | translate }}
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { marker as T } from '@biesbjerg/ngx-translate-extract-marker';
import { UiSearchableElement } from 'app/modules/global-search/interfaces/ui-searchable-element.interface';

export const allInstancesHeaderElements = {
hierarchy: [T('Virtualization'), T('Containers')],
synonyms: [T('VMs'), T('Virtual Machines')],
anchorRouterLink: ['/virtualization'],
hierarchy: [T('Instances')],
synonyms: [T('VMs'), T('Virtual Machines'), T('Virtualization'), T('Containers')],
anchorRouterLink: ['/instances'],
elements: {
globalSettings: {
hierarchy: [T('Global Settings')],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { marker as T } from '@biesbjerg/ngx-translate-extract-marker';
import { UiSearchableElement } from 'app/modules/global-search/interfaces/ui-searchable-element.interface';

export const allInstancesElements = {
hierarchy: [T('Virtualization'), T('Containers')],
synonyms: [T('VM'), T('Virtual Machines')],
anchorRouterLink: ['/virtualization/view/def'],
hierarchy: [T('Instances')],
synonyms: [T('VM'), T('Virtual Machines'), T('Instances'), T('Incus'), T('Containers')],
anchorRouterLink: ['/instances/view/def'],
elements: {
list: {
hierarchy: [T('Instances')],
synonyms: [T('Containers')],
hierarchy: [T('List')],
synonyms: [T('Containers'), T('Instances'), T('Incus')],
anchor: 'containers-list',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { marker as T } from '@biesbjerg/ngx-translate-extract-marker';
import { UiSearchableElement } from 'app/modules/global-search/interfaces/ui-searchable-element.interface';

export const instanceDetailsElements = {
hierarchy: [T('Virtualization'), T('Containers')],
synonyms: [T('VM'), T('Virtual Machines'), T('Instances')],
anchorRouterLink: ['/virtualization/view/def'],
hierarchy: [T('Instances')],
synonyms: [T('VM'), T('Virtual Machines'), T('Instances'), T('Virtualization'), T('Containers')],
anchorRouterLink: ['/instances/view/def'],
elements: {
generalInfo: {
hierarchy: [T('General Info')],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe('InstanceGeneralInfoComponent', () => {
expect(spectator.inject(DialogService).jobDialog).toHaveBeenCalled();
expect(spectator.inject(ApiService).job).toHaveBeenLastCalledWith('virt.instance.delete', ['demo']);

expect(spectator.inject(Router).navigate).toHaveBeenCalledWith(['/virtualization'], { state: { hideMobileDetails: true } });
expect(spectator.inject(Router).navigate).toHaveBeenCalledWith(['/instaces'], { state: { hideMobileDetails: true } });
});

it('opens edit instance form when Edit is pressed', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class InstanceGeneralInfoComponent {
this.errorHandler.catchError(),
untilDestroyed(this),
).subscribe(() => {
this.router.navigate(['/virtualization'], { state: { hideMobileDetails: true } });
this.router.navigate(['/instances'], { state: { hideMobileDetails: true } });
});
}
}
2 changes: 2 additions & 0 deletions src/assets/i18n/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -1823,6 +1823,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Inherit": "",
Expand Down Expand Up @@ -2050,6 +2051,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -1671,6 +1671,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Informational": "",
"Inherit": "",
Expand Down Expand Up @@ -1874,6 +1875,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
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 @@ -2295,6 +2295,7 @@
"Increase Root Disk Size": "",
"Increase logging verbosity related to the active directory service in /var/log/middlewared.log": "",
"Increasing disk size": "",
"Incus": "",
"InfluxDB time series name for collected points.": "",
"Info": "",
"Informational": "",
Expand Down Expand Up @@ -2541,6 +2542,7 @@
"Link aggregation interface": "",
"Linked Service": "",
"Linux Only": "",
"List": "",
"List any existing dataset properties to remove from the replicated files.": "",
"List of chat IDs": "",
"List of files and directories to exclude from backup.<br> Separate entries by pressing <code>Enter</code>. See <a href=\"https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files\" target=\"_blank\">restic exclude patterns</a> for more details about the <code>--exclude</code> option.": "",
Expand Down
Loading

0 comments on commit 4afb574

Please sign in to comment.