Kristin Laemmert
701f6d5436
UserService: use the UserService instead of calling sqlstore directly ( #55745 )
...
* UserService: update callers to use the UserService instead of calling sqlstore directly
There is one major change hiding in this PR. UserService.Delete originally called a number of services to delete user-related records. I moved everything except the actual call to the user table, and moved those into the API. This was done to avoid dependencies cycles; many of our services depend on the user service, so the user service itself should have as few dependencies as possible.
2022-09-27 07:58:49 -04:00
Tania
4f6c2d35c2
Chore: Update latest.json to 9.2.0-beta1 ( #55811 )
2022-09-27 11:52:55 +00:00
Hamas Shafiq
62046449d2
Tempo: Add a placeholder for the Limit field under the Search tab ( #55557 )
2022-09-27 12:27:40 +01:00
Tima Gixe
69f8b32dc0
Storybook: add controls to Segment
story ( #55264 )
2022-09-27 12:19:00 +01:00
Grot (@grafanabot)
da7797014a
ReleaseNotes: Updated changelog for 9.2.0-beta1 ( #55788 )
...
* ReleaseNotes: Updated changelog and release notes for 9.2.0-beta1
* Remove release notes
Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com>
2022-09-27 13:16:53 +02:00
idafurjes
d8cd30d22a
Chore: Remove DeleteOrg and UpdateOrgAddress from sqlstore ( #55795 )
...
* Chore: Remove DeleteOrg and UpdateOrgAddress from sqlstore
* Remove commented out methods
2022-09-27 12:30:10 +02:00
Gábor Farkas
d1375d31cd
devenv: loki: remove unused devenv-config ( #55752 )
...
* devenv: jaeger: add it's own copy of promtail-config
* devenv: removed unused loki config
2022-09-27 11:58:08 +02:00
Martin Lehmann
85c26ea908
Alerting: Fix a typo in alerting rule annotation docs ( #55730 )
2022-09-27 10:56:22 +01:00
Laura Fernández
6b6882c141
Navigation: Align landing pages with designs ( #55749 )
2022-09-27 11:16:29 +02:00
Piotr Jamróz
becdf10f0e
Glue: Add DB migration & support provisioning for user-defined correlations config ( #55560 )
...
* Allow provisioning correlation config
* Simplify code
* Fix reading correlations test
* Fix linting errors
* Fix linting errors
* remove simpleJson
* Clean up
* Fix tests
* Update swagger docs
* Fix linting
* Fix linting
* Clean up swagger definitions
Co-authored-by: Elfo404 <me@giordanoricci.com>
2022-09-27 11:08:02 +02:00
George Robinson
a49fcbdbbc
Alerting: Add frames for all queries and expressions ( #55609 )
...
This commit is one of two commits to make the data frames for all queries and expressions in an alert rule available to the state package for rendering a graph. It renames Result to Condition, and creates an additional field called
Results that is a map of Ref ID to data.Frames.
2022-09-27 10:05:29 +01:00
Laura Fernández
4544494058
A11y: enable rule jsx-a11y/aria-role ( #55760 )
2022-09-27 10:55:16 +02:00
idafurjes
2bfd26249b
Chore: Remove methods from store interface ( #55765 )
...
* Chore: Remove methods from store interface
* Fix api tests
* Remove sqlstore methods, add org store tests, add GetOrgUsers to org store interface
* Fix lint
* Remove debug logs
* Remove commented out methods
2022-09-27 10:34:31 +02:00
Jimmie Han
708225f69f
feat: add tracesToMetrics span time shift options ( #54710 ) ( #55335 )
2022-09-27 09:30:33 +01:00
Giordano Ricci
4cd4bc84b5
Fix: use type=button in editor ( #55731 )
2022-09-27 09:20:23 +01:00
Christopher Moyer
2bbc7c40e9
Docs: first draft of share panel with support docs ( #55170 )
2022-09-26 13:28:10 -07:00
Alexander Emelin
55aae79744
GRPC Server: Add gRPC server service ( #47849 )
...
Co-authored-by: Todd Treece <todd.treece@grafana.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-09-26 16:25:34 -04:00
Alexander Weaver
f11495a4c3
Alerting: Remove dead functionality from alert instance store ( #55774 )
...
* Update tests to use ListAlertInstances
* Drop the actual methods rather than just updating tests
2022-09-26 14:38:53 -05:00
Alexander Weaver
a00879ae21
Alerting: Refactor store to not export its own interface for InstanceStore, delete dead dependency injection ( #55772 )
...
* Add consumer-side store interface to state manager
* Remove dead dependency
* Delete dead dependency in API struct
* Delete store-layer InstanceStore interface
* Move fake for state's InstanceStore interface to state package
2022-09-26 13:55:05 -05:00
Alexander Weaver
bd6a5c900f
Alerting: Extract ticker into shared package ( #55703 )
...
* Move ticker files to dedicated package with no changes
* Fix package naming and resolve naming conflicts
* Fix up all existing references to moved objects
* Remove all alerting-specific references from shared util
* Rename TickerMetrics to simply Metrics
* Rename base ticker type to T and rename NewTicker to simply New
2022-09-26 12:35:33 -05:00
Andreas Christou
53c61b49bf
AzureMonitor: Add region params ( #55763 )
...
* Ensure region params are included
* Fix betterer results change
2022-09-26 12:56:18 -04:00
idafurjes
846a4510b4
Chore: Use org service methods ( #55738 )
...
* Chore: Use org service methods
* Fix loginservice test
* User Serach from org service
* Fix test
2022-09-26 18:53:17 +02:00
Yuriy Tseretyan
29fdbf0354
Alerting: Refactor webhook notifier to use encoding/json to parse settings instead of simplejson ( #55517 )
...
* update webhook to use json marshaller
* make maxAlerts to be interface{}
2022-09-26 12:51:58 -04:00
owensmallwood
64dd9a0898
Adds docker block for clickhouse ( #55702 )
...
Adds clickhouse docker-compose block
2022-09-26 10:44:25 -06:00
Josh Hunt
00a90d3255
Chore: Regen swagger spec ( #55750 )
...
* Chore: Regen swagger spec
* Regenerate swagger after enteprise fix
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2022-09-26 12:37:27 -04:00
kay delaney
4d1b422b25
Chore: Remove empty and leftover files ( #55757 )
2022-09-26 11:33:07 -04:00
Dominik Prokop
70f48cc725
Library panels: Add backend route ( #55746 )
2022-09-26 08:27:26 -07:00
sam boyer
e2ff875976
codegen: Introduce TS codegen veneer ( #54816 )
...
* Split all named types out into defs, etc.
* Use latest cuetsy, refactor generators accordingly
* Return AST type from plugin TS generator
* Near-complete checkin of TS veneer code generator
* First full completed pass
* Improve the attribute name
* Defer use of the dashboard veneer type to follow-up
* Remove dummy index, prettier on veneer
* Fix merge errors in gen.go
* Add match field to SpecialValueMap
* Fix backend lint errors
2022-09-26 11:26:18 -04:00
Christopher Moyer
f8240e4b0a
Docs: Refactors best practices and creates Build a dashboard section in the docs ( #55101 )
...
* starts refactor
* corrects broken relrefs
2022-09-26 10:07:24 -05:00
Marcos Vinicius
f4d7a6d869
Elasticsearch: Rename public/app/plugins/datasource/elasticsearch/elastic_response.ts to follow convention ( #55533 )
...
* Elasticsearch: Rename public/app/plugins/datasource/elasticsearch/elastic_response.ts to follow convention
* undo changes in this file
* fix import types
2022-09-26 16:53:25 +02:00
GitStart
ac875a1329
Loki: Remove any from public/app/plugins/datasource/loki/live_streams.test.ts ( #55545 )
...
Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com>
Co-authored-by: Nitesh Singh <nitesh.singh@gitstart.dev>
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>
Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com>
Co-authored-by: Murilo Amaral <87545137+MuriloAmarals@users.noreply.github.com>
Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com>
Co-authored-by: Júlio Piubello da Silva Cabral <julio.piubello@gitstart.dev>
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com>
Co-authored-by: Nitesh Singh <nitesh.singh@gitstart.dev>
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>
Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com>
Co-authored-by: Murilo Amaral <87545137+MuriloAmarals@users.noreply.github.com>
Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com>
Co-authored-by: Júlio Piubello da Silva Cabral <julio.piubello@gitstart.dev>
2022-09-26 16:42:53 +02:00
Gilles De Mey
9aa61ddd0e
Alerting: Add threshold expression ( #55102 )
2022-09-26 16:05:44 +02:00
Emil Tullstedt
f7a3e50b23
UsageStats: Add traces when sending usage stats ( #55474 )
2022-09-26 15:10:54 +02:00
Giordano Ricci
d07abdd23c
Correlations: Only return correlation for which both source and target datasources exist ( #55454 )
...
* Correlation: only return correlation for which both source and targe ds exist
* add test
2022-09-26 14:05:04 +01:00
Torkel Ödegaard
018733dd24
PluginDetails: Make plugin details page look good in topnav ( #55571 )
...
* PluginDetails: Make plugin details page look good in topnav
* Minor style tweak aligning things
* minor refactoring where I moved the logic to decide the default tab into its own hook.
* refactor(plugindetails): first pass at using navmodel for usePluginDetailsTabs hook
* refactor(plugindetails): move "reset page when uninstalling plugin" to installcontrols
this prevents a user from seeing a blank page if they uninstall an app plugin whilst viewing a
config page
* refactor(plugindetails): remove usage of toIconName and reduce nested if
* Trying to fix tests
* minor fix
* test(plugindetails): update selectors causing failing tests
* chore(plugindetails): remove commented out test code
* test(plugindetails): clean up - remove unnecesary usage of waitFor
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-09-26 15:04:07 +02:00
Ashley Harrison
1a830e6f45
don't add folder breadcrumb if there is no folderUid ( #55739 )
2022-09-26 14:02:50 +01:00
Gábor Farkas
d8b4f776aa
Logs: Allow collapsing the logs volume histogram ( #52808 )
...
* logs: Allow disabling the logs volume histogram
* removed unnecessary code
* refactor: adjusted prop-name
* refactor: simplified code
* refactor: more readable code
* refactor: better naming
* refactor: better naming
* only unsubscribe when disabling the UI
* revert visual change
* re-apply visual change
This reverts commit 7fda5c197f
.
* smoother transition
* adjusted visual
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
* logs: top-gap reduced
* added feature tracking
* removed not-working feature-tracking property
* lint fix
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2022-09-26 14:28:12 +02:00
Gábor Farkas
2efd7fa481
Elasticsearch: Reuse http client in the backend ( #55172 )
...
* elastic: backend: reuse http client
* fixed lint error
2022-09-26 14:27:46 +02:00
Ivana Huckova
c0ecdf6783
Loki: Redesign and improve query patterns ( #55097 )
...
* WIP
* WIP
* Query patterns: Redesign and improve feature
* Remove duplicated pattern
* Remove empty line
* Refactor
* Add tests
* Update docs and e2e test
* Update public/app/plugins/datasource/loki/querybuilder/LokiQueryModeller.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com>
* Update public/app/plugins/datasource/loki/querybuilder/LokiQueryModeller.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com>
* Update public/app/plugins/datasource/loki/querybuilder/LokiQueryModeller.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com>
* Use capitalize
* Refactor to use QueryPatternsCard component
* Update public/app/plugins/datasource/loki/querybuilder/LokiQueryModeller.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com>
* Update feature tracking for v2
* QueryPatternsCard: Remove unnecessary key
* Update naming for card
* Mock reportInteraction in tests
Co-authored-by: Matias Chomicki <matyax@gmail.com>
2022-09-26 14:03:13 +02:00
Sven Grossmann
231de5a32f
devenv: change default elasticsearch datasources ( #55479 )
...
* devenv: change default elasticsearch datasources
* remove metrics ds
* updated datasources
2022-09-26 13:00:29 +02:00
ying-jeanne
70c2a31513
move models of dashboard thumbs into its package ( #55729 )
2022-09-26 12:37:34 +02:00
Tania
40e6ac8fc0
Update whats new ( #55726 )
2022-09-26 12:24:57 +03:00
renovate[bot]
fc7727430e
Update dependency html-loader to v4.2.0 ( #55655 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-26 10:24:03 +01:00
renovate[bot]
8bc8778287
Update dependency css-minimizer-webpack-plugin to v4.1.0 ( #55619 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-26 10:22:59 +01:00
Maksim Nabokikh
d1e50580a5
Add the file label to dashboard provisioning errors ( #53282 )
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2022-09-26 10:57:37 +02:00
idafurjes
178cd0a232
Use OrgUser method from org service ( #55674 )
...
* Use OrgUser method from org service
* Use GetOrgUser from org service
2022-09-26 10:27:38 +02:00
Nathan Marrs
15de96286a
Canvas: Add edit option to context menu for elements with an edit mode ( #55697 )
2022-09-23 15:43:34 -04:00
Michael Mandrus
f8bde4df09
Public Dashboards: Add Grafana logo to public dashboards ( #55641 )
...
* add floating footer logo to pubdash pages
* make it a link
* fix typo
* use rem instead of pixels
* Update public/app/features/dashboard/components/PubdashFooter/PubdashFooter.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update public/app/features/dashboard/components/PubdashFooter/PubdashFooter.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update public/app/features/dashboard/components/PubdashFooter/PubdashFooter.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update public/app/features/dashboard/components/PubdashFooter/PubdashFooter.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* PR feedback
* add todo
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2022-09-23 14:32:34 -04:00
Artur Wierzbicki
af9e58eeeb
Search: fix cache in the frontend search engine ( #55681 )
2022-09-23 10:13:14 -07:00
Kevin Minehart
2fadeeff4c
CI: move grabpl package
command to pkg/build
( #55651 )
...
* add grabpl package
* update .drone.yml
* resolve lint errors
2022-09-23 11:49:07 -05:00