mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Improve expanding ruleIs with identifier label checking (#90336)
* define rule mapping type * introduce a new mapping type * add type comments * add identifier check * remove tests from wrong file * add tests to the right file * define function body * unit tests and logic for getQueryLabelsForRuleName * update logic of getRecordingRuleIdentifierIdx * update logic and tests getRecordingRuleIdentifierIdx * fix unit tests * fix tests * update how we return the options * update message * update type * update expandRecordingRules unit tests * remove identifier from end result * fix unit tests once more * remove fix action from expand rules warning * remove generic type * update warning text * betterer
This commit is contained in:
@@ -451,9 +451,8 @@ exports[`better eslint`] = {
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "1"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "2"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "3"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "4"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "5"]
|
||||
[0, 0, 0, "Do not use any type assertions.", "3"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "4"]
|
||||
],
|
||||
"packages/grafana-prometheus/src/language_provider.ts:5381": [
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"],
|
||||
|
||||
Reference in New Issue
Block a user