lean.dev
0719f73f35
Cloud Migration: Remove ID migration in favor of UID ( #86550 )
...
* - Added migration to add a new collumn UID to both migration and migration_run tables.
- Added migration to set UID for records already existent in the database before adding a new column.
- Added UID field to CloudMigration and CloudMigrationRun dtos (model.go)
* Fix db migration
* Updating store and model
* Updating API to use UID
* fix typo
* update openapi specs and generated endpoints
* fix spec
* update openapi specs and generated endpoints
* Fixing db mapping
* Fix frontend
* fix migration
* remove migration uid from run fetch endpoint
* Revert "merge"
This reverts commit d654e4c530
, reversing
changes made to 5fe0b483eb
.
* manual merge
* rename some funcs for consistency
* make interfaces consistent
* validate uids
* update generated frontend api
* fix enterprise spec
* manually resolve api
* try again
* try yet again
* once more
---------
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
Co-authored-by: joshhunt <josh@trtr.co>
2024-05-01 12:29:25 -04:00
Reem Tariq
fcb40e601d
GrafanaUI: Add two icons add-user and clip-attach ( #87112 )
...
* add two icons add-user and clip-attach
* rename clip-attach to attach
2024-05-01 17:27:27 +01:00
Alexa V
9ea1042329
Dashboard: POC to run existing e2e with dashboardScene
feature toggle ( #84598 )
...
* Standarize e2e for addDashbaord e2e flow
* WIP: Duplicate e2e dashboard flows and smoke test for scene e2e tests
* Fix autoformatting mistake for bash file
* Enable dashboardScene using local storage and only for the scene folder
* Add missing folders
* Set the feature toggle in the before of all tests
* Revert "Standarize e2e for addDashbaord e2e flow"
This reverts commit 6b9ea9d5a4
.
* Add missing e2e selectors to NavToolbarActions, and modify addDashboard scene flow
* e2e: panels_smokescreen.spec.ts migrated
* e2e smokeTestSceneario migrated
* Start migrating dashbaord-suite e2e
* WIP create variable types
* adjust tests for scenes
* restore dashboard json file
* update scenes version
* restore pkg/build/wire/internal/wire/testdata modifications
* finalising test adjusments
* restore pkg/build/wire/internal/wire/testdata files
* add latest scenes version and update tests
* add drone setup for dashboard scenes tests
* update to latest scenes version
* adjust drone errors
* adjust indentation in drone yml file
* drone adjustments
* add github workflow to run scenes e2e
* restore drone file
* adjust github workflow
* wip: github workflow adjustments
* test remove gpu
* bump
* undo formating changes
* wip: github workflow debugging
* adjusting flaky tests
* update to latest scenes
* clean up workflow file
* adjust flaky test
* clean up pr
* finalise worflow logic and add to codeowners
* clean up launching old arch dashboards e2e separately
---------
Co-authored-by: Sergej-Vlasov <sergej.s.vlasov@gmail.com>
Co-authored-by: Jeff Levin <jeff@levinology.com>
2024-05-01 17:56:48 +03:00
Adela Almasan
0fbfb67b15
XY Chart: Show mapped size/color fields in tooltip ( #87153 )
2024-05-01 09:55:11 -05:00
Krishna Dhakal
deb6d27406
Core: Replace deprecated jest matcher toBeCalledWith ( #86635 )
...
* Replace depredated matcher from jest
* perform rechecks
---------
Co-authored-by: joshhunt <josh@trtr.co>
2024-05-01 15:33:26 +01:00
Torkel Ödegaard
4034a26972
DashboardScene: Fixes issue referring to library panel in dashboard data source ( #87125 )
...
* DashboardScene: Fixes issue using a library panel as source for dashboard data source
* Added test
2024-05-01 14:30:54 +02:00
Laura Benz
f806b9749d
refactor: replace static placeholders with translatable ones ( #87130 )
...
* refactor: replace static placeholders with translatable ones
* refactor
* refactor: keep default option
* refactor: improve expression
* refactor: run extraction after merging fix
2024-05-01 13:17:53 +02:00
Torkel Ödegaard
7a5c17d613
DashboardScene: Fixes issue with panel edit options pane and data ( #87161 )
2024-05-01 11:17:48 +02:00
Ashley Harrison
f15f21a13f
Dashboard: Only show Starred
as parent breadcrumb for starred dashboards ( #87145 )
...
don't update pageNav to have folder if sectionNav is starred
2024-05-01 09:55:31 +01:00
Joey
5cee521dc9
Tempo: Use ellipsis when trace view header url is too long ( #86417 )
...
* Limit url length
* Update styles to use objects
* Update width
* Add url to tooltip
2024-05-01 09:20:37 +01:00
bornohin6
7ce1254913
CloudMigration: Remove details from the migration run list ( #87104 )
...
Remove details from the migration run list
2024-04-30 11:44:35 -07:00
Adela Almasan
4312f2accd
XYChart2: Fix tooltip mode ( #87147 )
2024-04-30 13:19:37 -05:00
Kevin Yu
a54df47976
CloudWatch: Add labels for Metric Query type queries ( #85766 )
...
* CloudWatch: Fix metric query with group by not being labelled in alerts
* just use one key for the labels
* not needed
* unused function
* add tests
* pr comments
* fetch dimensions to build labels for MetricQuery type queries
* pr comments
* group cache related tests and use fresh cache for non-cache related tests
* don't cache empty values
2024-04-30 09:06:16 -07:00
Tom Ratcliffe
b0f6913ef6
Alerting: unify alert rule actions between list and detail view ( #86071 )
...
* Add mock method for getting a plugin
* Update tests to find "more" button via label
* Remove test for Silence action in rule details
* Unify alert rule actions to pull from same place
* Restore behaviour of only showing incident button when firing
* Fix identifier and pause permission/logic
* Remove TODO comment related to refactor
* Update snapshot for useAbilities
* Undo optional param
* Rename alert rule menu hook to component
* Refactor hook to component
* Rename Rule action buttons component
* Chore: update style syntax for RuleDetails
* Add tests for refactored alert rule menu
* Only re-fetch Grafana managed alerts after pausing/resuming
* Remove console log and check for extensions
* Improve share rule generation of GMA rules
* Rename component
* Update action
* Refactor plugins and fix tests
* lint
---------
Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-04-30 16:17:55 +01:00
ismail simsek
4cc6b53a6d
Chore: InfluxDB unit testing overhaul ( #86586 )
...
* move mocks into the __mocks__ folder
* refactor datasource.test.ts
* refactor datasource_backend_mode.test.ts
* add dbName tests
* prettier
* betterer
2024-04-30 09:59:42 -04:00
Tim Mulqueen
6dbc44920c
Dashboard Scene - Variable Fix: cancel out margin-bottom of placeholder in loading state ( #87107 )
...
fix: cancel out margin-bottom of placeholder in loading state
2024-04-30 10:54:25 +02:00
Konrad Lalik
9369f07e32
Alerting: Immutable plugin rules and alerting plugins extensions ( #86042 )
...
* Add pluginsApi
* Add rule origin badge
* Make plugin provided rules read-only
* Add plugin settings caching, add plugin icon on the rule detail page
* Add basic extension point for custom plugin actions
* Add support for alerting and recording rule extensions
* Move plugin hooks to their own files
* Add plugin custom actions to the alert list more actions menu
* Add custom actions renderign test
* Add more tests
* Cleanup
* Use test-utils in RuleViewer tests
* Remove __grafana_origin label from the label autocomplete
* Remove pluginsApi
* Add plugin badge tooltip
* Update tests
* Add grafana origin constant key, remove unused code
* Hide the grafana origin label
* Fix typo, rename alerting extension points
* Unify private labels handling
* Add reactive plugins registry handling
* Update tests
* Fix tests
* Fix tests
* Fix panel tests
* Add getRuleOrigin tests
* Tests refactor, smalle improvements
* Rename rule origin to better reflect the intent
---------
Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-04-30 10:34:52 +02:00
Adela Almasan
e3719471d5
Heatmap: Fix histogram highlighted series ( #86955 )
2024-04-29 16:02:38 -05:00
Andrej Ocenas
16395f9f23
Pyroscope: Add adhoc filters support ( #85601 )
...
* Add adhoc filters support
* Add tests
* refactor tests
* Add comment
* Removed empty param docs
2024-04-29 20:41:40 +02:00
Gilles De Mey
b679a32fad
Alerting: Allow deleting contact points referenced only by auto-generated policies ( #86800 )
2024-04-29 17:48:54 +01:00
Drew Slobodnjak
49fbe970fb
Canvas: Fix connection hyperbolic bug ( #87002 )
...
* Canvas: Connection original persistence check
* Canvas: Fix connection hyperbolic bug
2024-04-29 09:16:01 -07:00
Julien Duchesne
8d8f19b84f
Regenerate OpenAPI spec ( #87050 )
...
Issue: https://github.com/grafana/grafana/issues/86453
The endpoints were documented in enterprise Grafana
2024-04-29 16:27:59 +01:00
Drew Slobodnjak
7590f4afe1
Canvas: Connection original persistence check ( #86476 )
...
* Canvas: Connection original persistence check
* modify current connection state directly instead of copying and needing to call "onChange"
---------
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-04-29 08:23:26 -07:00
Alex Khomenko
4e6ba433de
Grafana/ui: Fix traces icon ( #86984 )
2024-04-29 17:55:55 +03:00
Tom Ratcliffe
0a02508415
Add more robust error handling for stringifying API responses
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
a34d22dcbf
Include alertmanager param on creation
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
e0ee0b09db
Add test to check that a broken alertmanager will handle errors correctly
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
aa2f52a2a1
Tidy up error message handling
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
fd07b3d431
Link silence test handlers together more clearly and test more cases
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
31231cf5bf
Change test render method to use locationService
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
a34c02fcf2
Address misc PR feedback
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
9860117399
Add more fine grained tag invalidation/providing for Silences
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
4fb1ac2bec
Check error state more reliably
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
a0373c66c3
Add fallback for alertmanager alerts
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
9bf2cf0a52
Rename silences RTKQ tag
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
4d4bf39184
Check for server received body
...
This is not ideal! Preference would be to have a more robust mock server
that responds to the received silence and appends it to a stateful list for the test
and then resets afterwards
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
0dc003aadc
Split handlers out into separate files
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
f419c9b53a
Add comment explaining reset in silences editor
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
df5c62b8ad
Misc tidy up
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
21a3f4817a
Add correct tag invalidation after creating a silence
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
cdfc6baea4
Remove unused fetchAlerts
method
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
f397830098
Refactor Silences test
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
10fcd541e3
Add handlers to mock server
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
341449f4f5
Remove unused actions/reducers
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
a1d2a9670b
Restructure Silences components for better separation of concerns
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
11ed882c84
Add mock server handlers necessary for Silences
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
8f27ec2521
Add silences RTK Query API
2024-04-29 14:15:48 +01:00
kay delaney
6f875188b7
Chore: Clean up package.json files ( #86951 )
...
* Chore: Clean up package.json files
Removes any unused packages, adds missing peer dependencies
2024-04-29 14:03:01 +01:00
Haris Rozajac
b52e349639
Explore and Correlations: Replace deprecated layout components ( #86967 )
...
Replace deprecated layout components
2024-04-29 13:50:03 +01:00
Piotr Jamróz
5830d6761d
ifrost/fix-link ( #86965 )
...
* Fix link label
* Switch to lowercase
2024-04-29 14:33:00 +02:00