Skip to content

Commit 2f0bee0

Browse files
upcoming: [DI-28427] - Add and consume beta property to aclpAlerting flag (#13137)
* upcoming: [DI-28427] - Add and consume beta property to aclpAlerting flag * add changeset
1 parent b5dcacd commit 2f0bee0

File tree

6 files changed

+12
-1
lines changed

6 files changed

+12
-1
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+
ACLP-Alerting: Update aclpAlerting flag to have beta marker control ([#13137](https://github.com/linode/manager/pull/13137))

packages/manager/src/components/PrimaryNav/PrimaryNav.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ describe('PrimaryNav', () => {
233233
accountAlertLimit: 10,
234234
accountMetricLimit: 10,
235235
alertDefinitions: true,
236+
beta: true,
236237
notificationChannels: false,
237238
recentActivity: false,
238239
},
@@ -274,6 +275,7 @@ describe('PrimaryNav', () => {
274275
accountAlertLimit: 10,
275276
accountMetricLimit: 10,
276277
alertDefinitions: true,
278+
beta: false,
277279
notificationChannels: true,
278280
recentActivity: true,
279281
},
@@ -314,6 +316,7 @@ describe('PrimaryNav', () => {
314316
accountAlertLimit: 10,
315317
accountMetricLimit: 10,
316318
alertDefinitions: false,
319+
beta: true,
317320
notificationChannels: false,
318321
recentActivity: false,
319322
},

packages/manager/src/components/PrimaryNav/PrimaryNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export const PrimaryNav = (props: PrimaryNavProps) => {
246246
display: 'Alerts',
247247
hide: !isAlertsEnabled,
248248
to: '/alerts',
249-
isBeta: flags.aclp?.beta,
249+
isBeta: flags.aclpAlerting?.beta,
250250
},
251251
{
252252
display: 'Longview',

packages/manager/src/factories/featureFlags.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const flagsFactory = Factory.Sync.makeFactory<Partial<Flags>>({
2222
accountAlertLimit: 10,
2323
accountMetricLimit: 10,
2424
alertDefinitions: true,
25+
beta: true,
2526
recentActivity: false,
2627
notificationChannels: false,
2728
editDisabledStatuses: [

packages/manager/src/featureFlags.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ interface AclpAlerting {
149149
accountAlertLimit: number;
150150
accountMetricLimit: number;
151151
alertDefinitions: boolean;
152+
beta: boolean;
152153
editDisabledStatuses?: AlertStatusType[];
153154
notificationChannels: boolean;
154155
recentActivity: boolean;

packages/manager/src/features/CloudPulse/Alerts/AlertsListing/AlertTableRow.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ describe('Alert Row', () => {
190190
editDisabledStatuses: ['failed', 'in progress'],
191191
accountAlertLimit: 10,
192192
accountMetricLimit: 100,
193+
beta: true,
193194
alertDefinitions: true,
194195
notificationChannels: false,
195196
recentActivity: false,

0 commit comments

Comments
 (0)