57502 Commits

Author SHA1 Message Date
43f56c5ca1 Apiserver: Refactor authenticator and authorizers (#101449)
* Clean up authenticator

* Cleanup authorizers and replace org_id and stack_id with namespace authorizer

* Remove dependency on org service

* Extract orgID from /apis/ urls and validate stack id
2025-03-06 16:01:12 +01:00
0a24a7cd4c Plugins: Remove uninstall plugin step from cli plugins update-all (#101632) 2025-03-06 15:59:32 +01:00
f1ba2554e5 Dashboard: Editing design tweaks for the checkbox placements (#101618)
Dashboard: Design tweaks
2025-03-06 15:53:44 +01:00
c9ab1142e1 Add OpenFeature providers (#101071)
* Add OpenFeature provider

* Simplify static provider

* Linting

* Apply review feedback

* Codeowner for deps

* Update pkg/services/featuremgmt/openfeature.go

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>

* Apply review comments part2

* Remove from sample.ini for now

* fixup! Apply review comments part2

* Add example of context config

* Resolve conflict

* Run update workspaces

---------

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
2025-03-06 15:09:26 +01:00
b6221cc389 Add Github Action to run analytics report (#101698) 2025-03-06 15:12:17 +02:00
b7dcfcedcb Alerting: Extend recording rule definitions/interfaces with data source. (#101678)
Extend the recording rule definition to include the target data source, allowing
configuration of where the output of the recording rule is written to. Also
extends the relevant interfaces in preparation for the next set of changes.
2025-03-06 14:09:17 +01:00
13cf67de53 Remove relref shortcodes (#101694)
* manually replce all shared relrefs

* relref replace - grafana next

* Merge branch 'master' into robbymilo/relref-replace-grafana-next

* manual fixes

* remove ref shortcode

* Merge branch 'master' into robbymilo/relref-replace-grafana-next

* prettier

* fix test

* update readme
2025-03-06 13:59:08 +01:00
a604602b55 Scenes: Fix incorrect panel context.app during panel edit (#101567) 2025-03-06 12:48:16 +00:00
6accf13597 AuthZService: Test Check (#101675)
* wip

* deny case

* Reorganise

* WIP

* Check cache

* Add anonymous test

* Add test for rendering

* Lint import

* Refactor slightly

* more input validation coverage

* Require user

* typo
2025-03-06 13:37:37 +01:00
8dc013b872 Alerting: Remove unused component / file (#101568) 2025-03-06 13:21:45 +01:00
beb884292e Add LOKI_VERSION and ONCALL_VERSION (#101684)
* Add LOKI_VERSION

* Add ONCALL_VERSION
2025-03-06 11:25:27 +00:00
bd83646bd4 PromLib: Take AdHoc filters into account when requesting suggestions without label (#101555)
* Check for adhoc filters, even when no timeserie name is used

* Add test
2025-03-06 12:21:10 +01:00
463e3143ab Dashboards: Rename layout display names: Default grid => Custom, Responsive grid => Auto (#101673)
Dashboards: Rename layout display name
2025-03-06 11:39:45 +01:00
904d58e936 SQLStore: Introduce new test infra (#101676)
This creates the new testinfra. It is not used anywhere yet.
2025-03-06 11:01:14 +01:00
7acfdfa0af ScopesContext: Move runtime service to unstable (#101600)
* Move ScenesContext runtime service to unstable

* Move ScopesContext to unstable folder

* Remove dummy export
2025-03-06 10:20:25 +01:00
a91081a2fc AuthZService: Add certificates to the client (#101603) 2025-03-06 10:18:58 +01:00
caabb06cd8 Chore: Bump dependencies to address security issues (#101620)
* Chore: Bump golang.org/x/net to v0.36.0

* Chore: Use github.com/moby/moby version 27.5.1 instead of 26.0.0

* Chore: Bump github.com/ua-parser/uap-go to v0.0.0-20250213224047-9c035f085b90

* Chore: Bump github.com/grpc-ecosystem/go-grpc-middleware/v2 to fix 32-bit overflow issue
2025-03-06 10:12:05 +01:00
ec7a0db54d Alerting: Return 400 if the Prometheus rule has unsupported options (#101616) 2025-03-06 10:09:40 +01:00
6389b801b9 Authz: Pass correct property (#101674) 2025-03-06 10:02:04 +01:00
0e25c6857d QueryOptions: Handle invalid time shift values (#101670) 2025-03-06 09:36:29 +01:00
d8da2061fc Grafana/schema: trigger new canary release (#101672)
docs(schema): add installation instructions to trigger release
2025-03-06 09:51:19 +02:00
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
1576b69f65 Dashboards: Select objects after adding them (#101609)
* Dashboards: Select newly added object

* Add tests

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

* use application/yaml

* fix lint
2025-03-06 10:13:31 +03:00
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
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
fbb6802195 Azure: Update metric namespaces (#101644)
Update namespaces
2025-03-05 17:52:11 -06:00
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
605a4cbff9 K8s: Fix plugin updater (#101646) 2025-03-05 22:24:30 +02:00
ce0d48746f Docs: Update OpenAPI specifications (#101173) 2025-03-05 16:21:48 -03:00
5ffca57a5d Docs: Fix broken profiling link (#101637)
Fixed broken link
2025-03-05 13:47:12 -05:00
5980c8efbb Dashboards: Show provisioned badge from annotations (#101625) 2025-03-05 20:08:20 +03:00
627e8995c0 LBAC for datasources: Adds feature availability (#101604)
* adds feature availability

* spellling

* table format enough
2025-03-05 17:04:06 +00:00
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
962496c50d DashboardLayouts: Remove unused functions (#101602) 2025-03-05 17:01:53 +01:00
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
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
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
c23bb36956 Zanzana: Fix health check endpoint (#101612) 2025-03-05 15:24:58 +01:00
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
da2c382d80 Tests: Add SearchOrgUsersFn to FakeOrgService (#101589)
add SearchOrgUsersFn to FakeOrgService
2025-03-05 09:02:01 -05:00
61eb837dd6 Chore: Bump Go to 1.23.7 (#101576) 2025-03-05 14:55:36 +01:00
7426ddff94 Chore: Downgrade go-grpc-middleware to fix build in 32-bit systems (#101615) 2025-03-05 14:04:55 +01:00
d44728f4e5 Alerting: Metric to count imported from Prometheus rules (#100847) 2025-03-05 14:02:28 +01:00
2638de6aeb Anonymous: Add 1min leeway in device count + search in tests for MySQL 5.7 (#101608) 2025-03-05 12:32:37 +01:00
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
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
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
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
e7baf9804e Transformations: Avoid mutation during variable interpolation (#101594) 2025-03-05 04:06:24 +02:00