Commit Graph

57482 Commits

Author SHA1 Message Date
Jack Westbrook d8da2061fc
Grafana/schema: trigger new canary release (#101672)
docs(schema): add installation instructions to trigger release
2025-03-06 09:51:19 +02:00
Jack Westbrook 42b66930b5
Chore: Bump dompurify (#101195)
* chore(frontend): bump dompurify to 3.2.4

* refactor(geomap): update photosLauyer shadow for newer ol-ext changes

* Remove displacement

---------

Co-authored-by: drew08t <drew08@gmail.com>
2025-03-06 09:42:29 +02:00
Torkel Ödegaard 1576b69f65
Dashboards: Select objects after adding them (#101609)
* Dashboards: Select newly added object

* Add tests

* Update
2025-03-06 08:35:50 +01:00
Ryan McKinley a1d5e5dad1
K8s/Swagger: Avoid */* media type (#101658)
* avoid */*

* use application/yaml

* fix lint
2025-03-06 10:13:31 +03:00
Jack Westbrook ac9615ec7d
Grafana/schema: Expose dist directory in package.json exports (#101626)
build(schema): expose dist directory in package.json exports so scenes can consume them
2025-03-06 07:09:42 +01:00
grafana-pr-automation[bot] fcad628a7c
I18n: Download translations from Crowdin (#101664)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-06 02:33:25 +02:00
Andreas Christou fbb6802195
Azure: Update metric namespaces (#101644)
Update namespaces
2025-03-05 17:52:11 -06:00
alerting-team[bot] 8ef37ea5c1
Alerting: Update alerting module to aae4827ec0610058810f2bbc69800ce377a33376 (#101623)
[create-pull-request] automated change

Co-authored-by: grobinson-grafana <85952834+grobinson-grafana@users.noreply.github.com>
2025-03-05 16:45:20 -05:00
Stephanie Hingtgen 605a4cbff9
K8s: Fix plugin updater (#101646) 2025-03-05 22:24:30 +02:00
Ezequiel Victorero ce0d48746f
Docs: Update OpenAPI specifications (#101173) 2025-03-05 16:21:48 -03:00
Isabel Matwawana 5ffca57a5d
Docs: Fix broken profiling link (#101637)
Fixed broken link
2025-03-05 13:47:12 -05:00
Ryan McKinley 5980c8efbb
Dashboards: Show provisioned badge from annotations (#101625) 2025-03-05 20:08:20 +03:00
Eric Leijonmarck 627e8995c0
LBAC for datasources: Adds feature availability (#101604)
* adds feature availability

* spellling

* table format enough
2025-03-05 17:04:06 +00:00
linoman c1c9ea6964
SCIM: Assign requester org to new provisioned users (#101548)
Assign requester org to new provisioned users

Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>
2025-03-05 17:11:44 +01:00
Torkel Ödegaard 962496c50d
DashboardLayouts: Remove unused functions (#101602) 2025-03-05 17:01:53 +01:00
Sam Jewell 47f82a0c16
SQL Expressions: Resizable code-editor (#101407)
* Resizeable SQL expressions text-area

Generated by an LLM for me - we'll see. It expands quite large on first
page-load

* Switch to useLayoutEffect to avoid visual flashing

* Get the LLM to rewrite the approach, inspired by InfluxDB

The Influx DB text-area is also resizable vertically, but that one isn't
a Monaco editor (we need to tell Monaco to update its own size when the
outer div is resized), so this is necessarily a little more complex than
Influx. But still this approach looks simpler: The Javascript here is
shorter

* Start at 240px, to match the current default size

Question: Is there a better approach to achieve this?

* Don't clip the bottom border of the Monaco editor

* Fix linting errors
2025-03-05 15:52:07 +00:00
Andrew Hackmann 3bdc9d1e19
Graphite: Compare query builder query to raw query (#101104)
* compare queries to insure query isnt changed

* comment

* removed calls to getTemplateSrv because it makes things impossible to test. added a check for empty raw queries

* prettier

* Update public/app/plugins/datasource/graphite/graphite_query.ts

Co-authored-by: Adam Yeats <16296989+adamyeats@users.noreply.github.com>

---------

Co-authored-by: Adam Yeats <16296989+adamyeats@users.noreply.github.com>
2025-03-05 15:32:58 +00:00
Joey 31e92ba720
Trace View: Add link from the Trace View to the Profiles Drilldown (#101422)
* Add link from the Trace View to the Profiles App via Profiles for this span button dropdown

* Fix tests

* Lint

* Fix test

* Lint

* Fallback if plugin extension does not exist

* Move span detail link buttons to their own file

* Add tests

* Update type name

* Update naming

* Prettier

* Move button

* Remove fallback

* Use proper time range

* Betterer

* Update test

* Use CoreApp

* Betterer

* Simplify context

* Update tests

---------

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2025-03-05 15:47:44 +01:00
Alexander Zobnin c23bb36956
Zanzana: Fix health check endpoint (#101612) 2025-03-05 15:24:58 +01:00
Yuri Tseretyan 374380d1f6
Alerting: Keep the latest version of deleted rule in version table (#101481)
* add feature toggle alertRuleRestore
* Update delete rule to require UserUID, remove all versions and create "delete" version that holds information about who and when deleted the rule
2025-03-05 09:15:26 -05:00
colin-stuart da2c382d80
Tests: Add SearchOrgUsersFn to FakeOrgService (#101589)
add SearchOrgUsersFn to FakeOrgService
2025-03-05 09:02:01 -05:00
Matheus Macabu 61eb837dd6
Chore: Bump Go to 1.23.7 (#101576) 2025-03-05 14:55:36 +01:00
Matheus Macabu 7426ddff94
Chore: Downgrade go-grpc-middleware to fix build in 32-bit systems (#101615) 2025-03-05 14:04:55 +01:00
Alexander Akhmetov d44728f4e5
Alerting: Metric to count imported from Prometheus rules (#100847) 2025-03-05 14:02:28 +01:00
Matheus Macabu 2638de6aeb
Anonymous: Add 1min leeway in device count + search in tests for MySQL 5.7 (#101608) 2025-03-05 12:32:37 +01:00
Sergej-Vlasov b5be6cd4d6
Dashboard: Redesign row edit panes (#101510)
* add row item changes

* redesign row edit panes and header actions

* clean up after merges

* adjust to sentence casing

* bring back layout selection extra options
2025-03-05 11:18:41 +00:00
Alexander Zobnin 01899d761e
Zanzana: Upgrade to OpenFGA v1.8.6 (#101553)
* Zanzana: Upgrade to OpenFGA v1.8.6

* upgrade openfga
2025-03-05 11:58:31 +01:00
Matheus Macabu 3539764008
Hackaton: Add more unit tests, take 3 (#101525)
* serviceaccounts/secretscan: test Service more thoroughly

* middleware/cookies: add tests for CookieOptions

* anonymous/anonimpl: cover a couple more methods

* components/imguploader: Implement WebDAV integration tests

* components/apikeygen: also check IsValid method

* bus: cover invalid callback signature cases

* cloudmigration/objectstorage: add basic unit tests

* login/social/connectors: add test case for GitHub OAuth fetch emails+orgs

* expr/classic: cover more evaluator types in tests
2025-03-05 08:00:12 +01:00
Ryan McKinley dc2defd84f
K8s/Annotations: Use manager/source annotations rather than repo (#101313)
Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com>
2025-03-05 08:54:20 +02:00
Leon Sorokin e7baf9804e
Transformations: Avoid mutation during variable interpolation (#101594) 2025-03-05 04:06:24 +02:00
grafana-pr-automation[bot] 1f36a8a27c
I18n: Download translations from Crowdin (#101592)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-05 02:31:01 +02:00
Stephanie Hingtgen e806a00701
K8s: Dashboards: Add useful error message for too large (#101590) 2025-03-04 17:11:42 -06:00
Stephanie Hingtgen 67221fb328
K8s: Folders: Fix not found errors (#101585) 2025-03-05 00:31:41 +02:00
J Stickler 8832aa2aa2
Docs: Fix typo in Drilldown note (#101579)
docs: Fix typo in Drilldown note
2025-03-04 15:09:25 -06:00
Stephanie Hingtgen 7c35d741ba
Folders: Add validation that folder is not a parent of itself (#101569) 2025-03-04 13:56:21 -06:00
Kevin Minehart e933f7cf01
CI: Add frontend lint GitHub Actions workflow (#101559)
* lint frontend

* set frontend as owners of the lint workflow

* Fix syntax

* fix warning

* fix quote
2025-03-04 12:20:04 -06:00
Andreas Christou 4595df9be6
Azure: Resource picker improvements (#101462)
* Update resource group query

- Updates the resource groups query to support users/apps with restricted permissions

* Update resources request to be paginated

- Also order by name
- Add tests

* Update test
2025-03-04 17:30:14 +00:00
Stephanie Hingtgen b8e1511c7f
K8s: Increase max request body (#101564) 2025-03-04 11:27:43 -06:00
David Harris 7b9970f1e7
chore: update text for ds connections tab (#101509)
* chore: update text for ds connections tab

Not sure if additional work is required to generate the translation

* chore: text change for connection tab

---------

Co-authored-by: Sam Kh. <syerikjan.khusayan@grafana.com>
2025-03-04 10:36:56 -05:00
Jack Westbrook 6d4a271a39
Frontend: Expose unstable entrypoints for data and runtime (#101547)
* feat(grafana-data): introduce unstable entrypoint to package

* feat(grafana-runtime): introduce unstable entrypoint to package

* feat(plugins): expose unstable entrypoints for data and runtime to plugins

* feat(packages): dummy exports so package verification and shared deps imports work
2025-03-04 16:22:05 +01:00
Yuri Tseretyan 67b44ad22a
Alerting: Fix state reason (#101530)
---------

Signed-off-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2025-03-04 17:05:41 +02:00
Kevin Minehart 2f3aff0e04
Dashboards: Prevent title longer than 5 000 characters (#101554)
Co-authored-by: AgnesToulet <35176601+AgnesToulet@users.noreply.github.com>
2025-03-04 17:02:54 +02:00
Oscar Kilhed 6ed55766da
Dashboards: Fix saving repeat rows in schemav2 (#101432)
fix saving repeat rows
2025-03-04 15:16:01 +01:00
Joey b3ad7ce151
TraceView: Use global config for showing and hiding feedback link in trace view (#101504)
Use global config for showing feedback link in trace view
2025-03-04 14:15:49 +00:00
Tom Ratcliffe ac0fd38183
Chore: Add new `no-translation-top-level` eslint rule (#101550) 2025-03-04 15:42:37 +02:00
Sergej-Vlasov 4f0e76ec56
Dashboards: Redesign tab edit pane and header (#101523)
* add tab item changes

* redesign tab edit pane and header actions

* Merge branch 'main' into serge/redesign-tab-edit-pane

* address comments

* adjust i18n typo

* sanitise url
2025-03-04 13:09:54 +00:00
Gilles De Mey 751ea772e6
Alerting: Add error handling for missing data source (#101508) 2025-03-04 13:22:24 +02:00
Jack Baldry 5b61222733
Lint only Markdown files (#101533)
* Lint only Markdown files

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Lint a file

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Test

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Lint

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2025-03-04 11:00:35 +00:00
Jack Westbrook bbfeb8d220
Feature: Introduce subresource integrity checks (SRI) for frontend assets (#100983)
* feat(featuremgmt): introduce feature toggle for enabling sri checks

* feat(frontend): use assetSriChecks feature toggle to inject integrity hash into script tags

* chore(webpack): align sri algorithms across dev and prod builds

* docs(featuremgmt): update assetSriChecks to pass CI

* docs(featuremgmt): fix more spelling complaints with assetSriChecks

* Add crossorigin attribute

* chore(webpack): add subresource-integrity plugin

* build(webpack): wrap webpack jsonp loader integrity checks in feature flag checks

* revert(index.html): remove crossorigin attribute if assertSriChecks is disabled

---------

Co-authored-by: Kristian Bremberg <kristian.bremberg@grafana.com>
2025-03-04 11:56:35 +01:00
Sergej-Vlasov bf9a34f2ca
TimePicker: Ability to manually specify quick ranges (#101465)
* add quickRanges to scene model transforms

* add test for quickRanges transformations

* fix lint
2025-03-04 10:45:24 +00:00