Hugo Häggmark
dbec2b02fd
Variables: move state tree into a keyed state ( #44642 )
...
* Variables: move state tree into a keyed state
* Update public/app/features/variables/state/transactionReducer.ts
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
* Chore: fix prettier error
* Chore: renamed slices and lastUid
* Chore: rename toUidAction
* Chore: rename dashboardVariableReducer
* Chore: rename state prop back to templating
* Chore renames variable.dashboardUid
* Chore: rename toDashboardVariableIdentifier
* Chore: rename getDashboardVariable
* Chore: rename getDashboardVariablesState
* Chore: rename getDashboardVariables
* Chore: some more renames
* Chore: small clean up
* Chore: small rename
* Chore: removes unused function
* Chore: rename VariableModel.stateKey
* Chore: rename KeyedVariableIdentifier.stateKey
* user essentials mob! 🔱
* user essentials mob! 🔱
* user essentials mob! 🔱
* user essentials mob! 🔱
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: kay delaney <kay@grafana.com>
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-02-18 06:06:04 +01:00
Josh Hunt
6211ca4d3d
Chore: Move variable field selectors to data-testid ( #44801 )
...
* Chore: Move variable field selectors to data-testid
* Fix data source variable editor selector
* fix test
2022-02-04 11:55:19 +11:00
kay delaney
bad048b7ba
Performance: Standardize lodash imports to use destructured members ( #33040 )
...
* Performance: Standardize lodash imports to use destructured members
Changes lodash imports of the form `import x from 'lodash/x'` to
`import { x } from 'lodash'` to reduce bundle size.
* Remove unnecessary _ import from Graph component
* Enforce lodash import style
* Fix remaining lodash imports
2021-04-21 09:38:00 +02: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
Torkel Ödegaard
7f6229494d
Babel: Target more modern browsers, updates browserlistrc ( #32573 )
...
* Babel: Target more modern browsers, updates browserlistrc
* Updates
* Fixed circular dependencies, grafana booted
2021-04-01 10:32:00 +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
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
fb622650f3
Variables: Fixes Constant variable persistence confusion ( #29407 )
...
* 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
2020-12-01 15:02:49 +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
b09b49fb37
e2e: creates a separate package for selectors ( #23858 )
...
* Initial commit
* Chore: fixes after merge
* Chore: removes todos
* Chore: uncomment test
* Chore: adds missing externals to rollup config
* Refactor: selectors is master for everything
* Docs: updates Docs
* Chore: adds e2e-selectors to publish
2020-04-27 09:09:05 +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