Prometheus: Throw error on direct access (#50162)

* Disable direct access

* Hide access select if Server mode is already selected

* Update docs

* Add more tests

Co-authored-by: Beto Muniz <contato@betomuniz.com>
This commit is contained in:
Andrej Ocenas
2022-08-17 14:37:29 +02:00
committed by GitHub
parent b5cb7738da
commit f30795b088
5 changed files with 84 additions and 15 deletions

View File

@@ -7857,7 +7857,10 @@ exports[`better eslint`] = {
[0, 0, 0, "Unexpected any. Specify a different type.", "102"],
[0, 0, 0, "Unexpected any. Specify a different type.", "103"],
[0, 0, 0, "Unexpected any. Specify a different type.", "104"],
[0, 0, 0, "Unexpected any. Specify a different type.", "105"]
[0, 0, 0, "Unexpected any. Specify a different type.", "105"],
[0, 0, 0, "Unexpected any. Specify a different type.", "106"],
[0, 0, 0, "Unexpected any. Specify a different type.", "107"],
[0, 0, 0, "Unexpected any. Specify a different type.", "108"]
],
"public/app/plugins/datasource/prometheus/datasource.tsx:5381": [
[0, 0, 0, "Unexpected any. Specify a different type.", "0"],
@@ -7882,9 +7885,9 @@ exports[`better eslint`] = {
[0, 0, 0, "Unexpected any. Specify a different type.", "19"],
[0, 0, 0, "Unexpected any. Specify a different type.", "20"],
[0, 0, 0, "Unexpected any. Specify a different type.", "21"],
[0, 0, 0, "Unexpected any. Specify a different type.", "22"],
[0, 0, 0, "Do not use any type assertions.", "22"],
[0, 0, 0, "Unexpected any. Specify a different type.", "23"],
[0, 0, 0, "Do not use any type assertions.", "24"],
[0, 0, 0, "Unexpected any. Specify a different type.", "24"],
[0, 0, 0, "Unexpected any. Specify a different type.", "25"],
[0, 0, 0, "Unexpected any. Specify a different type.", "26"],
[0, 0, 0, "Unexpected any. Specify a different type.", "27"],
@@ -7893,9 +7896,7 @@ exports[`better eslint`] = {
[0, 0, 0, "Unexpected any. Specify a different type.", "30"],
[0, 0, 0, "Unexpected any. Specify a different type.", "31"],
[0, 0, 0, "Unexpected any. Specify a different type.", "32"],
[0, 0, 0, "Unexpected any. Specify a different type.", "33"],
[0, 0, 0, "Unexpected any. Specify a different type.", "34"],
[0, 0, 0, "Unexpected any. Specify a different type.", "35"]
[0, 0, 0, "Unexpected any. Specify a different type.", "33"]
],
"public/app/plugins/datasource/prometheus/language_provider.test.ts:5381": [
[0, 0, 0, "Unexpected any. Specify a different type.", "0"],