grafana/public/app/features/variables
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
..
adhoc Templating: Adds -- remove filter -- back to incomplete AdHoc filters (#26829) 2020-08-10 13:40:32 +02:00
constant Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
custom Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
datasource Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
editor Templating: Fixes renaming a variable using special characters or same name (#26866) 2020-08-13 06:52:32 +02:00
interval Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
pickers Templating: Fix multi-select keyboard toggle bug (#26841) 2020-08-07 06:24:25 +02:00
query Templating: Fix searchFilter issue in templating system (#25770) 2020-06-24 08:36:03 +02:00
shared Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
state Templating: Fixes renaming a variable using special characters or same name (#26866) 2020-08-13 06:52:32 +02:00
system Templating: fixes variables not being interpolated after dashboard refresh (#25698) 2020-06-25 07:38:55 +02:00
textbox Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
adapters.ts Templating: fixes variables not being interpolated after dashboard refresh (#25698) 2020-06-25 07:38:55 +02:00
guard.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
types.ts Templating: fixes variables not being interpolated after dashboard refresh (#25698) 2020-06-25 07:38:55 +02:00
utils.ts TemplateSrv: Formatting options for ${__from} and ${__to}, unix seconds epoch, ISO 8601/RFC 3339 (#26466) 2020-07-27 20:47:59 +02:00