Commit Graph

1686 Commits

Author SHA1 Message Date
Jo
1a281ac49d
Experiment: tag UI devices for anon stats (#73748)
* experiment: attempt to tag only UI devices

* lint frontend

* use await

* use shorthand check

* do not assume build info exists

* do not assume build info exists

* Apply suggestions from code review

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

---------

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
2023-08-28 10:49:23 +02:00
Torkel Ödegaard
9b891480d6
DashboardScene: Edit mode should enable dragging (#73628)
* DashboardScene: Edit mode should enable dragging

* Update

* Update

* Update scenes lib
2023-08-24 07:26:23 +02:00
Kevin Minehart
ebeb7dcb83
Update "What's new" URL (#73722)
Update package.json
2023-08-23 18:55:51 -03:00
Sarah Zinger
8b7566c299
Cloudwatch: Upgrade grafana-aws-sdk (#73580)
Upgrade grafana-aws-sdk
2023-08-23 09:52:30 -04:00
Ivana Huckova
fc9b8f6be1
Loki: Implement keep and drop operations (#73636)
* Update lezer

* Add functionalities for code and builder

* Add comment
2023-08-23 14:52:19 +02:00
renovate[bot]
c5be239990
Update dependency @types/jest to v29.5.4 (#63635)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-23 11:15:39 +01:00
Dominik Prokop
f00f56bbff
DashboardLoaders: Add support for loading library panels (#73406)
* DashboardLoaders: Add support for loading library panels

* Bump scenes

* Scene object for loading library panels

* Remove unused function

* Remove console.log

* Bump scenes

* Review
2023-08-21 08:43:48 -07:00
Dominik Prokop
30393459df
DashboardsLoader: Enable cursor sync in scenes based dashboard (#73383)
* Bump scenes

* Enable cursor sync in scene dashboard
2023-08-17 07:03:26 -07:00
Josh Hunt
654d99fbca
Chore: Replace Husky/Lint-staged with Lefthook (#66608)
* Switch from husky+precommit to lefthook

Migrate from husky/precommit to lefthook

h

old husky precommit

lefthook so far

remove husky folder

switch to new lefthook package

Add postinstall script to clean up after husky

preinstall to remove husky config

package.json

package.json

package.json

script

v

Reduce lefthook output

Cleanup

testing

reduce output

testing betterer

testing betterer

testing betterer

testing betterer

testing betterer

testing betterer

testing betterer

skip skipping execution info

small cleanup

remove comment from testing

clean up old husky hooks in .git/hooks path

run scripts in parallel

update codeowners

don't auto-install lefthook

install lefthook with make command

fix yarn checksum

* update codeowners

* don't use source because it isn't available in ubuntu/debian's /bin/sh

* Ensure lefthook commits files fixed by precommit hooks

* add comment to lefthook.rc explaining what it does

* add i18n:pseudo precommit

* Don't create .husky/safe-to-delete file anymore

* cleanup old lint-staged config

* contribute docs

* update lefthook to 1.4.8

* Move frontend encouragement docs

* rewrite husky cleanup script in bash so we can run it with make

* Make old husky precommit script reject commits until husky is removed

* log precommit warning for everyone

* fix package.json

* run lefthook hooks from old husky hook

* run lefthook hooks from old husky hook

* comments

* codeowners

* codeowners
2023-08-17 09:56:52 +00:00
Sarah Zinger
09d5483c6c
Cloudwatch: Upgrade aws-sdk and display external ids for temporary credentials (#72821)
(under a feature toggle, not yet ready for public testing)
2023-08-14 13:42:30 -04:00
Andrej Ocenas
58314e6414
Flamegraph: Remove feature flag and code to switch to pyroscope version (#72689) 2023-08-02 17:01:12 +02:00
Andre Pereira
5c14a07ec3
Tempo: Integrate TraceQL grammar (#72516)
* Replacing the regex based approach and integrating the lezer-traceql grammar in the editor

* Added some tests

* Added path to capture error in filter root

* Tests are great and help fix issues 👍

* Fix autocomplete tests
2023-08-01 14:15:05 +01:00
Jack Westbrook
00f0ff038e
Chore: Introduce yarn start:noLint (#64430)
chore(webpack): introduce start:noLint to bypass typecheck and lint plugins during dev
2023-08-01 11:58:39 +02:00
Ashley Harrison
70cbda951f
Chore: revert swc upgrade since it breaks CI metrics emit (#72598)
revert swc upgrade since it breaks CI metrics emit
2023-07-31 15:35:48 +03:00
renovate[bot]
58a2b5d64d
Update Monthly patch updates (#71651)
* Update Monthly patch updates

* dedupe packages

* lezer update rolled back

* rolled back react-virtualized-auto-sizer

* rolled back update to dangerously-set-html-content

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
2023-07-31 13:52:26 +02:00
Ashley Harrison
ae4810f854
Chore: Emit theme token usage metrics (#72500)
* create rule to find instances of theme variables

* emit theme token usage metrics

* move awking into script

* make sure theme usage is covering ts and tsx files, remove commented lines
2023-07-28 17:08:02 +03:00
Matias Chomicki
0d121bab29
Elasticsearch: Implement modify query using a Lucene parser (#71954)
* Lucene: add dependency

* ModifyQuery: use Lucene parser to detect key:values in queries

* ModifyQuery: use Lucene parser to remove filters

* Remove test code

* Modify query: switch to recursive implementation

* Modify query: implement remove filter

* Update query normalizing function

* FlagElasticToggleableFilters: remove feature flag

* Remove unused feature flag from test

* Elasticsearch: escape quotes in filter values
2023-07-28 14:49:02 +02:00
grafana-delivery-bot[bot]
eaca6c3f49
Release: Bump version to 10.2.0-pre (#72418)
"Release: Updated versions in package to 10.2.0-pre"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-07-27 09:21:29 +03:00
renovate[bot]
c280f884f0
Update dependency @grafana/experimental to v1.6.1 (#68681)
* Update dependency @grafana/experimental to v1.6.1

* chore(mssql-datasource): update completion provider to work with experimental type changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2023-07-24 15:47:55 +02:00
Gareth Dawson
4e42f9b619
Loki: Add the ability to prettify logql queries (#64337)
* pushed to get help of a genius

* fix: error response is not json

* feat: make request on click

* refactor: remove print statement

* refactor: remove unnecessary code

* feat: convert grafana variables to value for API request

* use the parser to interpolate and recover the original query (#64591)

* Prettify query: use the parser to interpolate and recover the original query

* Fix typo

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Fix typo

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* fix: reverse transformation not working

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Gareth Dawson <gwdawson.work@gmail.com>

* fix: bugs created from merge

* refactor: move prettify code out of monaco editor

* fix: variables with the same value get converted back to the incorect variable

* refactor

* use consistent styling with bigquery

* fix: only allow text/plain and application/json

* fix: only make the request if the query is valid

* endpoint now returns application/json

* prettify from js

* WIP: not all cases are handles, code still needs cleaning up

* WIP

* large refactor, finished support for all pipeline expressions

* add tests for all format functions

* idk why these files changed

* add support for range aggregation expr & refactor

* add support for vector aggregation expressions

* add support for bin op expression

* add support for literal and vector expressions

* add tests and fix some bugs

* add support for distinct and decolorize

* feat: update variable replace and return

* fix: lezer throws an errow when using a range variable

* remove api implementation

* remove api implementation

* remove type assertions

* add feature flag

* update naming

* fix: bug incorrectly formatting unwrap with labelfilter

* support label replace expr

* remove duplicate code (after migration)

* add more tests

* validate query before formatting

* move tests to lezer repo

* add feature tracking

* populate feature tracking with some data

* upgrade lezer version to 0.1.7

* bump lezer to 0.1.8

* add tests

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2023-07-21 13:03:56 +01:00
Jack Westbrook
6ac664ecf7
Chore: Update Semver to latest versions (#72086)
chore(npm): bump all versions of semver to their latest respective version
2023-07-21 12:40:45 +02:00
renovate[bot]
d2ff73d455
Update dependency stylelint-config-sass-guidelines to v10 (#71632)
* Update dependency stylelint-config-sass-guidelines to v10

* fixes

* fix typo

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-19 16:05:06 +01:00
Dominik Prokop
11b235e348
Use latest scenes 0.22.0 (#71936) 2023-07-19 05:01:06 -07:00
renovate[bot]
eff871add9
Update dependency marked to v5 (#71627)
* Update dependency marked to v5

* add marked-mangle to preserve previous behaviour

* turn off headerIds

* also need to initialise mangle here

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-18 17:30:10 +03:00
Ashley Harrison
9852b24d61
Chore: Upgrade prettier to v3 (#71764)
* Update dependency prettier to v3 (#71586)

* Update dependency prettier to v3

* run prettier

* ignore prettier update in legacy select scss

* update command line arg

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>

* unplug prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-17 15:58:22 +01:00
Ashley Harrison
5ca382c88a
Revert "Update dependency prettier to v3 (#71586)" (#71755)
This reverts commit 2e8cd1c021.
2023-07-17 14:46:15 +01:00
renovate[bot]
2e8cd1c021
Update dependency prettier to v3 (#71586)
* Update dependency prettier to v3

* run prettier

* ignore prettier update in legacy select scss

* update command line arg

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-17 09:19:27 +01:00
Eric Leijonmarck
06e35f3f72
SAML: Add node-forge to yarn for cert validation (#70959)
added node-forge to yarn
2023-07-14 16:04:35 +01:00
Pierre Baumard
5654359813
I18n: Add server config to detect browser language (#69396)
* I18N: Add browser language detector

* Improve style

* No new property for type check

* Add dependency

* Suggested doc change

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Fix prettier

* 'detect' as special language, no cache and only navigator detector

As per PR suggestion comments

* Update language configuration doc

* Suggested change in doc

From @chri2547

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Fix import

* Revert public/app/types/explore.ts changes

* Prettier write

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
2023-07-14 10:24:50 +00:00
renovate[bot]
e7e5ae2ee0
Update dependency trim to v1 (#71633)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-14 10:19:07 +00:00
renovate[bot]
88b09213f7
Update dependency centrifuge to v4 (#71626)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-14 10:18:01 +00:00
renovate[bot]
4b4be4006b
Update visx to v3.3.0 (#71625)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-14 10:09:07 +00:00
renovate[bot]
1cacc78eda
Update dependency lru-cache to v10 (#71585)
* Update dependency lru-cache to v10

* use named import

* remove outdated type definitions and actually use named import

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-14 10:26:58 +01:00
renovate[bot]
cd1b53ead1
Update react monorepo (#71552)
* Update react monorepo

* dedupe packages + fix type errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-14 12:11:26 +03:00
renovate[bot]
cbc44751b2
Update dependency immer to v10 (#71583)
* Update dependency immer to v10

* use named export now that the default has been removed

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-13 18:52:59 +03:00
renovate[bot]
4c31672536
Update dependency rudder-sdk-js to v2.37.0 (#71572)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 16:27:52 +01:00
renovate[bot]
94d3fa7087
Update dependency selecto to v1.26.0 (#71581)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 18:13:19 +03:00
renovate[bot]
3a21061dbb
Update dependency css-minimizer-webpack-plugin to v5 (#71578)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 14:58:36 +00:00
renovate[bot]
17a93e7b2e
Update dependency @grafana/eslint-config to v6 (#71575)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 14:53:25 +00:00
renovate[bot]
d4a8bb6958
Update emotion monorepo (#71573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 15:32:15 +01:00
renovate[bot]
4e57726e96
Update dependency jest-junit to v16 (#71555)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 15:12:48 +01:00
renovate[bot]
95620cdd34
Update dependency glob to v10 (#71554)
* Update dependency glob to v10

* use named import

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-13 17:07:10 +03:00
renovate[bot]
58689f17cc
Update dependency eslint-plugin-jsdoc to v46 (#71553)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 14:59:56 +01:00
renovate[bot]
04c66d7597
Update dependency webpack-bundle-analyzer to v4.9.0 (#71541)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 13:46:12 +01:00
renovate[bot]
ceb702b96a
Update dependency d3 to v7.8.5 (#71549)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 12:34:34 +00:00
renovate[bot]
4d283c1f92
Update dependency webpack-cli to v5.1.4 (#71542)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 15:28:41 +03:00
renovate[bot]
5fcb7ba10a
Update dependency webpack to v5.88.1 (#71540)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 12:12:19 +00:00
renovate[bot]
ec9366b300
Update dependency webpack-merge to v5.9.0 (#71544)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 10:48:35 +00:00
renovate[bot]
cbb00bfa75
Update dependency webpack-dev-server to v4.15.1 (#71543)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 13:44:38 +03:00
renovate[bot]
c5ee22672b
Update dependency rimraf to v5 (#71545)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 13:37:16 +03:00