Josh Hunt
3c6e0e8ef8
Chore: ESlint import order ( #44959 )
...
* Add and configure eslint-plugin-import
* Fix the lint:ts npm command
* Autofix + prettier all the files
* Manually fix remaining files
* Move jquery code in jest-setup to external file to safely reorder imports
* Resolve issue caused by circular dependencies within Prometheus
* Update .betterer.results
* Fix missing // @ts-ignore
* ignore iconBundle.ts
* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
Josh Hunt
ce4d8646fd
Chore: E2E tests for various variables types ( #44747 )
...
* Pass data-testid into VariableTextEditorField
* Add e2e tests for custom variables
* Rename query variable specs to match others
* Add e2e tests for Text Box variables
* manually remove id: null
* Add tests for constant variables
2022-02-03 09:58:56 +11:00
Diana Payton
e34b2c13d3
Variables UI text edits ( #32523 )
...
* Update formatRegistry.ts
* text edits
* Update adapter.ts
* Update adapter.ts
* text edits
* Update SelectionOptionsEditor.tsx
* Update CustomVariableEditor.tsx
* Update DataSourceVariableEditor.tsx
* Update IntervalVariableEditor.tsx
* Update VariableEditorList.tsx
* Update adapter.ts
* Update actions.ts
* Update NetworkGraphModal.tsx
* Update actions.ts
* Update operators.ts
* text edits
2021-04-01 18:17:39 +02:00
Hugo Häggmark
3c1f27b0e6
Chore: reduce strict errors for variables ( #31241 )
...
* Chore: reduces a lot of variable errors
* Chore: reduces variable Editor errors
* Chore: reduces variable Picker errors
* Chore: reduce error count
* Chore: reduces errors for ChangeEvent instead of FormEvent
* Chore: reduces errors with CombinedState
* Chore: reduces ComponentType errors
* Chore: reduce errors in reducers
* Chore: reduces misc errors
* Chore: reduce AdhocPicker errors
* Chore: reduce error limit
* Update public/app/features/variables/adhoc/picker/AdHocFilterValue.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Chore: updates after PR comments
* Chore: small refactor
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2021-02-18 06:21:35 +01:00
Hugo Häggmark
04d857dfe6
Variables: Adds description field ( #29332 )
...
* Variables: Adds description field
* Refactor: Adds new Form components
* Refactor: Fixes aria labels
* Refactor: removes skipped tests
* Refactor: Breaks out smaller select components
* Refactor: removes gf-form div
* Refactor: Breaks up several more selects into smaller components
* Chore: Fixes typings
2020-11-25 10:21:48 +01:00
Darryl
0f97925c1a
Templating: Custom variable edit UI, change text input into textarea ( #28312 ) ( #28322 )
2020-10-26 08:38:39 +01:00
Sartaj Singh Baveja
4e4242d475
Variables: Adds support for key/value mapping in Custom variable ( #27829 )
...
* Initial work on adding new mapping variable type
* Remove add button
* Update custom variable type to include key/value mapping
* Update custom variable docs
* Try to fix failing build
* Update reducer.ts
* Fix failing build
* Remove expansion of the colon
* Update docs
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-10-01 06:06:52 +02:00
Hugo Häggmark
00a9af00fc
Templating: removes old Angular variable system and featureToggle ( #24779 )
...
* Chore: initial commit
* Tests: fixes MetricsQueryEditor.test.tsx
* Tests: fixes cloudwatch/specs/datasource.test.ts
* Tests: fixes stackdriver/specs/datasource.test.ts
* Tests: remove refrences to CustomVariable
* Refactor: moves DefaultVariableQueryEditor
* Refactor: moves utils
* Refactor: moves types
* Refactor: removes variableSrv
* Refactor: removes feature toggle newVariables
* Refactor: removes valueSelectDropDown
* Chore: removes GeneralTabCtrl
* Chore: migrates RowOptions
* Refactor: adds RowOptionsButton
* Refactor: makes the interface more explicit
* Refactor: small changes
* Refactor: changed type as it can be any variable type
* Tests: fixes broken test
* Refactor: changes after PR comments
* Refactor: adds loading state and call to onChange in componentDidMount
2020-06-04 13:44:48 +02:00
Marcus Andersson
ac7af7d4c3
TemplateVariables: make sure we handle multi/single value with correct data type ( #23208 )
...
* Fixed issue with multi value.
* Made some refactorings after feedback from Torkel and Hugo.
* minor refactorings.
* changed so we don't make the current value to array if multi is false.
* added snapshot to contain v23.
* Fixed so we always use the correct type when setting value for multi/non-multi.
* added some more tests.
* added tests.
* some small adjustments after feedback
2020-04-01 18:13:38 +02:00
Hugo Häggmark
05b6d38374
Variables: breaks variable.ts into 2 separate files utils and types ( #22884 )
2020-03-24 05:46:31 +01:00
Hugo Häggmark
1db067396a
Variables: migrates data source variable type to React/Redux ( #22770 )
...
* Refactor: moves all the newVariables part to features/variables directory
* Feature: adds datasource type
* Tests: adds reducer tests
* Tests: covers data source actions with tests
* Chore: reduces strict null errors
2020-03-16 06:32:04 +01:00