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
Alex Khomenko
6f1a38cbe2
Variables: Extend option pickers to accept custom onChange callback ( #30913 )
...
* Rename DashboardPicker props
* Extend variable option pickers to allow providing custom onchage callback
* Update public/app/features/variables/pickers/OptionsPicker/actions.ts
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
* Update public/app/features/variables/pickers/OptionsPicker/actions.ts
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
* Update public/app/features/variables/pickers/OptionsPicker/actions.ts
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
* Update public/app/features/variables/textbox/TextBoxVariablePicker.tsx
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
* Codeformat
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
2021-02-12 16:00:12 +02:00
Torkel Ödegaard
1d689888b0
Prettier: Upgrade to 2 ( #30387 )
...
* Updated package json but not updated source files
* Update eslint plugin
* updated files
2021-01-20 07:59:48 +01:00
Hugo Häggmark
3dcfe54d8d
Variables: Fixes Textbox current value persistence ( #29481 )
...
* Variables: Fixes savequery for Constant and TextBox variables
* Refactor: reverts textbox changes
* Refactor: Fixes dashboard export and tests
* Refactor: hides or migrates Constant variables
* Tests: fixes snapshots
* Variables: Fixes Textbox current value persistance
* Refactor: fixes PR comments and adds e2e tests
2020-12-02 14:08: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
Hugo Häggmark
845bc7c444
Variables: Adds loading state and indicators ( #27917 )
...
* Refactor: Replaces initLock with state machine
* Refactor: removes some states for now
* Refactor: adds loading state in OptionsPicker
* Refactor: major refactor of load state
* Refactor: fixes updating graph in parallell
* Refactor: moves error handling to updateOptions
* Refactor: fixes the last cases
* Tests: disables variable e2e again
* Chore: removes nova config
* Refactor: small changes when going through the code again
* Refactor: fixes typings
* Refactor: changes after PR comments
* Refactor: split up onTimeRangeUpdated and fixed some error handling
* Tests: removes unused func
* Tests: fixes typing
2020-10-02 07:02:06 +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
Hugo Häggmark
622246d56d
Templating: fixes so Textbox variables get value from url ( #24623 )
2020-05-14 07:41:42 +02:00
Hugo Häggmark
c7ffc1199c
Variables: turns on newVariables as a new default ( #23272 )
...
* Variables: turns on newVariables as default
* Chore: adds default templating state
* Some small refactorings to get the template_srv tests to get green when toggle is enabled by default.
* Refactor: adds getVariables dependency to DashboardModel
* Tests: fixes StackDriver tests
* Tests: updates snapshots
* Tests: updates snapshot for DashboardGrid.test.tsx
* Tests: fixes DashboardModel.test.ts
* fixed initDashboard tests.
* renamed variable.
* changed so we use the templating.list when running the migration work.
* changed so we always returns the variables in sorted order.
* Tests: fixed cloudwatch tests
* added so we set the global template variable props.
* Fixed tests and added moved logic to complete templateSrv variables.
* removed unneccesary updateIndex.
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2020-04-03 09:38:14 +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
cf5064bfa0
Variables: replaces homegrown variableAdapters with Registry ( #22866 )
...
* Refactor: intial commit
* Tests: fixes tests
* Refactor: adds stricter typings
2020-03-23 15:33:17 +01:00
Hugo Häggmark
9af04a49ea
Variables: replaces UUID with name for a more performant lookup in TemplateSrv ( #22858 )
...
* Refactor: renames uuid to id
* Refactor: misc renames
* Refactor: fixes renaming of variable
* Refactor: changes method accessed by templateSrv
* Refactor: fixes for NEW_VARIABLE_ID
* Refactor: rename flow refactor
* Tests: adds missing reducer and action tests
* Refactor: keeping tests consitent
* Chore: reorder imports
* Chore: removes uuid package
* Refactor: fixes imports
2020-03-23 13:45:08 +01:00
Hugo Häggmark
fb789e8398
Variables: migrates interval variable type to React/Redux ( #22797 )
...
* Feature: migrates interval variable type to React/Redux
2020-03-16 13:45:51 +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