Andres Martinez Gotor
64143ea7d0
GoogleCloudMonitoring: Refactor types ( #58644 )
2022-11-28 09:17:01 +01:00
Sofia Papagiannaki
f5c41ea497
Nested Folders: More API fixes ( #59316 )
...
* Nested Folder: Fix create, use camel case for JSON properties
* Fix get parents if the folder does not exist
* Add store test for get parents
2022-11-24 13:28:53 -05:00
Zoltán Bedi
220295d26f
SQL: Return no data response when no rows returned ( #59121 )
2022-11-24 18:01:05 +01:00
Ieva
a8bae3f0b0
Access Control: Clear user's permission cache after resource creation ( #59101 )
...
* refresh user's permission cache after resource creation
* clear the cache instead of reloading the permissions
* don't error if can't clear cache
* fix tests
* fix tests again
2022-11-24 14:38:55 +00:00
Kevin Minehart
45c759eb59
CI: Make the downstream enterprise test a check instead of comments ( #59071 )
2022-11-24 08:17:12 -06:00
Tania
76372a240c
Storage: Add system users service ( #57767 )
...
* Storage: Add access for reporting
* reporting upload user per org
* add some basic comments
* Move reporting storage to enterprise
* add comments
Co-authored-by: Artur Wierzbicki <artur.wierzbicki@grafana.com >
2022-11-24 15:15:32 +01:00
Sofia Papagiannaki
8e6d343981
Nested Folders: Some API fixes ( #59298 )
...
* Nested Folders: Fix API responses
* Fix panic during deletions
* Add test
2022-11-24 08:59:47 -05:00
Sofia Papagiannaki
f3da48bd50
SQLStore: Refactor query retries to use exponential backoff ( #58559 )
2022-11-24 13:12:50 +02:00
Andres Martinez Gotor
276b54fe9d
Azure Monitor: Fix empty/errored responses for Logs variables ( #59240 )
2022-11-24 11:25:40 +01:00
Serge Zaitsev
cff36ea7d8
Chore: Remove unused method from sqlstore ( #59156 )
...
remove unused method
2022-11-24 05:21:06 -05:00
Ryan McKinley
0a7a5b13fe
Heatmap: Remove legacy angular based implementation ( #59249 )
...
remove angular heatmap
2022-11-23 10:46:21 -08:00
Selene
b981a93f9a
Chore: Add Quote function in DB ( #58594 )
...
Added Quote function
2022-11-23 18:40:58 +01:00
Selene
9dc82606db
LoginService: Remove unused sqlstore ( #58595 )
...
Remove unused sqlstore
2022-11-23 17:58:52 +01:00
Shirley
7cec30f0e1
CloudWatch: Fix flaky test assertions ( #59234 )
2022-11-23 17:13:47 +01:00
Karl Persson
83c101dc34
LoginAttempts: Reset attempts on successfull password reset ( #59215 )
...
* LoginAttempt: Add function to reset attemtps for username
* PasswordReset: Reset attempts on successful password reset
2022-11-23 16:57:18 +01:00
Andres Martinez Gotor
9d88e14f01
Azure Monitor Logs: Avoid warning when the response is empty ( #59211 )
2022-11-23 16:15:18 +01:00
Sofia Papagiannaki
ad96b240fc
Nested Folder: Enforce maximum nested folder depth ( #59213 )
...
* Nested Folder: Enforce maximum nested folder depth
* Cleanup
* Fix logging
2022-11-23 09:44:45 -05:00
George Robinson
c9286ff794
Alerting: Remove comments for fixed behavior ( #58951 )
2022-11-23 15:37:15 +01:00
Josh Hunt
ba0ac08465
Internationalization: Enable internationalization by default ( #59204 )
...
* Enable internationalization feature flag by default
* Change i18n feature to beta
* Set i18n feature flag to stable
* update features
2022-11-23 14:23:26 +00:00
Sofia Papagiannaki
0af96936be
Nested Folders: Do not refer to the configuration for checking for the flag ( #59197 )
...
* Nested Folders: Do not refer to the configuration for checking for the flag
Use always features.IsEnabled() instead
* Depend on the interface instead
2022-11-23 06:16:00 -05:00
Jo
d7a652ff7f
User: Optimize signed in user cache management ( #59090 )
...
* only access the cache if a user ID is set
* ignore all negative values
2022-11-23 12:04:38 +01:00
Yann Vigara
f1ef63791a
Fix #58598 X-ID-Token header missing on Loki Datasource ( #58784 )
...
* Fix #58598 X-ID-Token header missing on Loki Datasource
* Remove unecessary continue statements
* Add getAuthHeadersForCallResource unit tests
* Fix test and switch statement issues introduced during merge
2022-11-23 11:31:50 +01:00
idafurjes
054d87e52e
Chore: Remove DeleteUser from sqlstore ( #59180 )
...
* Remove DeleteUser from sqlstore
* Use Delete instead of DeleteUser
* Remove unused method
2022-11-23 11:15:48 +01:00
Ashley Harrison
8761a71da2
Navigation: use correct id to find cloud access policies page ( #59123 )
...
use correct id to find cloud access policies page
2022-11-23 10:01:57 +00:00
Serge Zaitsev
c2e847d0b0
Chore: Remove createorgwithmember ( #59161 )
...
remove createorgwithmember
2022-11-23 10:37:04 +01:00
George Robinson
7376eee6ff
Alerting: Support From and To when taking screenshots ( #59166 )
...
This commit adds support for the From and To parameters that set the
time range for the graph. The default is 6 hours, which can sometimes
be too large of a time range.
2022-11-23 09:28:24 +00:00
Serge Zaitsev
245a59548c
Chore: Remove DeleteOrg method from sqlstore ( #59162 )
...
remove DeleteOrg method from sqlstore
2022-11-23 10:22:52 +01:00
Sofia Papagiannaki
02b6b09121
Nested Folders: Set user in the API level ( #59148 )
2022-11-23 11:13:47 +02:00
juanicabanas
a93b8a03cb
PublicDashboards: Orphaned public dashboard deletion script added ( #57917 )
...
* Adds migration to remove orphaned public dashboards.
Co-authored-by: Jeff Levin <jeff@levinology.com >
2022-11-22 13:11:06 -09:00
Serge Zaitsev
b875ca08c6
SQLStore: Make addOrgUser private ( #59142 )
...
make addOrgUser private
2022-11-22 17:02:39 +00:00
Dan Cech
de99ce139c
Server: Switch from separate server & cli to a unified grafana binary ( #58286 )
...
* avoid the need for a second bulky binary for grafana-cli
* look for grafana-server in $PATH as well as same directory
* implement unified "grafana" command
* update dockerfiles, fix grafana-cli -v
* update packaging to work with single binary
- add wrapper scripts for grafana and grafana-server
- update and sync package files
- implement --sign flag of build package command
- stop packaging scripts folder, they are not useful for end users
- add support for --configOverrides in server command
- remove unused nfpm.yaml config file
* windows support
2022-11-22 11:53:43 -05:00
Ashley Harrison
824a562b03
Navigation: share logic between buildBreadcrumbs and usePageTitle ( #58819 )
...
* simplify usePageTitle logic a bit
* use buildBreadcrumbs logic in usePageTitle
* always add home item to navTree, fix some tests
* fix remaining unit tests
2022-11-22 16:48:07 +00:00
Guilherme Caulada
414df842b8
Build: Add command to publish to AWS Marketplace through the pipeline ( #59068 )
...
* Remove generic variables from publish github action
* Create publish aws cmd to automate aws releases
* Add tests to publish aws cmd
* Replace fmt with log for prints
* Remove unnecessary type assertions
* Readd mistakenly removed go package
* Replace log with fmt for prints due to conflicts
* Update github tests to conform with casing
2022-11-22 13:04:14 -03:00
Jean-Philippe Quéméner
41b3398eb4
Alerting: Enable interpolation for notification policies in file provisioning ( #58956 )
2022-11-22 16:54:24 +01:00
Shirley
c43e1a721f
CloudWatch: fix custom namespace for listing dimension keys, refactor to non-pointer types, add test assertions, rename packages ( #59106 )
...
Co-authored-by: Erik Sundell <erik.sundell87@gmail.com >
2022-11-22 15:59:11 +01:00
Serge Zaitsev
7ff41cde9a
Chore: Fix status codes for nested folders ( #59087 )
...
* check for errutil errors first
* a better fix
2022-11-22 16:06:39 +02:00
sam boyer
42baad837a
codegen: Refactor core jennies for reusability, add version-picking metajennies ( #58995 )
...
* Add each-major jenny, refactor TS jenny for it
* Introduce LatestJenny, refactor GoTypesJenny for it
2022-11-22 15:00:29 +01:00
Sven Grossmann
08e87a217c
Loki: Add gzip compression to resource calls ( #59059 )
...
* Loki: Add compression to `callResource`
* add missing tests
* fix formatting
2022-11-22 14:02:30 +01:00
Marcos de Oliveira
91582ba03d
LDAP: Make LDAP attribute mapping case-insensitive ( #58992 )
...
* Make LDAP attribute mapping case-insensitive
* Add test case with attribute name different from schema's
* Add fix to getArrayAttribute also and add test with mismatched letter
case.
* Update pkg/services/ldap/helpers.go
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com >
2022-11-22 13:47:53 +01:00
Denis Limarev
4d8287b319
Performance: add preallocation for some slice/map ( #57860 )
...
This change preallocates slices and maps where the size of the data is known before the object is created.
Co-authored-by: Joe Blubaugh <joe.blubaugh@grafana.com >
2022-11-22 20:24:36 +08:00
Josh Hunt
460be70261
Internationalization: Change locale preference to language ( #58359 )
...
* backend locale -> language
* frontend locale -> language
* sample.ini and tests
* fix few last locale -> language
* fix few last locale -> language
2022-11-22 12:18:34 +00:00
Sofia Papagiannaki
9926931d40
Nested Folder: Include URL into the GET response ( #59099 )
2022-11-22 07:04:09 -05:00
Karl Persson
189bf102cf
LoginAttempt: Move logic around login attempts into the service ( #58962 )
...
* LoginAttemps: Remove from sqlstore mock
* LoginAttemps: Move from models package to service package
* LoginAttemps: Implement functionallity from brute force login in service
* LoginAttemps: Call service
* LoginAttempts: Update name and remove internal functions
* LoginAttempts: Add tests
* LoginAttempt: Add service fake
* LoginAttempt: Register service as a background_services and remove job
from cleanup service
* LoginAttemps: Remove result from command struct
* LoginAttempt: No longer pass pointers
2022-11-22 11:37:18 +01:00
Karl Persson
062c5b805c
Auth: Merge ActiveAuthTokenService into UserAuthTokenService ( #59032 )
...
* Auth: Merge UserTokenService and ActiveAuthTokenService
* Auth: Rename function
2022-11-22 10:58:59 +01:00
linoman
f8f61c1a69
Auth: Add expiry date for service accounts access tokens ( #58885 )
...
* Add new configuration option for SA tokens
* Add new expiry date option to frontend components
* Add backend validation
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
2022-11-22 10:08:40 +01:00
Sasha Melentyev
c02003af3c
Refactor time durations ( #58484 )
...
This change uses `time.Second` in place of `1000 * time.Millisecond` and `time.Minute` in place of `60*time.Second`.
2022-11-22 15:09:15 +08:00
sam boyer
6ac43c9cb4
kindsys: Return Decl from Kinds ( #59075 )
...
* kindsys: Return Decl from Kinds
* Add funcs to extract DeclForGen from kinds
2022-11-21 17:50:06 -05:00
Bart Peeters
57d6adbc7c
Alerting: Support Prometheus durations in Provisioning API ( #58293 )
...
Provisioning API should support Prometheus durations
2022-11-21 18:58:25 +00:00
Dimitris Sotirakis
44402ff726
CI: Split enterprise2 pipelines ( #57997 )
...
* Add publishimages_enterprise2.go file
* Add push.go
* Modify build files
* Modify starlark files
* Remove promotion pipeline
* Remove unused args
* Handle tag for custom events
2022-11-21 20:06:00 +02:00
ying-jeanne
ba8124ef93
Chore: Fix SQLx failure when starting the server with newDBLibrary enabled ( #58985 )
...
change the weekstart to pointer
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
2022-11-21 16:53:56 +02:00