forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* PMM-12544 Add deprecation notice for DBaaS * PMM-12544 Remove K8s promotion message * PMM-12544 Removed unnecessary unit test
- Loading branch information
1 parent
d3d08d7
commit 8631374
Showing
11 changed files
with
62 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
public/app/percona/dbaas/components/DeprecationWarning/DeprecationWarning.constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const EVEREST_LINK = 'http://per.co.na/pmm-to-everest'; | ||
export const MIGRATION_GUIDE_LINK = 'http://per.co.na/pmm-to-everest-guide'; |
8 changes: 8 additions & 0 deletions
8
public/app/percona/dbaas/components/DeprecationWarning/DeprecationWarning.messages.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const Messages = { | ||
title: 'Deprecation notice', | ||
warning: 'DBaaS feature is deprecated. We encourage you to use ', | ||
everest: 'Everest', | ||
warningCont: ' instead. Check out our ', | ||
guide: 'Migration guide', | ||
dot: '.', | ||
}; |
24 changes: 24 additions & 0 deletions
24
public/app/percona/dbaas/components/DeprecationWarning/DeprecationWarning.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React, { FC } from 'react'; | ||
|
||
import { Alert } from '@grafana/ui'; | ||
|
||
import { EVEREST_LINK, MIGRATION_GUIDE_LINK } from './DeprecationWarning.constants'; | ||
import { Messages } from './DeprecationWarning.messages'; | ||
|
||
const DbaasDeprecationWarning: FC = () => ( | ||
<div> | ||
<Alert title={Messages.title} severity="warning"> | ||
{Messages.warning} | ||
<a target="_blank" rel="noopener noreferrer" href={EVEREST_LINK}> | ||
{Messages.everest} | ||
</a> | ||
{Messages.warningCont} | ||
<a target="_blank" rel="noopener noreferrer" href={MIGRATION_GUIDE_LINK}> | ||
{Messages.guide} | ||
</a> | ||
{Messages.dot} | ||
</Alert> | ||
</div> | ||
); | ||
|
||
export default DbaasDeprecationWarning; |
3 changes: 3 additions & 0 deletions
3
public/app/percona/dbaas/components/DeprecationWarning/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import DbaasDeprecationWarning from './DeprecationWarning'; | ||
|
||
export default DbaasDeprecationWarning; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
...netes/PortalK8sFreeClusterPromotingMessage/PortalK8sFreeClusterPromotingMessage.styles.ts
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
.../Kubernetes/PortalK8sFreeClusterPromotingMessage/PortalK8sFreeClusterPromotingMessage.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters