Commit Graph

56918 Commits

Author SHA1 Message Date
Moustafa Baiou
7dee4d1808
Alerting: Allow specifying uid for new rules added to groups (#99858)
When modifying rule groups the `uid` can be specified but only if the rule already existed in the DB. If the rule is new the update would be rejected.

This updates the RuleGroup provisioning apis to allow specifying the `uid` when creating/updating rule groups. 

Additionally, the RuleGroupIdx was not being updated when rules were reordered in the group.

Context: https://github.com/grafana/terraform-provider-grafana/pull/1971#issuecomment-2599223897
Relates to: https://github.com/grafana/terraform-provider-grafana/issues/1928

Fixes: #98283
2025-02-10 10:28:34 -05:00
ismail simsek
55e7c4ae6d
Prometheus: Get the utcOffset value of timezone when it's specified (#99910)
* get the utcOffset value of timezone when it's specified

* Update packages/grafana-prometheus/src/datasource.ts

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

* calculate utcOffset from timezone when the request timezone is not browser

* lint

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2025-02-10 16:11:06 +01:00
Yuri Tseretyan
1b8db233a7
Alerting: Rule Version API to Ignore versions without diff (#100093) 2025-02-10 09:20:35 -05:00
Marco Schaefer
dec07c4c34
Update-faro-versions-in-grafana-packages (#100354)
* update faro versions in grafana-runtime

* update faro packages in root

* update Faro version in Grafana UI

* upgrade faro version in grafana-prometheus

* replace deprecated type
2025-02-10 15:07:32 +01:00
beejeebus
02caf915a5
Don't remove DWARF info from Go binaries in dev (#100328)
Only ask the linker to strip DWARF information if we're not in
dev, to avoid seeing stuff like this when using delve:

    ~ $ dlv attach $(pgrep grafana)
    (dlv) l main.main
    Command failed: location "main.main" not found

After this change:

    ~ $ dlv attach $(pgrep grafana)
    Type 'help' for list of commands.
    (dlv) l main.main
    Showing /home/justin/code/grafana/pkg/cmd/grafana/main.go:23 (PC: 0xac93533)
        18: var commit = gcli.DefaultCommitValue
        19: var enterpriseCommit = gcli.DefaultCommitValue
        20: var buildBranch = "main"
        21: var buildstamp string
        22:
        23: func main() {
        24:         app := MainApp()
        25:
        26:         if err := app.Run(os.Args); err != nil {
2025-02-10 08:43:31 -05:00
Torkel Ödegaard
68700e3d7d
TimeRangePicker: Options list padding (#100343) 2025-02-10 14:12:23 +01:00
Josh Hunt
30abff9998
Chore: Bump undici (#100352) 2025-02-10 13:05:48 +00:00
Josh Hunt
9697a699f2
Chore: Remove unused knip dependency (#100351) 2025-02-10 14:40:45 +02:00
Andres Martinez Gotor
42170ad23a
Advisor: Create checks following a schedule (#100282) 2025-02-10 13:15:41 +01:00
Alex Khomenko
2518012569
grafana-ui: Update InlineField error prop type to React.ReactNode (#100347) 2025-02-10 13:46:46 +02:00
Ryan McKinley
7c8fddc729
Chore: remove CVE from code scanning tool (#100312) 2025-02-10 13:07:04 +02:00
Gábor Farkas
390b5eb6d4
go.mod: updated grafana-plugin-sdk-go (#100342)
* go.mod: update grafana-plugin-sdk-go

* make update-workspace
2025-02-10 11:38:30 +01:00
Gilles De Mey
afab71e28c
Alerting: Remove rule group edit from single rule editor (#100191)
remove rule group edit from single rule editor
2025-02-10 11:13:28 +01:00
Konrad Lalik
6723159b12
Alerting: Fix useAlertingQueryRunner re-rendering loop (#100206)
* Fix AlertingQueryRunner infinite re-rendering loop

* Update tests
2025-02-10 10:51:54 +01:00
Josh Hunt
00155abf1b
Codeowners: Make Grafana Frontend Platform only own Grafana UI documentation (#100314)
* Codeowners: Make Grafana Frontend Platform exclusive owners of MDX documentation

* more
2025-02-10 09:50:49 +00:00
Misi
acc1521929
Auth: Fix redirect with JWT auth URL login (#100295)
fix
2025-02-10 10:48:35 +01:00
Elliot Kirk
95e61f63f7
Faro: Upgrading faro deps to 1.13.1, enabling error serializer (#100145)
* upping faro deps, enabling error serializer

* linting

* fix lint errors

* more linting stuff

* yarn lock
2025-02-10 09:32:47 +01:00
Sam Jewell
45775dd6ad
Skip flakey test (#100251) 2025-02-10 07:40:32 +00:00
Adela Almasan
f5c049012b
Chore: Data links and Actions components refactor (#100097)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2025-02-07 20:03:05 -06:00
Adela Almasan
bce05cd48d
VizActions: Add confirmation message (#100012)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2025-02-07 16:58:09 -06:00
Scott Lepper
378bb6ea3f
[search] folder name lookup performance (#100154)
[search] use search for folder name lookup
2025-02-07 17:19:23 -05:00
owensmallwood
196029f287
Unified Storage: Adds more spans to handleEvent (#100304)
adds more spans to handleEvent
2025-02-07 19:43:02 +01:00
Will Assis
7e11e604c7
[search] fix offset param in finddashboards (#100302)
* fix offset param in finddashboards

* separate offset from page in k8s search endponit
2025-02-07 13:24:27 -05:00
owensmallwood
bf27e6d3ed
Unified Storage: Fix legacy dashboard query when using continue token (#100244)
* query for rows less than the continue token LastID since the queries are sorted by dash ID in DESC order

* run dashboard query tests
2025-02-07 12:16:41 -06:00
Torkel Ödegaard
79d7e11fa4
Menu: Uniform padding to make menu item hover state look better (#100275)
* Menu: Uniform padding

* tweak menu header

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2025-02-07 19:07:10 +01:00
Haris Rozajac
f5d8f42635
Dashboard Scene: Fix unnecessary diffing (#100158)
* Fix unnecessary diffing

* use a diferent approach; update legacyId type

* fix test
2025-02-07 10:47:07 -07:00
AsocPro
7b48670104
Alerting: Remove leftover legacy alerting types (#100162) 2025-02-07 17:46:12 +00:00
Will Assis
7c9f47ac67
[search] handle folderids query param (#100223)
handle folderids query param
2025-02-07 12:24:21 -05:00
Ashley Harrison
0bd4e3bda2
Theme: properly clip corners in loki/prom query editor (#100253)
properly clip corners in loki/prom query editor
2025-02-07 17:17:46 +00:00
Ethan
bf413643c8
Remove unused SBOM report workflow from GitHub Actions (#100124)
* Remove SBOM report workflow from GitHub Actions

* Remove SBOM report workflow from CODEOWNERS
2025-02-07 18:11:11 +01:00
Alexander Akhmetov
97109b36e3
Update grafana/alerting package from 995709fe8d64 to 04c87cf39038 (#100293) 2025-02-07 18:38:22 +02:00
Fayzal Ghantiwala
7ae8058c8b
Alerting: Return 404 when /api/ruler/grafana/api/v1/rules/{Namespace}/{Groupname} does not exist (#100264)
* Return a 404 when rule group doesn't exist

* Update tests

* Update swagger doc and tests
2025-02-07 16:24:28 +00:00
renovate[bot]
9ce6c69996
Update dependency nanoid to v5.0.9 [SECURITY] (#100279)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-07 15:25:29 +00:00
Bogdan Matei
be42685852
Dashboards: Add tabs layout (#100127) 2025-02-07 16:50:53 +02:00
Andres Martinez Gotor
f607bcd43f
Advisor: Replace Error naming with Failure (#100262) 2025-02-07 15:48:18 +01:00
Agnès Toulet
0beb7e668b
E2E: Add PDF/CSV/Image comparison tasks (#99104)
* E2E: Add tasks for new reporting tests

* try to switch to pdf-parse

* fix pdf comparison

* add log

* increase threshold

* clean up

* apply review feedback

* improve logs + fix local setup for reporting

* format
2025-02-07 15:46:32 +01:00
Bogdan Matei
158c5443b5
Dashboard: Fix for overwriting an edited dashboard in the old architecture (#100247) 2025-02-07 16:44:55 +02:00
Alex Khomenko
53030e7960
Card: Render description element based on children type (#100276) 2025-02-07 16:39:13 +02:00
Mariell Hoversholm
dfaa12b800
Provisioning: Sync API with current feature branch (#100252)
* Provisioning: Jobs: Define repository name field

* Provisioning: Jobs: Separate options per job type

* Provisioning: Define a sanitised settings resource

* Provisioning: Jobs: Define a job summary

* Provisioning: Remove linting

* Provisioning: Update docs for a few fields

* Provisioning: Remove HelloWorld

* Provisioning: Replace Repository with Message in job info

* Provisioning: Remove YAML support

* Provisioning: Remove custom folder specification

* Provisioning: Support read-only repositories

* Provisioning: Remove edit options

* Provisioning: Add sync options for repositories

* Provisioning: Add resource statistics

* Provisioning: Make slices atomic lists

* Provisioning: Message list needs to exist even if empty

If we don't do this, we can't clear the messages field, leading to buggy UX.

* Provisioning: Support incremental syncing

* Provisioning: Remove the 'items' subresource workaround

* Provisioning: Add resource list

* Provisioning: Reformat

* Provisioning: Declare new types

* OpenAPI: Generate openapi JSON spec from generated code

* Codegen: Generate OpenAPI spec

* Provisioning: Support generating frontend API

* Codegen: Generate Go code

* Provisioning: Define the base API

* Codegen: Generate frontend endpoints for provisioning

* Refactor: yarn prettier:write

* Provisioning: Tiger team takes ownership

* Chore: Remove dir we haven't added yet

* Provisioning: Remove frontend

* Test: Update example repositories
2025-02-07 15:35:55 +01:00
Torkel Ödegaard
9d7a4a53e4
Themes: Adds 1 more GrafanaCon theme (wip) (#100228)
* Themes: Gloom theme wip

* Themes: Gloom theme wip

* refactor

* A bit brown maybe?

* Update secondary to also be a bit brownish orangy

* Not super happy

* down a bit

* Progress

* Update

* Update

* orange primary again
2025-02-07 15:27:56 +01:00
Kristina
9fbb0b6636
Panel edit: Remove use of SheetJS (#100161)
Remove SheetJS
2025-02-07 08:21:14 -06:00
Todd Treece
6af67197a7
Dual Writer: Remove list comparisons in mode 2 & 3 (#100215) 2025-02-07 09:17:53 -05:00
Oscar Kilhed
a412394a14
Dashboards: Save rows and responsive grid layouts in v2 (#100035)
* save rows and responsive grid layouts in v2

* Add back accidentally removed assert

* adress feedback

* use getGridItemKeyForPanel

* Fix import

* fix another import

* Remove RowGridLayout
2025-02-07 14:45:04 +01:00
Alex Khomenko
882b993496
Card: Use div for description (#100272) 2025-02-07 15:30:22 +02:00
Georges Chaudy
6e748a9ee7
fix: Ensure we check the user identity for search (#100190)
Ensure we check the user identity for search
2025-02-07 12:32:45 +01:00
Piotr Jamróz
c43517d278
Explore: Fix resizing split view with Loki query editor (#100257) 2025-02-07 12:05:45 +01:00
Mariell Hoversholm
e815a2850e
Provisioning: Integration test that Repository resources work (#100197)
* Provisioning: Set up server in practice

* Provisioning: Integration test that Repository resources work
2025-02-07 12:04:58 +01:00
Bogdan Matei
a51e785bc1
Dashboards: Finalize refactoring for dynamic dashboards (#100198) 2025-02-07 12:57:54 +02:00
Andrej Ocenas
4b9fee61a8
QueryLibrary: Move to enterprise (#100133) 2025-02-07 11:09:51 +01:00
Giuseppe Guerra
ccb9cab131
Plugins: Add synchronous CDN plugin loader (#99096)
* WIP

* Run plugin validations and validation steps sequentially if feature is off

* Remove dependency between sources.Service and pluginscdn.Service

* lint

* Parallelize validation only if class is CDN

* re-generate feature toggles

* remove waitgroup usage

* PR review: Add loader concurrency limit setting

* re-generate feature toggles

* pr review feedback

* fix const name

* Skip module.js validation for cdn plugins

* do not run validation steps in parallel

* lint

* reduce diff

* re-generate feature toggles

* lint

* pr review feedback

* remove leftover config.PluginManagementCfg from sources.Service
2025-02-07 11:07:08 +01:00