1. 04 Jun, 2020 1 commit
    • Templating: removes old Angular variable system and featureToggle (#24779) · 00a9af00
      * 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
      Hugo Häggmark committed
  2. 24 Mar, 2020 1 commit
  3. 23 Mar, 2020 2 commits
    • Variables: replaces UUID with name for a more performant lookup in TemplateSrv (#22858) · 9af04a49
      * 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
      Hugo Häggmark committed
    • Variables: migrates ad hoc variable type to react/redux. (#22784) · a7a14064
      * 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
      
      * boilerplate that will be replaced by real code.
      
      * added old editor template.
      
      * added initial version of ad hoc editor.
      
      * added working (apart from add) version of the editor.
      
      * Added placeholder for picker.
      
      * Have a working UI. Need to connect it so we refresh the variables on changes.
      
      * variable should be updated now.
      
      * removed console.log
      
      * made the url work.
      
      * cleaned up the adapter.
      
      * added possiblity to create filter directly from table.
      
      * moved infotext from general reducer to extended value of adhoc.
      
      * fixed strict null errors.
      
      * fixed strict null errors.
      
      * fixed issue where remove was displayed before being added.
      
      * fixed issue with fragment key.
      
      * changed so template_src is using the redux variables.
      
      * minor refactorings.
      
      * moved adhoc picker to adhoc variable.
      
      * adding tests for reducer and fixed bug.
      
      * added tests or urlparser.
      
      * added tests for ad hoc actions.
      
      * added more tests.
      
      * added more tests.
      
      * fixed strict null error.
      
      * fixed copy n pase error.
      
      * added utilit for getting new variable index.
      
      * removed console.log
      
      * added location to reducerTester type and created a module type for it.
      
      * changed so we only have one builder pattern.
      
      * fixed tests to use static expected values.
      
      * fixed strict errors.
      
      * fixed more strict errors.
      
      Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
      Marcus Andersson committed