grafana/pkg/apiserver/rest
Leonor Oliveira 0a2c5065a0
Choose mode. Turn DualWriter into a real interface. Better Logging (#87291)
* Choose mode. Add log field on top level dualwriter

* Add logs

* Turn DualWriter into a full interface. Fix tests

* Lint

* Use struct for dualWriter interface

* Use struct

* Default should be legacyStore for all entities

* Fix test. Get rid of extra concrete type

* Remove comment

* Add comment

* Temp set dualwriter mode 2 for playlists while configs are not in place

* Add modes type + add comment on what each mode does

* Don't require watcher interface for now

* Use storage implementation on mode 2

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>

* Pass log values to the context

* test

* Update pkg/apiserver/rest/dualwriter_mode3.go

Co-authored-by: Dan Cech <dcech@grafana.com>

---------

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
Co-authored-by: Dan Cech <dcech@grafana.com>
2024-05-06 23:18:28 +02:00
..
dualwriter_mode1_test.go Choose mode. Turn DualWriter into a real interface. Better Logging (#87291) 2024-05-06 23:18:28 +02:00
dualwriter_mode1.go Choose mode. Turn DualWriter into a real interface. Better Logging (#87291) 2024-05-06 23:18:28 +02:00
dualwriter_mode2_test.go Choose mode. Turn DualWriter into a real interface. Better Logging (#87291) 2024-05-06 23:18:28 +02:00
dualwriter_mode2.go Choose mode. Turn DualWriter into a real interface. Better Logging (#87291) 2024-05-06 23:18:28 +02:00
dualwriter_mode3_test.go Choose mode. Turn DualWriter into a real interface. Better Logging (#87291) 2024-05-06 23:18:28 +02:00
dualwriter_mode3.go Choose mode. Turn DualWriter into a real interface. Better Logging (#87291) 2024-05-06 23:18:28 +02:00
dualwriter_mode4_test.go Choose mode. Turn DualWriter into a real interface. Better Logging (#87291) 2024-05-06 23:18:28 +02:00
dualwriter_mode4.go Choose mode. Turn DualWriter into a real interface. Better Logging (#87291) 2024-05-06 23:18:28 +02:00
dualwriter.go Choose mode. Turn DualWriter into a real interface. Better Logging (#87291) 2024-05-06 23:18:28 +02:00
spy_client.go Storage: dualwriter update implementation (#85844) 2024-04-17 08:32:34 -06:00
storage_mocks_test.go Storage: Add mode 2 dual writing improvements (#87204) 2024-05-02 16:06:51 +02:00