Skip to content

Commit bf5b1a8

Browse files
Merge pull request #12918 from linode/staging
Release v1.151.1 - `staging` → `master`
2 parents c271caa + 11bef91 commit bf5b1a8

File tree

6 files changed

+42
-8
lines changed

6 files changed

+42
-8
lines changed

packages/manager/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [2025-09-25] - v1.151.1
8+
9+
### Added:
10+
11+
- DBaaS - Display Beta chip for VPC fields and update related documentation link
12+
713
## [2025-09-23] - v1.151.0
814

915
### Added:

packages/manager/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "linode-manager",
33
"author": "Linode",
44
"description": "The Linode Manager website",
5-
"version": "1.151.0",
5+
"version": "1.151.1",
66
"private": true,
77
"type": "module",
88
"bugs": {

packages/manager/src/dev-tools/FeatureFlagTool.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const options: { flag: keyof Flags; label: string }[] = [
4646
{ flag: 'databaseResize', label: 'Database Resize' },
4747
{ flag: 'databaseAdvancedConfig', label: 'Database Advanced Config' },
4848
{ flag: 'databaseVpc', label: 'Database VPC' },
49+
{ flag: 'databaseVpcBeta', label: 'Database VPC Beta' },
4950
{ flag: 'databasePremium', label: 'Database Premium' },
5051
{
5152
flag: 'databaseRestrictPlanResize',

packages/manager/src/featureFlags.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export interface Flags {
168168
databaseRestrictPlanResize: boolean;
169169
databases: boolean;
170170
databaseVpc: boolean;
171+
databaseVpcBeta: boolean;
171172
dbaasV2: BetaFeatureFlag;
172173
dbaasV2MonitorMetrics: BetaFeatureFlag;
173174
disableLargestGbPlans: boolean;

packages/manager/src/features/Databases/DatabaseCreate/DatabaseVPCSelector.tsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useAllVPCsQuery, useRegionQuery } from '@linode/queries';
22
import {
33
Autocomplete,
4+
BetaChip,
45
Box,
56
Checkbox,
67
Notice,
@@ -10,6 +11,7 @@ import {
1011
import * as React from 'react';
1112

1213
import { Link } from 'src/components/Link';
14+
import { useFlags } from 'src/hooks/useFlags';
1315
import { getAPIErrorOrDefault } from 'src/utilities/errorUtils';
1416

1517
import { MANAGE_NETWORKING_LEARN_MORE_LINK } from '../constants';
@@ -40,6 +42,7 @@ export const DatabaseVPCSelector = (props: DatabaseVPCSelectorProps) => {
4042
privateNetworkValues,
4143
} = props;
4244

45+
const flags = useFlags();
4346
const isCreate = mode === 'create';
4447
const { data: selectedRegion } = useRegionQuery(selectedRegionId);
4548
const regionSupportsVPCs = selectedRegion?.capabilities.includes('VPCs');
@@ -123,19 +126,24 @@ export const DatabaseVPCSelector = (props: DatabaseVPCSelectorProps) => {
123126

124127
return (
125128
<>
126-
<Typography
129+
<Box
127130
sx={(theme: Theme) => ({
131+
display: 'flex',
128132
marginTop: theme.spacingFunction(20),
129133
marginBottom: theme.spacingFunction(4),
130134
})}
131-
variant="h3"
132135
>
133-
Assign a VPC
134-
</Typography>
136+
<Typography variant="h3">Assign a VPC</Typography>
137+
{flags.databaseVpcBeta && <BetaChip />}
138+
</Box>
135139

136140
<Typography>
137141
Assign this cluster to an existing VPC.{' '}
138-
<Link to={MANAGE_NETWORKING_LEARN_MORE_LINK}>Learn more.</Link>
142+
<Link
143+
to={`${MANAGE_NETWORKING_LEARN_MORE_LINK + (flags.databaseVpcBeta ? '-beta' : '')}`}
144+
>
145+
Learn more.
146+
</Link>
139147
</Typography>
140148
<Box style={{ display: 'flex' }}>
141149
<Autocomplete

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
import { useAllVPCsQuery } from '@linode/queries';
2-
import { Button, CircleProgress, ErrorState, Typography } from '@linode/ui';
2+
import {
3+
BetaChip,
4+
Button,
5+
CircleProgress,
6+
ErrorState,
7+
Typography,
8+
} from '@linode/ui';
39
import { Grid } from '@mui/material';
410
import React from 'react';
511
import { makeStyles } from 'tss-react/mui';
612

13+
import { Link } from 'src/components/Link';
14+
import { useFlags } from 'src/hooks/useFlags';
15+
16+
import { MANAGE_NETWORKING_LEARN_MORE_LINK } from '../../constants';
717
import { getReadOnlyHost } from '../../utilities';
818
import {
919
StyledGridContainer,
@@ -41,6 +51,7 @@ export const DatabaseManageNetworking = ({ database }: Props) => {
4151
},
4252
sectionTitle: {
4353
marginBottom: '0.25rem',
54+
display: 'flex',
4455
},
4556
sectionTitleAndText: {
4657
width: '100%',
@@ -59,6 +70,7 @@ export const DatabaseManageNetworking = ({ database }: Props) => {
5970
},
6071
}));
6172

73+
const flags = useFlags();
6274
const { classes } = useStyles();
6375
const [isManageNetworkingDrawerOpen, setIsManageNetworkingDrawerOpen] =
6476
React.useState(false);
@@ -118,9 +130,15 @@ export const DatabaseManageNetworking = ({ database }: Props) => {
118130
<div className={classes.sectionTitleAndText}>
119131
<div className={classes.sectionTitle}>
120132
<Typography variant="h3">Manage Networking</Typography>
133+
{flags.databaseVpcBeta && <BetaChip />}
121134
</div>
122135
<Typography sx={{ maxWidth: '500px' }}>
123-
Update access settings or the VPC assignment.
136+
Update access settings or the VPC assignment.{' '}
137+
<Link
138+
to={`${MANAGE_NETWORKING_LEARN_MORE_LINK + (flags.databaseVpcBeta ? '-beta' : '')}`}
139+
>
140+
Learn more.
141+
</Link>
124142
<br />
125143
Note that a change of VPC assignment settings can disrupt service
126144
availability. Avoid writing data to the database while a change is

0 commit comments

Comments
 (0)