grafana/pkg
Leonor Oliveira 9baf96dbd2
Storage: dualwriter update implementation (#85844)
* Add update methods for the dual writer

* improve errors

* [WIP] add tests for the update method

* Move example package to its own package so it can be used by the rest package. Finish tests

* Add codeowners

* Use Pod as a dummy resource

* :int

* Lint

* [REVIEW] rename var

* [REVIEW] don't rely on legacy storage at all in mode4

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* [REVIEW] improve comment

* Update pkg/apiserver/rest/dualwriter_mode1.go

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

* [REVIEW] improve mode3

* Lint

* Move test files

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Lint

* Update pkg/apiserver/rest/dualwriter_mode4_test.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Fix error

* Lint

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Don't set the flag to true as updatedObj creates an object in case it's not found

* Lint

* Lint

* Add tests on update

* Lint

---------

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
Co-authored-by: Dan Cech <dcech@grafana.com>
2024-04-17 08:32:34 -06:00
..
api User: use update function for password updates (#86419) 2024-04-17 15:24:36 +02:00
apimachinery K8s: Add slog wrapper (#84680) 2024-04-09 18:39:25 +03:00
apis Scopes: Add basic integration tests (#85351) 2024-03-29 16:12:28 +02:00
apiserver Storage: dualwriter update implementation (#85844) 2024-04-17 08:32:34 -06:00
build K8s: Add slog wrapper (#84680) 2024-04-09 18:39:25 +03:00
bus Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
cmd User: use update function for password updates (#86419) 2024-04-17 15:24:36 +02:00
codegen Core: Remove thema and kindsys dependencies (#84499) 2024-03-21 11:11:29 +01:00
components Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
events Alerting: Update rules version when folder title is updated (#53013) 2022-08-01 19:28:38 -04:00
expr SSE: Threshold expression to use simple functions (#86062) 2024-04-16 13:35:41 -04:00
extensions K8s: Add slog wrapper (#84680) 2024-04-09 18:39:25 +03:00
generated K8s: update hack codegen script (#81216) 2024-01-25 12:01:09 -08:00
ifaces/gcsifaces Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
infra Tracing: Allow otel service name and attributes to be overridden from env (#85937) 2024-04-11 15:18:46 +02:00
kinds Schemas: Replace registry generation and github workflow (#83490) 2024-03-13 18:05:21 +02:00
login/social samlsettings: api integration (#84300) 2024-03-25 10:54:45 +01:00
middleware Chore: Remove repetitive words (#84132) 2024-03-11 08:55:18 -04:00
mocks/mock_gcsifaces Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
models Auth: Add empty role definition (#64694) 2023-07-06 15:40:06 +02:00
modules Storage Api: Add metrics (#85316) 2024-04-08 08:35:01 -06:00
plugins Revamp plugin loading error management (#85939) 2024-04-11 16:18:04 +02:00
promlib Prometheus: Add BE support for Adhoc Filters (#85969) 2024-04-16 16:56:50 +03:00
registry Feature Flags: use FeatureToggles interface where possible (#85131) 2024-04-04 12:22:31 -04:00
server Storage: Watch tests (#85496) 2024-04-08 11:42:12 -04:00
services IAM - Fix error messages for resource permissions endpoints (#85773) 2024-04-17 08:53:28 -05:00
setting Storage Api: Adds traces (#85391) 2024-04-16 08:30:51 -06:00
tests Alerting: Fix simplified routes '...' groupBy creating invalid routes (#86006) 2024-04-16 12:14:39 -04:00
tsdb mysql additional decoupling steps (#86168) 2024-04-16 11:50:41 +02:00
util Unified Storage: added pkg/util/ring package to handle queueing of notifications (#84657) 2024-04-11 19:32:31 -03:00
web Image Rendering: Add settings for default width, height and scale (#82040) 2024-02-26 13:27:34 +01:00
README.md Chore: Move all backend contribution documents to a single directory (#61140) 2023-01-11 11:16:52 +01:00
ruleguard.rules.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00

This directory contains the code for the Grafana backend.

The contributor documentation for Grafana's backend is in /contribute/backend/README.md.