DataSource: show the uid in edit url, not the local id (#33818)

This commit is contained in:
Ryan McKinley
2021-05-08 09:13:26 -07:00
committed by GitHub
parent 48f4b87349
commit ccc0f7fc22
25 changed files with 110 additions and 42 deletions

View File

@@ -22,6 +22,7 @@ const setup = (propOverrides?: object) => {
const props: Props = {
options: {
id: 1,
uid: 'z',
orgId: 1,
typeLogoUrl: '',
name: 'CloudWatch',

View File

@@ -37,6 +37,7 @@ exports[`Render should disable access key id field 1`] = `
"type": "cloudwatch",
"typeLogoUrl": "",
"typeName": "Cloudwatch",
"uid": "z",
"url": "",
"user": "",
"withCredentials": false,
@@ -101,6 +102,7 @@ exports[`Render should render component 1`] = `
"type": "cloudwatch",
"typeLogoUrl": "",
"typeName": "Cloudwatch",
"uid": "z",
"url": "",
"user": "",
"withCredentials": false,
@@ -165,6 +167,7 @@ exports[`Render should show access key and secret access key fields 1`] = `
"type": "cloudwatch",
"typeLogoUrl": "",
"typeName": "Cloudwatch",
"uid": "z",
"url": "",
"user": "",
"withCredentials": false,
@@ -229,6 +232,7 @@ exports[`Render should show arn role field 1`] = `
"type": "cloudwatch",
"typeLogoUrl": "",
"typeName": "Cloudwatch",
"uid": "z",
"url": "",
"user": "",
"withCredentials": false,
@@ -293,6 +297,7 @@ exports[`Render should show credentials profile name field 1`] = `
"type": "cloudwatch",
"typeLogoUrl": "",
"typeName": "Cloudwatch",
"uid": "z",
"url": "",
"user": "",
"withCredentials": false,