Commit Graph

31833 Commits

Author SHA1 Message Date
Ashley Harrison
727a4bd9e4
Navigation: New NavBar designs behind feature toggle (#41045)
* Navigation: Remove plus button behind feature toggle

* Navigation: Add home button behind feature toggle

* Navigation: Move settings/admin to bottom section behind feature toggle

* Navigation: Refactor grafana logo to be a NavBarItem

* Navigation: Create new PluginSection and styling changes to support new sections

* Navigation: Hack to use mobile menu as a mega menu for now

* Navigation: Only render plugin section if there are items

* Navigation: mobile menu is always 100% width if toggle is off

* Navigation: Reset width back to 48 and fix broken css property

* Navigation: Create generic NavBarSection component to reduce repetition

* Navigation: Don't show sublinks for core items

* Navigation: Comments from UX review

* Navigation: Remove mobile menu hack

* Navigation: Unit tests for enrichConfigItems and other minor review comments

* Navigation: Move section logic to backend

* Navigation: Refactor alerting links out into a separate function

* Navigation: More tests for isLinkActive

* Linting...

* Navigation: Create new NavBar component for when feature toggle is enabled
2021-11-02 11:19:18 +00:00
Dimitris Sotirakis
469a5e4a85
Comment out "Queries with new datasource ref object" test (#41187) 2021-11-02 13:09:51 +02:00
Piotr Jamróz
f1837b5742
Elastic: Full range logs volume (#40700)
* Add basic implementation for logs volume

* Fix aggregation

* Move getFieldConfig

* Remove duplicated aggregation logic

* Extra querying logic

* Simplify querying logic

* Update logs volume aggregation tests

* Remove bar max width and width factor

* Clean up

* Skip level aggregation if it's not configured

* Post merge fix for aggregation

* Fix tests

* Clean up the code

* Ensure logs without level are aggregated as unknown category

* Use LogLevel.unknown

* Fix strict TS errors
2021-11-02 11:53:47 +01:00
Jack Westbrook
1767e6aab6
Chore: bump Husky to v7 (#40797)
* chore: bump husky to v7 according to husky migration guide

* chore(renovate): remove husky from list of ignored deps
2021-11-02 11:53:27 +01:00
Jack Westbrook
f2f31f60f2
Chore: Bump rollup and rollup plugins to latest (#40800) 2021-11-02 11:10:32 +01:00
Zoltán Bedi
6675b084bd
Chore: Upgrade grafana-eslint to latest (#41179) 2021-11-02 10:20:41 +01:00
Will Browne
2faf3b6a31
rearrange log statements for log15 (#41137) 2021-11-02 10:20:17 +01:00
Luis Filipe Pessoa
0599b6180f
Changing 'Save' button style to primary (#41144)
Changing 'Save' button style to primary according to Figma design.
2021-11-02 11:08:16 +02:00
Ryan McKinley
d360e48174
MixedDatasource: fix datasource selection after edit (#41178) 2021-11-02 09:48:46 +01:00
Zoltán Bedi
85f2c48448
Toolkit: Don't to show console errors in tests (#41078) 2021-11-02 08:38:46 +01:00
Ryan McKinley
231f17ab20
PanelEditor: remove showCategory on exit (#41174) 2021-11-02 00:33:36 -07:00
Ryan McKinley
340ed4125e
DataSourceWithBackend: implement interpolateVariablesInQueries by default (#41152) 2021-11-02 00:29:52 -07:00
Hugo Häggmark
418059bc23
Variables: Adds change tracking (#41143)
* Variables: Adds change tracking

* Chore: fix strict error

* Chore: removes updating value from isDirty check
2021-11-02 06:26:16 +01:00
dsotirakis
778c860b3c Revert: Remove FocusConvey check 2021-11-01 20:07:28 +02:00
dsotirakis
96541cf8d6 Remove FocusConvey check 2021-11-01 20:02:02 +02:00
An
fb75411ddc
Resource Picker: update design and layout (#41046) 2021-11-01 10:21:43 -07:00
Alexander Emelin
9c160413f6
Live: adopt latest fixes from gin route tree (#41141) 2021-11-01 20:02:03 +03:00
renovate[bot]
c91bfcc1d6
Update dependency date-fns to v2 (#41027)
* Update dependency date-fns to v2

* Chore(dependencies): Update formatting used by date-fns

* kick drone

* Chore: Add parseISO to date strings passed to date-fn methods

* Prettier...

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-11-01 15:39:06 +00:00
Will Browne
8157d3564b
remove println (#41139) 2021-11-01 14:55:07 +00:00
kay delaney
124c3f537f
A11y: Fix misc. fastpass issues (#41088) 2021-11-01 14:45:23 +00:00
Marcus Andersson
d98cb8274c
Docs: Fixed broken link in the plugin migration guide (#41148)
* fixed broken link.

* updated title of link.
2021-11-01 10:15:53 -04:00
Tim Levett
a81ca03302
Tooltips : Add ability to flag anchor tag as external link in a tooltip (#41014)
* sass: add in the option for extneral link color to tooltip anchor tag

* variable editor: change the link in the tool tip to external styling

* fixed class name to be the same as other instances of this
2021-11-01 09:14:53 -05:00
Serge Zaitsev
993c60d36e
Chore: Remove GoConvey dependency (#41146) 2021-11-01 14:56:18 +01:00
renovate[bot]
68c5f43468
Chore(dependencies): Ignore globby until we move to esm modules (#40914)
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-11-01 13:14:37 +00:00
Dimitris Sotirakis
5e813ea454
Add isl and expat libs as tarballs explicitly (#41138) 2021-11-01 15:12:16 +02:00
Will Browne
1f6965e859
fix homepath for enterprise e2e tests (#41140) 2021-11-01 13:48:52 +01:00
Josh Hunt
419c465edf
Grafana-UI: Editor UI components (#41136)
* Grafana-UI: Update theme.spacing to support string value when called with just one arugment

This allows theme.spacing("auto") to be valid

* Grafana-UI: Support width="auto" for Select component

This allows for inline Selects that are sized based on their content,
rather than occupying block-width

* Add toOption for creating Select options to @grafana/data

* Add test util
2021-11-01 12:06:28 +01:00
Serge Zaitsev
7b15cd0ed2
Chore: Refactor GoConvey in provisioning package (#40892)
* refactor goconvey in some provisioning subpackages

* fix goconvey in provisioning/datasources

* remove goconvey from notifiers subpackage

* finally resolve goconvey in dashboards subpackage
2021-11-01 11:31:55 +01:00
Will Browne
b80fbe03f0
Plugins: Refactor Plugin Management (#40477)
* add core plugin flow

* add instrumentation

* move func

* remove cruft

* support external backend plugins

* refactor + clean up

* remove comments

* refactor loader

* simplify core plugin path arg

* cleanup loggers

* move signature validator to plugins package

* fix sig packaging

* cleanup plugin model

* remove unnecessary plugin field

* add start+stop for pm

* fix failures

* add decommissioned state

* export fields just to get things flowing

* fix comments

* set static routes

* make image loading idempotent

* merge with backend plugin manager

* re-use funcs

* reorder imports + remove unnecessary interface

* add some TODOs + remove unused func

* remove unused instrumentation func

* simplify client usage

* remove import alias

* re-use backendplugin.Plugin interface

* re order funcs

* improve var name

* fix log statements

* refactor data model

* add logic for dupe check during loading

* cleanup state setting

* refactor loader

* cleanup manager interface

* add rendering flow

* refactor loading + init

* add renderer support

* fix renderer plugin

* reformat imports

* track errors

* fix plugin signature inheritance

* name param in interface

* update func comment

* fix func arg name

* introduce class concept

* remove func

* fix external plugin check

* apply changes from pm-experiment

* fix core plugins

* fix imports

* rename interface

* comment API interface

* add support for testdata plugin

* enable alerting + use correct core plugin contracts

* slim manager API

* fix param name

* fix filter

* support static routes

* fix rendering

* tidy rendering

* get tests compiling

* fix install+uninstall

* start finder test

* add finder test coverage

* start loader tests

* add test for core plugins

* load core + bundled test

* add test for nested plugin loading

* add test files

* clean interface + fix registering some core plugins

* refactoring

* reformat and create sub packages

* simplify core plugin init

* fix ctx cancel scenario

* migrate initializer

* remove Init() funcs

* add test starter

* new logger

* flesh out initializer tests

* refactoring

* remove unused svc

* refactor rendering flow

* fixup loader tests

* add enabled helper func

* fix logger name

* fix data fetchers

* fix case where plugin dir doesn't exist

* improve coverage + move dupe checking to loader

* remove noisy debug logs

* register core plugins automagically

* add support for renderer in catalog

* make private func + fix req validation

* use interface

* re-add check for renderer in catalog

* tidy up from moving to auto reg core plugins

* core plugin registrar

* guards

* copy over core plugins for test infra

* all tests green

* renames

* propagate new interfaces

* kill old manager

* get compiling

* tidy up

* update naming

* refactor manager test + cleanup

* add more cases to finder test

* migrate validator to field

* more coverage

* refactor dupe checking

* add test for plugin class

* add coverage for initializer

* split out rendering

* move

* fixup tests

* fix uss test

* fix frontend settings

* fix grafanads test

* add check when checking sig errors

* fix enabled map

* fixup

* allow manual setup of CM

* rename to cloud-monitoring

* remove TODO

* add installer interface for testing

* loader interface returns

* tests passing

* refactor + add more coverage

* support 'stackdriver'

* fix frontend settings loading

* improve naming based on package name

* small tidy

* refactor test

* fix renderer start

* make cloud-monitoring plugin ID clearer

* add plugin update test

* add integration tests

* don't break all if sig can't be calculated

* add root URL check test

* add more signature verification tests

* update DTO name

* update enabled plugins comment

* update comments

* fix linter

* revert fe naming change

* fix errors endpoint

* reset error code field name

* re-order test to help verify

* assert -> require

* pm check

* add missing entry + re-order

* re-check

* dump icon log

* verify manager contents first

* reformat

* apply PR feedback

* apply style changes

* fix one vs all loading err

* improve log output

* only start when no signature error

* move log

* rework plugin update check

* fix test

* fix multi loading from cfg.PluginSettings

* improve log output #2

* add error abstraction to capture errors without registering a plugin

* add debug log

* add unsigned warning

* e2e test attempt

* fix logger

* set home path

* prevent panic

* alternate

* ugh.. fix home path

* return renderer even if not started

* make renderer plugin managed

* add fallback renderer icon, update renderer badge + prevent changes when renderer is installed

* fix icon loading

* rollback renderer changes

* use correct field

* remove unneccessary block

* remove newline

* remove unused func

* fix bundled plugins base + module fields

* remove unused field since refactor

* add authorizer abstraction

* loader only returns plugins expected to run

* fix multi log output
2021-11-01 10:53:33 +01:00
Piotr Jamróz
f4282571c7
Chore: Fix NodeGraph useCallback dependencies (#41105) 2021-11-01 10:52:34 +01:00
Will Browne
76d88a6cec
change log level to debug (#41102) 2021-11-01 09:00:00 +00:00
renovate[bot]
134c64f1a5
Update dependency fork-ts-checker-webpack-plugin to v6 (#40891)
* Update dependency fork-ts-checker-webpack-plugin to v6

* Fix compatibility issue

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2021-11-01 09:25:55 +01:00
Nathan Marrs
268c20203b
Canvas: Improve Selection System (#41065) 2021-10-29 14:32:52 -07:00
achatterjee-grafana
161d92e12f
Added note. (#41118) 2021-10-29 15:13:29 -04:00
Ryan McKinley
7319efe077
Dashboard: replace datasource name with a reference object (#33817)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Elfo404 <me@giordanoricci.com>
2021-10-29 10:57:24 -07:00
achatterjee-grafana
61fbdb60ff
Added note about small devices. (#41113) 2021-10-29 13:48:57 -04:00
Giordano Ricci
218aed324f
Tempo: add info message about beut beta features (#41107) 2021-10-29 17:46:46 +02:00
Jesse Weaver
502169baa8
Fix K6 load test script (#38465)
K6 now requires that the path to the load test be prefixed with /.
2021-10-29 09:38:41 -06:00
Yuriy Tseretyan
a1e1a728ad
Alerting: Update references to alertmanager (#40904)
* update module reference for alertmanager
* remove workaround
2021-10-29 10:03:51 -04:00
Gábor Farkas
24db1efa9d
influxdb: influxql: fix table-format data processing with renamed time field (#41052) 2021-10-29 15:49:45 +02:00
Domas
05c18c330f
update alertmanager data source docs (#41040) 2021-10-29 09:16:49 -04:00
Giordano Ricci
506779af98
Chore: explicitly set nodeLinker in yarnrc (#41089) 2021-10-29 13:32:50 +02:00
Marcus Andersson
f349b735fb
CodeEditor: change so the code comments are aligned with our defaults. (#40763) 2021-10-29 13:24:49 +02:00
Tania B
ff086df3b5
Fix decrypting secrets in alerting migration (#41061) 2021-10-29 14:20:07 +03:00
Szymon Szypulski
b9e0a41f5a
Cloudwatch: Add support for AWS/Backup metrics and dimensions (#41077)
Add AWS/Backup supported metrics and dimensions based on the official
AWS documentation.
2021-10-29 12:47:26 +02:00
Giordano Ricci
e375558fa5
Chore: Clenaup unused exports/modules in explore (#41072)
* Chore: remove unused files

* Chore: Remove unused explore  extports and files
2021-10-29 11:34:48 +01:00
Mitch Seaman
d069f0900e
Update number of files that must be open (#41081)
2048 was not enough :)
2021-10-29 12:24:17 +02:00
Jack Westbrook
5d98155b5f
Plugins Catalog: Set external manage link to installation tab (#40994)
* feat(catalog): set external manage link to installation tab

* fix(catalog): use pluginCatalogURL when getting external manage link
2021-10-29 12:23:05 +02:00
Giordano Ricci
914d8d6f15
Explore: fix footer margin in Query History (#40970) 2021-10-29 11:03:09 +01:00
Ashley Harrison
283c19a129
TimePicker: Clicking outside the TimePicker/TimePickerCalendar now pr… (#40956)
* TimePicker: Clicking outside the TimePicker/TimePickerCalendar now properly dismisses the popup

* Slightly tidier syntax

* Don't forget to lint...
2021-10-29 10:31:56 +01:00