Skip to content

Commit

Permalink
Fix e2e + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Jan 20, 2025
1 parent d9b64f8 commit d42522c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe('Performance', { testIsolation: 'off', tags: ['@globalSettings', '@admi
performancePage.namespaceFilteringCheckbox().set();

performancePage.incompatibleModal().getBody().contains('Required Namespace / Project Filtering is incompatible with Manual Refresh and Incremental Loading. Enabling this will disable them.');
performancePage.incompatibleModal().submit('Enable');
performancePage.incompatibleModal().submit('Continue');
performancePage.namespaceFilteringCheckbox().isChecked();
performancePage.applyAndWait('forceNsFilterV2-true').then(({ request, response }) => {
expect(response?.statusCode).to.eq(200);
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/tests/priority/vai-setup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Setup Vai', { testIsolation: 'off', tags: ['@vai', '@adminUser'] }, ()
performancePage.serverSidePaginationCheckbox().set();

performancePage.incompatibleModal().checkVisible();
performancePage.incompatibleModal().submit('Enable');
performancePage.incompatibleModal().submit('Continue');

performancePage.serverSidePaginationCheckbox().isChecked();

Expand Down
10 changes: 0 additions & 10 deletions shell/config/settings.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
// Settings
import { GC_DEFAULTS, GC_PREFERENCES } from '@shell/utils/gc/gc-types';
import { PaginationSettings } from '@shell/types/resources/settings';
import {
CAPI, MANAGEMENT, EVENT, CATALOG, HPA, INGRESS, SERVICE,
CONFIG_MAP,
SECRET,
POD, NODE,
STORAGE_CLASS,
PVC,
PV,
WORKLOAD_TYPES
} from '@shell/config/types';

interface GlobalSettingRuleset {
name: string,
Expand Down
7 changes: 3 additions & 4 deletions shell/pages/c/_cluster/settings/performance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import UnitInput from '@shell/components/form/UnitInput';
import { STEVE_CACHE } from '@shell/store/features';
import { NAME as SETTING_PRODUCT } from '@shell/config/product/settings';
import paginationUtils from '@shell/utils/pagination-utils';
import { isDevBuild } from '@shell/utils/version';
const incompatible = {
incrementalLoading: ['forceNsFilterV2', 'serverPagination'],
Expand Down Expand Up @@ -97,7 +96,7 @@ export default {
},
steveCacheAndSSPEnabled() {
return this.steveCacheEnabled && this.value.serverPagination.enabled
return this.steveCacheEnabled && this.value.serverPagination.enabled;
},
sspApplicableResources() {
Expand Down Expand Up @@ -204,7 +203,7 @@ export default {
};
if (defaultStore) {
this.value.serverPagination.stores = paginationUtils.getStoreDefault()
this.value.serverPagination.stores = paginationUtils.getStoreDefault();
}
}
},
Expand Down Expand Up @@ -263,8 +262,8 @@ export default {
v-if="isDev"
class="btn btn-sm role-primary"
style="width: fit-content;"
@click.prevent="sspApplyDefaults(true)"
:disabled="!steveCacheAndSSPEnabled"
@click.prevent="sspApplyDefaults(true)"
>
{{ t('performance.serverPagination.populateDefaults') }}
</button>
Expand Down

0 comments on commit d42522c

Please sign in to comment.