Skip to content

Commit

Permalink
NAS-132485: PR Update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKarpov98 committed Nov 21, 2024
1 parent 57a30d0 commit d55814c
Show file tree
Hide file tree
Showing 29 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class GroupListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ list: this.groups, query, columnKeys: ['group', 'gid'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class UserListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ list: this.users, query, columnKeys: ['username', 'full_name', 'uid'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class DockerImagesListComponent implements OnInit {
}

protected onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({
query,
columnKeys: ['repo_tags'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ describe('CloudBackupListComponent', () => {
setFilter: jest.fn(),
} as unknown as AsyncDataProvider<CloudBackup>;

const queryString = 'UA';
const queryString = 'ua';
spectator.component.onListFiltered(queryString);

expect(spectator.component.filterString).toBe(queryString.toLowerCase());
expect(spectator.component.filterString).toBe(queryString);

expect(spectator.component.dataProvider.setFilter).toHaveBeenCalledWith({
query: queryString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class CloudBackupListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['description'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export class CloudSyncListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['description'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export class ReplicationListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['name'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class SmartTaskListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['desc', 'type', 'disksLabel'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class VmwareSnapshotListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['hostname', 'datastore', 'filesystem', 'username'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export class DatasetQuotasListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ list: this.quotas, query, columnKeys: ['name', 'id', 'quota', 'obj_quota'] });

if (!this.dataProvider.totalRows) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class IdmapListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['label', 'idmap_backend'] });
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class KerberosKeytabsListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['name'] });
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class KerberosRealmsListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({
query,
columnKeys: ['realm', 'kdc_string', 'admin_server_string', 'kpasswd_server_string'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class ReportingExporterListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({
list: this.exporters,
query,
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/services/services.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class ServicesComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({
list: this.services,
query,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class AssociatedTargetListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
const extentNames = this.extents.map((extent) => ({ name: extent.name.toLowerCase(), id: extent.id }));
const targetNames = this.targets.map((target) => ({ name: target.name.toLowerCase(), id: target.id }));
this.dataProvider.setFilter({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class AuthorizedAccessListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['peeruser', 'user'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class ExtentListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['name'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class InitiatorListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({
query,
columnKeys: ['comment', 'initiators'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class PortalListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['comment', 'discovery_authmethod'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class TargetListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['name'] });
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/sharing/nfs/nfs-list/nfs-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class NfsListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({
query,
columnKeys: !this.nfsShares.length ? [] : Object.keys(this.nfsShares[0]) as (keyof NfsShare)[],
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/sharing/smb/smb-list/smb-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class SmbListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({
query,
columnKeys: !this.smbShares.length ? [] : Object.keys(this.smbShares[0]) as (keyof SmbShare)[],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class SmartTestResultListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({
query,
columnKeys: !this.smartTestResults.length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class CronListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['user'] });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class TunableListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({
query,
columnKeys: ['var', 'value', 'comment'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class JbofListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['mgmt_username', 'description'] });
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class DeviceListComponent implements OnInit {
}

onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({
list: this.devices,
query,
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/vm/vm-list/vm-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class VmListComponent implements OnInit {
}

protected onListFiltered(query: string): void {
this.filterString = query.toLowerCase();
this.filterString = query;
this.dataProvider.setFilter({ query, columnKeys: ['name'] });
}

Expand Down

0 comments on commit d55814c

Please sign in to comment.