Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-13448-fixed-1772228313479.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Database Connection Pools table page size ([#13448](https://github.com/linode/manager/pull/13448))
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const MIN_PAGE_SIZE = 25;

export const DEFAULT_PAGE_SIZES = [MIN_PAGE_SIZE, 50, 75, 100];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be somewhere else? It's not obvious to me what the difference is between DEFAULT_PAGE_SIZES and PAGE_SIZES below

Copy link
Member

@bnussman-akamai bnussman-akamai Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe PAGE_SIZES can be removed and we can just use DEFAULT_PAGE_SIZES only? From what I remember, we don't let people select Infinity/All anymore anyway

export const PAGE_SIZES = [MIN_PAGE_SIZE, 50, 75, 100, Infinity];
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import React from 'react';

import { Link } from 'src/components/Link';
import {
DEFAULT_PAGE_SIZES,
MIN_PAGE_SIZE,
PAGE_SIZES,
} from 'src/components/PaginationFooter/PaginationFooter.constants';
import {
CONNECTION_POOL_LABEL_CELL_STYLES,
Expand Down Expand Up @@ -183,7 +183,7 @@ export const DatabaseConnectionPools = ({ database }: Props) => {
) => pagination.handlePageSizeChange(Number(e.detail.pageSize))}
page={pagination.page}
pageSize={pagination.pageSize}
pageSizes={PAGE_SIZES}
pageSizes={DEFAULT_PAGE_SIZES}
style={{
borderLeft: `1px solid ${theme.tokens.alias.Border.Normal}`,
borderRight: `1px solid ${theme.tokens.alias.Border.Normal}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import {
} from 'akamai-cds-react-components/Table';
import React from 'react';

import {
DEFAULT_PAGE_SIZES,
MIN_PAGE_SIZE,
} from 'src/components/PaginationFooter/PaginationFooter.constants';
import { TableRowEmpty } from 'src/components/TableRowEmpty/TableRowEmpty';
import { DatabaseSettingsDeleteClusterDialog } from 'src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsDeleteClusterDialog';
import DatabaseSettingsResetPasswordDialog from 'src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsResetPasswordDialog';
Expand Down Expand Up @@ -54,8 +58,6 @@ const DatabaseLandingTable = ({
preferenceKey,
queryParamsPrefix: dbPlatformType,
});
const PAGE_SIZES = [25, 50, 75, 100];
const MIN_PAGE_SIZE = 25;

const [selectedDatabase, setSelectedDatabase] =
React.useState<DatabaseInstance>({} as DatabaseInstance);
Expand Down Expand Up @@ -245,7 +247,7 @@ const DatabaseLandingTable = ({
) => pagination.handlePageSizeChange(Number(e.detail.pageSize))}
page={pagination.page}
pageSize={pagination.pageSize}
pageSizes={PAGE_SIZES}
pageSizes={DEFAULT_PAGE_SIZES}
style={{
borderLeft: `1px solid ${theme.tokens.alias.Border.Normal}`,
borderRight: `1px solid ${theme.tokens.alias.Border.Normal}`,
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/mocks/serverHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ const databases = [
}),

http.get('*/databases/postgresql/instances/:id/connection-pools', () => {
const connectionPools = databaseConnectionPoolFactory.buildList(5);
const connectionPools = databaseConnectionPoolFactory.buildList(50);
// For mocking error response
// return HttpResponse.json({ errors: [{ reason: 'Unable to retrieve connection pools' }] }, { status: 400 });
return HttpResponse.json(makeResourcePage(connectionPools));
Expand Down