grafana/pkg
Eric Leijonmarck 9d6ab92e39
Service accounts: Remove Add API keys buttons and remove one state of migrating for API keys tab (#63411)
* add: hide apikeys tab on start

* make use of store method

* added hiding of apikeys tab for new org creation

* missing err check

* removed unused files

* implemennted fake to make tests run

* move check for globalHideApikeys from org to admin

* refactor to remove the fake

* removed unused method calls for interface

* Update pkg/services/serviceaccounts/manager/service.go

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* Update pkg/services/serviceaccounts/manager/service.go

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* remove the checkglobal method

* removed duplicate global set const

* add count of apikeys for performance

* remove apikeys adding in UI

* added back deleted file

* added comment on component

* changed wording and copy for hiding and migrating service accounts

* refactor: remove migrationstatus in front/backend

This removes the migrationstatus state from the UI in favor of only
looking at the number of API keys to determine what to show to the user.
This simplifies the logic and makes less calls to the backend with each
page load. This was called both on the API keys page and the Service
accounts page.

- removes the state of migrationstatus from the UI
- removes the backend call
- removes the backend endpoint for migrationstatus

* Update pkg/services/apikey/apikeyimpl/xorm_store.go

Co-authored-by: Karl Persson <kalle.persson@grafana.com>

* changes the contet to also be primary

* change id of version for footer component

---------

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2023-03-01 15:34:53 +00:00
..
api API: Enable serving Swagger UI by default and add docs and guidelines (#63489) 2023-03-01 16:36:37 +02:00
build NPM: Stop using the folder path before the name path (#63851) 2023-02-28 07:57:29 -05:00
bus Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
cmd grafana-cli: update plugins ls command (#63492) 2023-02-22 09:24:13 +01:00
codegen Chore: Update oapi-codegen library (#62962) 2023-02-21 12:34:24 +01:00
components Loki: Push support for multi-tenancy mode (#60866) 2023-01-23 16:24:22 +01:00
cuectx kindsys: Fix CUE code generation on Windows (#62812) 2023-02-02 15:06:55 -05:00
events Alerting: Update rules version when folder title is updated (#53013) 2022-08-01 19:28:38 -04:00
expr Chore: Rename Id to ID in alerting models (#62777) 2023-02-02 17:22:43 +01:00
extensions Update dskit to the latest main (#62616) 2023-01-31 19:05:49 +00:00
ifaces/gcsifaces Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
infra Chore: Let wire inject prometheus.Registerer (#62195) 2023-02-28 16:12:23 +01:00
kinds Chore: Update oapi-codegen library (#62962) 2023-02-21 12:34:24 +01:00
kindsys Logs Panel: Generate types from schema (#63716) 2023-02-27 13:56:35 +02:00
login LDAP: Move LDAP globals to Config (#63255) 2023-02-10 19:01:55 +01:00
middleware API: Cache-Control (browser caching) for datasource resources: part 2 (#63060) 2023-02-27 15:55:22 -05:00
mocks/mock_gcsifaces Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
models Chore: Move library elements models to library elements service (#62507) 2023-02-01 17:32:05 +01:00
plugins Plugins: Introduce plugin package specific logger (#62204) 2023-02-28 16:10:27 +01:00
registry Schemas: Generate CRDs for core kinds (#62641) 2023-02-01 09:08:26 -08:00
server Chore: Let wire inject prometheus.Registerer (#62195) 2023-02-28 16:12:23 +01:00
services Service accounts: Remove Add API keys buttons and remove one state of migrating for API keys tab (#63411) 2023-03-01 15:34:53 +00:00
setting Datasources: Add user_agent header customization for outgoing HTTP requests (#63769) 2023-02-28 14:10:05 +01:00
tests Profiling: Enable flame graph & Phlare/Parca data sources for all users (#63488) 2023-03-01 11:32:39 +00:00
tsdb Elasticsearch: Implement processing of logs query results in backend (#63647) 2023-03-01 05:50:56 -05:00
util Chore: Upgrade Go to 1.20.1 and Alpine to 3.17 (#63639) 2023-02-27 14:50:32 +01:00
web Chore: Fix goimports grouping (#62423) 2023-01-30 08:25:58 +00: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.