3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
grafana/pkg/services
Artur Wierzbicki 6c76aa71e8
Previews: capability check ()
* add SQL migrations

* dashboard previews from sql: poc

* added todos

* refactor: use the same enums where possible

* use useEffect, always return json

* added todo

* refactor + delete files after use

* refactor + fix manual thumbnail upload

* refactor: move all interactions with sqlStore to thumbnail repo

* refactor: remove file operations in thumb crawler/service

* refactor: fix dashboard_thumbs sql store

* refactor: extracted thumbnail fetching/updating to a hook

* refactor: store thumbnails in redux store

* refactor: store thumbnails in redux store

* refactor: private'd repo methods

* removed redux storage, saving images as blobs

* allow for configurable rendering timeouts

* added 1) query for dashboards with stale thumbnails, 2) command for marking thumbnails as stale

* use sql-based queue in crawler

* ui for marking thumbnails as stale

* replaced `stale` boolean prop with `state` enum

* introduce rendering session

* compilation errors

* fix crawler stop button

* rename thumbnail state frozen to locked

* : fix merge conflicts

* : remove thumb methods from `Store` interface

* : clean filepath, defer file closing

* : fix rendering.Theme cyclic import

* : linting

* : linting

* : mutex'd crawlerStatus access

* : added integration tests for `sqlstore.dashboard_thumbs`

* : added comments to explain the `ThumbnailState` enum

* : use os.ReadFile rather then os.Open

* : always enable dashboardPreviews feature during integration tests

* : add /previews/system-requirements API

* : remove sleep time, adjust number of threads

* : review fix: add `orgId` to `DashboardThumbnailMeta`

* : review fix: automatic parsing of thumbnailState

* : update returned json

* : UI changes - dashboard previews sytem req check

* : lint fixes

* : fix tests

* : typo

* : fix getSystemRequirements API: return 200 even if we plugin version is invalid

* : fix getSystemRequirements API: don't return SemverConstraint on error

* : fix getSystemRequirements API

* : fix previews sytem requirements text

* : add `doThumbnailsExist` to repo

* : remove redux api

* : add missing model

* : implement frontedsettings-driven capability check

* : simplify

* : revert test changes

* : add dummy setup settings

* : implicit typing over `FC<Props>`

* : refactor conditionals

* : replace `getText` with a react component

* : fix component interface

* : add onRemove to `PreviewsSystemRequirements` alert

* : add bottom/top margin to previewSystemRequirements modal

* : merge conflict fix

* : remove console.log

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Alexander Emelin <frvzmb@gmail.com>
2022-02-16 21:49:50 +04:00
..
accesscontrol Access control: adding FGAC to annotation GET endpoints and fixed roles () 2022-02-11 15:43:29 -03:00
alerting Alerting: Fix updating notification channels in legacy () 2022-02-11 16:13:51 +00:00
annotations Chore: Replace util.DynMap with structs () 2021-07-01 10:23:33 +02:00
auth Chore: Remove context.TODO() () 2021-12-22 11:02:42 +01:00
cleanup Chore: Remove bus.Dispatch from cleanup service () 2022-02-15 14:56:19 +01:00
contexthandler Chore: Remove bus from quota () 2022-02-10 12:42:06 +01:00
dashboardimport Dashboards: Refactor service to make it injectable by wire () 2022-02-16 14:15:44 +01:00
dashboards Dashboards: Refactor service to make it injectable by wire () 2022-02-16 14:15:44 +01:00
dashboardsnapshots Refactor: Change sqlstore.inTransaction to SQLStore.WithTransactional… () 2022-01-07 17:50:59 +01:00
datasourceproxy Datasource: Fixes storing of secureJSONData when creating/updating datasource () 2022-02-11 15:52:14 +01:00
datasources Datasource: Fixes storing of secureJSONData when creating/updating datasource () 2022-02-11 15:52:14 +01:00
encryption Replace encryption.Service usages by secrets.Service () 2021-11-12 12:16:39 +01:00
featuremgmt Search: add feature flag and basic service () 2022-02-15 10:26:03 -08:00
guardian Rename DispatchCtx to Dispatch () 2021-12-28 17:36:22 +01:00
hooks Migrate to Wire for dependency injection () 2021-08-25 15:11:22 +02:00
kmsproviders FeatureToggls: remove IsFeatureToggleEnabled from SettingsProvider () 2022-02-01 10:24:59 -08:00
ldap LDAP: Use an interface instead of a bus to get group teams () 2022-02-01 12:03:21 +01:00
libraryelements Dashboards: Refactor service to make it injectable by wire () 2022-02-16 14:15:44 +01:00
librarypanels Dashboards: Refactor service to make it injectable by wire () 2022-02-16 14:15:44 +01:00
licensing switch to using featureEnabled for enterprise features () 2022-01-07 15:11:23 -05:00
live ldap debug bus removal () 2022-02-09 11:45:31 +01:00
login ldap debug bus removal () 2022-02-09 11:45:31 +01:00
multildap remove bus from login () 2022-02-09 17:17:09 +01:00
ngalert Dashboards: Refactor service to make it injectable by wire () 2022-02-16 14:15:44 +01:00
notifications Chore: Remove bus from password () 2022-02-03 10:33:46 +01:00
oauthtoken Rename DispatchCtx to Dispatch () 2021-12-28 17:36:22 +01:00
plugindashboards Plugins: Refactor plugin dashboards () 2022-01-28 10:28:33 +01:00
pluginsettings Rename AddHandlerCtx to AddHandler () 2021-12-28 16:08:07 +01:00
provisioning Dashboards: Refactor service to make it injectable by wire () 2022-02-16 14:15:44 +01:00
query Propagate all headers () 2022-01-07 12:45:26 -07:00
queryhistory Query history: Create API to patch comment of query in query history () 2022-02-15 15:43:17 +01:00
quota Update quota service to accept context () 2022-02-10 22:17:50 +01:00
rendering Dash previews: populate crawler queue from SQL query () 2022-02-09 13:23:32 +04:00
schemaloader FeatureFlags: define features outside settings.Cfg (take 3) () 2022-01-26 09:44:20 -08:00
search Chore: Remove bus from Alerting API () 2022-02-04 13:41:15 +01:00
searchusers Auth: implement auto_sign_up for auth.jwt () 2022-01-13 17:15:22 +01:00
searchV2 Search: apply security in before returning results () 2022-02-16 09:47:41 -08:00
secrets Encryption: Add support for data keys re-encryption () 2022-02-03 09:15:38 +01:00
serviceaccounts AccessControl: Add endpoint to get user permissions () 2022-02-11 17:40:43 +01:00
shorturls Migrate to Wire for dependency injection () 2021-08-25 15:11:22 +02:00
sqlstore Previews: capability check () 2022-02-16 21:49:50 +04:00
teamguardian AccessControl: Implement SQL filters for team members filtering () 2022-02-09 17:46:37 +01:00
thumbs Previews: capability check () 2022-02-16 21:49:50 +04:00
updatechecker Plugins: Refactor Grafana and Plugin version update checkers () 2022-01-31 16:06:16 +01:00
validations Migrate to Wire for dependency injection () 2021-08-25 15:11:22 +02:00