Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Add learn more documentation link for PgBouncer in DBaaS ([#13315](https://github.com/linode/manager/pull/13315))
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import { useSnackbar } from 'notistack';
import * as React from 'react';
import { Controller, useForm, useWatch } from 'react-hook-form';

import { Link } from 'src/components/Link';

import { MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK } from '../../constants';

import type { ConnectionPool } from '@linode/api-v4';

interface Props {
Expand Down Expand Up @@ -103,7 +107,8 @@ export const DatabaseAddConnectionPoolDrawer = (props: Props) => {
)}
<Typography>
Add a PgBouncer connection pool to minimize the use of your server
resources.
resources.{' '}
<Link to={MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK}>Learn more.</Link>
</Typography>
<form onSubmit={handleSubmit(onSubmit)}>
<Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ import {
} from 'akamai-cds-react-components/Table';
import React from 'react';

import { Link } from 'src/components/Link';
import {
MIN_PAGE_SIZE,
PAGE_SIZES,
} from 'src/components/PaginationFooter/PaginationFooter.constants';
import { CONNECTION_POOL_LABEL_CELL_STYLES } from 'src/features/Databases/constants';
import {
CONNECTION_POOL_LABEL_CELL_STYLES,
MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK,
} from 'src/features/Databases/constants';
import { usePaginationV2 } from 'src/hooks/usePaginationV2';

import { makeSettingsItemStyles } from '../../shared.styles';
Expand Down Expand Up @@ -82,7 +86,10 @@ export const DatabaseConnectionPools = ({ database }: Props) => {
</Typography>
<Typography sx={{ maxWidth: '500px' }}>
Manage PgBouncer connection pools to minimize the use of your server
resources.
resources.{' '}
<Link to={MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK}>
Learn more.
</Link>
</Typography>
</Stack>
<Button
Expand Down
3 changes: 3 additions & 0 deletions packages/manager/src/features/Databases/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ export const ADVANCED_CONFIG_LEARN_MORE_LINK =
'https://techdocs.akamai.com/cloud-computing/docs/advanced-configuration-parameters';
export const MANAGE_NETWORKING_LEARN_MORE_LINK =
'https://techdocs.akamai.com/cloud-computing/docs/aiven-manage-database#manage-networking';
export const MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK =
'https://techdocs.akamai.com/cloud-computing/docs/aiven-manage-database#manage-pgbouncer-connection-pools';

// Styles
export const CONNECTION_POOL_LABEL_CELL_STYLES = {
flex: '.5 1 20.5%',
};