From: Nizamudeen A Date: Thu, 17 Aug 2023 05:27:52 +0000 (+0530) Subject: Merge pull request #51561 from rhcs-dashboard/hosts-no-data X-Git-Tag: v19.0.0~665 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ac616eeefb578446accceeae0cdf335dcd7559f7;p=ceph.git Merge pull request #51561 from rhcs-dashboard/hosts-no-data mgr/dashboard: add not avaialable with unpresent host facts Reviewed-by: Pegonzal Reviewed-by: cloudbehl Reviewed-by: Ernesto Puerta Reviewed-by: Nizamudeen A --- ac616eeefb578446accceeae0cdf335dcd7559f7 diff --cc src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts index 6c9311cbeb82,1678316ba05f..661834d620d4 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts @@@ -224,10 -213,10 +224,10 @@@ describe('HostsComponent', () => const spans = fixture.debugElement.nativeElement.querySelectorAll( '.datatable-body-cell-label span' ); - expect(spans[7].textContent).toBe('N/A'); + expect(spans[7].textContent).toBe('-'); }); - it('should test if host facts are unavailable if get_fatcs orch feature is not available', () => { + it('should test if host facts are unavailable if get_facts orch feature is not available', () => { const payload = [ { hostname: 'host_test', diff --cc src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts index 0caeac9f2eb8,d69dc59a1171..e04269aa67c4 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts @@@ -26,10 -26,8 +26,9 @@@ import { FinishedTask } from '~/app/sha import { OrchestratorFeature } from '~/app/shared/models/orchestrator.enum'; import { OrchestratorStatus } from '~/app/shared/models/orchestrator.interface'; import { Permissions } from '~/app/shared/models/permissions'; - import { DimlessBinaryPipe } from '~/app/shared/pipes/dimless-binary.pipe'; import { EmptyPipe } from '~/app/shared/pipes/empty.pipe'; import { AuthStorageService } from '~/app/shared/services/auth-storage.service'; +import { CdTableServerSideService } from '~/app/shared/services/cd-table-server-side.service'; import { ModalService } from '~/app/shared/services/modal.service'; import { NotificationService } from '~/app/shared/services/notification.service'; import { TaskWrapperService } from '~/app/shared/services/task-wrapper.service';