grafana/public/app/features/variables/state
Lucas Raschek 6b1b52b704
Templating: Fixes renaming a variable using special characters or same name (#26866)
* Fix variable editor name-input bug

You couldn't delete an invalid character after typing it into the name-input field.
While investigating the issue turned out to be bigger, as there was a problem with
valid characters too. (See test scenarios below)

The fix seems to be, to remove an unnecessary check in the `changeVariableName`
action. There is theoretically now the possibility, that the `changeVariableName`
action is called with the same name, as the variable is already, but practically
there seems no possibility, that this could happen. A test, which checks that, had
to be removed too.

Test scenarios:
* 1st Scenario
    1. Type "@"
    2. Try deleting it
* 2nd Scenario
    1. Type "w"
    2. delete "w"
    3. Try typing "w" again

Fixes #26562

* Fix bug when updating existing variable
2020-08-13 06:52:32 +02:00
..
actions.test.ts Templating: Fixes renaming a variable using special characters or same name (#26866) 2020-08-13 06:52:32 +02:00
actions.ts Templating: Fixed access to system variables like __dashboard, __user & __org during dashboard load & variable queries (#26637) 2020-07-28 16:05:29 +02:00
helpers.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
onTimeRangeUpdated.test.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
processVariable.test.ts Chore: MEGA - Make Eslint Great Again 💅 (#26094) 2020-08-11 17:52:44 +02:00
reducers.test.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
reducers.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
selectors.ts DashboardLinks: do not over-query search endpoint (#26311) 2020-07-15 09:18:35 +02:00
sharedReducer.test.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
sharedReducer.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
transactionReducer.test.ts Variables: enables cancel for slow query variables queries (#24430) 2020-06-04 08:59:57 +02:00
transactionReducer.ts Variables: enables cancel for slow query variables queries (#24430) 2020-06-04 08:59:57 +02:00
types.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
variablesReducer.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00