Skip to content

Commit aba906b

Browse files
authored
upcoming: [UIE-9768] - DBaaS - Learn more documentation link for PgBouncer (#13315)
* upcoming: [UIE-9768] - DBaaS - Learn more documentation link for PgBouncer * Adding changesets
1 parent 0c3607b commit aba906b

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Upcoming Features
3+
---
4+
5+
Add learn more documentation link for PgBouncer in DBaaS ([#13315](https://github.com/linode/manager/pull/13315))

packages/manager/src/features/Databases/DatabaseDetail/DatabaseNetworking/DatabaseAddConnectionPoolDrawer.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import { useSnackbar } from 'notistack';
1414
import * as React from 'react';
1515
import { Controller, useForm, useWatch } from 'react-hook-form';
1616

17+
import { Link } from 'src/components/Link';
18+
19+
import { MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK } from '../../constants';
20+
1721
import type { ConnectionPool } from '@linode/api-v4';
1822

1923
interface Props {
@@ -103,7 +107,8 @@ export const DatabaseAddConnectionPoolDrawer = (props: Props) => {
103107
)}
104108
<Typography>
105109
Add a PgBouncer connection pool to minimize the use of your server
106-
resources.
110+
resources.{' '}
111+
<Link to={MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK}>Learn more.</Link>
107112
</Typography>
108113
<form onSubmit={handleSubmit(onSubmit)}>
109114
<Stack>

packages/manager/src/features/Databases/DatabaseDetail/DatabaseNetworking/DatabaseConnectionPools.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ import {
1919
} from 'akamai-cds-react-components/Table';
2020
import React from 'react';
2121

22+
import { Link } from 'src/components/Link';
2223
import {
2324
MIN_PAGE_SIZE,
2425
PAGE_SIZES,
2526
} from 'src/components/PaginationFooter/PaginationFooter.constants';
26-
import { CONNECTION_POOL_LABEL_CELL_STYLES } from 'src/features/Databases/constants';
27+
import {
28+
CONNECTION_POOL_LABEL_CELL_STYLES,
29+
MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK,
30+
} from 'src/features/Databases/constants';
2731
import { usePaginationV2 } from 'src/hooks/usePaginationV2';
2832

2933
import { makeSettingsItemStyles } from '../../shared.styles';
@@ -82,7 +86,10 @@ export const DatabaseConnectionPools = ({ database }: Props) => {
8286
</Typography>
8387
<Typography sx={{ maxWidth: '500px' }}>
8488
Manage PgBouncer connection pools to minimize the use of your server
85-
resources.
89+
resources.{' '}
90+
<Link to={MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK}>
91+
Learn more.
92+
</Link>
8693
</Typography>
8794
</Stack>
8895
<Button

packages/manager/src/features/Databases/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ export const ADVANCED_CONFIG_LEARN_MORE_LINK =
7171
'https://techdocs.akamai.com/cloud-computing/docs/advanced-configuration-parameters';
7272
export const MANAGE_NETWORKING_LEARN_MORE_LINK =
7373
'https://techdocs.akamai.com/cloud-computing/docs/aiven-manage-database#manage-networking';
74+
export const MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK =
75+
'https://techdocs.akamai.com/cloud-computing/docs/aiven-manage-database#manage-pgbouncer-connection-pools';
7476

77+
// Styles
7578
export const CONNECTION_POOL_LABEL_CELL_STYLES = {
7679
flex: '.5 1 20.5%',
7780
};

0 commit comments

Comments
 (0)