Commit Graph

23324 Commits

Author SHA1 Message Date
grafana-pr-automation[bot]
bcee44db5f
I18n: Download translations from Crowdin (#94168)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-03 07:27:27 +03:00
Haris Rozajac
eb7573828e
Query Library: Search and filter (#94038)
* Search by query text, pagination

* Support default filtering by active datasource; filter by datasource name; improve table display

* Cleanup

* Fix update and delete url paths

* Fix test

* Use Stack, remove uneccessary function wrapper

* Notify when something is wrong with a row, add interaction tracking

* i18n
2024-10-02 11:33:14 -06:00
Misi
d3d5735098
Auth; Fix shourt url redirect when useSessionStorageForRedirection is enabled (#94163)
Fix shourt url redirect
2024-10-02 18:25:47 +02:00
Laura Benz
a0542e7307
RestoreDashboards: Fix restoring to 'Dashboards' (#94086)
* pairing WIP

* refactor: clean up

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-10-02 17:15:31 +02:00
Konrad Lalik
9fff736549
Alerting: Support k8s templates API (#92112)
Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-10-02 17:14:54 +02:00
Sonia Aguilar
fe656229c3
Alerting: Pluralize error tag (#94157) 2024-10-02 18:14:35 +03:00
Gilles De Mey
41b175e7ae
Alerting: Use useProduceNewAlertmanagerConfiguration for contact points (#88456) 2024-10-02 17:56:35 +03:00
Michael Derynck
97f480386f
Alerting: Update OnCall integration url (#93407)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-10-02 16:13:55 +02:00
Sonia Aguilar
e80ef522bb
Alerting: Hide query name when using simplified mode in the alert rule (#93779)
* Hide query name when using simplified mode in the alert rule

* rename hideName to hideRefId
2024-10-02 13:55:48 +02:00
kay delaney
dae492f6c8
PanelSearchLayout: Support repeat panels (#94140) 2024-10-02 12:27:27 +01:00
grafana-pr-automation[bot]
a7497ae846
I18n: Download translations from Crowdin (#94138)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-02 11:19:31 +01:00
Ashley Harrison
cf61ab3da2
SingleTopNav: Flip collapse arrows for better alignment (#94081)
flip megamenu arrows for better alignment
2024-10-02 11:08:34 +01:00
Misi
ddbbf8df4b
Auth: Fix redirection in case of ERR_TOKEN_REVOKED (#94137)
Fix redirection in case of token revoked error
2024-10-02 12:08:25 +02:00
linoman
763163603c
SSO LDAP: Bug-bashing follow-up changes (#94093)
* fix html encoding rendering

* Redirect to providers page

* Fix cert isEmpty

* Rework input fields into multiselect

* add disable button

* Rework MultiSelect design

* Remove prompt modal
2024-10-02 11:42:23 +02:00
Alex Khomenko
f55f7f2634
Routing: Replace Redirect component with Navigate (#94072)
* Routing: Replace Redirect with Navigate

* Use replace state

* Update routes.tsx

* Fix test
2024-10-02 09:44:18 +03:00
Brendan O'Handley
28d9cc7310
Explore metrics: Fix bug that turns off otel experience when selecting otel variables (#94106)
fix bug that turns of otel experience when selecting otel variables
2024-10-01 15:09:39 -05:00
Yuri Tseretyan
78290301f4
Alerting: Update GettableRuleGroupConfig and PostableRuleGroupConfig with missing fields supported by Prometheus (#94030) 2024-10-01 14:17:57 -04:00
grafana-pr-automation[bot]
a9095b1dd1
I18n: Download translations from Crowdin (#94076) 2024-10-01 15:27:28 +01:00
Alex Khomenko
586c95654d
Routing: Update more components using props.match to use hooks (#93918)
* RuleViewed: Get params from hook

* ProviderConfigPage: Use hooks for redux logic

* Update NewDashboardWithDS

* Update StorageFolderPage

* Update StoragePage

* Cleanup

* Update PublicDashboardPage

* Update RuleEditor

* Update BrowseFolderAlertingPage

* Update BrowseFolderLibraryPanelsPage

* Update SoloPanelPage

* Fix test

* Add useParams mocks

* Update ServiceAccountPage

* Simplify mocks

* Update SignupInvited

* Update Playlist pages

* Update AdminEditOrgPage

* Update UserAdminPage

* Update Silences

* Update BrowseDashboardsPage

* Update GrafanaModifyExport

* Update AppRootPage

* Remove useParams mock

* Update PublicDashboardsPages

* Cleanup

* Update PublicDashboardPage.test

* Cleanup

* Update PublicDashboardScenePage.test.tsx

* Update imports

* Revert AppRootPage changes

* Add back AppRootPage changes
2024-10-01 16:29:11 +03:00
Laura Benz
bc3e1df5e3
RestoreDashboards: Improve tracking (#93934)
feat: add tracking in DeleteModal
2024-10-01 15:27:25 +02:00
Alexa V
5cc11bd1a1
Dashboard Scene: Improve Angular experience (#92847)
In Dashboard Scene: 

* Display a warning in the panel header when rendering an angular panel
* Display a warning in the dashboard when rendering one or more angular panels
* Display a button to migrate in the dashboard banner
* Display a button to migrate in the panel editor
* Display a button to "Edit options" when it is an Angular panel, to open the panel JSON inspector to be able to edit the options
* Add tests

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-10-01 15:02:13 +02:00
Juan Cabanas
6c91b65aca
ShareButton: Split copy link button and dropdown (#94020) 2024-10-01 09:46:32 -03:00
grafana-pr-automation[bot]
dc31bbb555
I18n: Download translations from Crowdin (#94065)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-01 14:24:52 +02:00
Matheus Macabu
821bb235b3
CloudMigrations: document and re-generate api for syncing (#94063)
* CloudMigrations: document frontend open-api generator steps

* CloudMigrations: re-run api generation
2024-10-01 14:09:42 +02:00
Alex Khomenko
a20ebbc8f8
Routing: Replace useHistory hook (#94061)
* Update ConfigureIRM

* Update Browse
2024-10-01 14:11:58 +03:00
Tim Levett
8de1047f65
Change from Apps to "More Apps" (#93454)
* Change the label used for additional app links from apps to more apps so it doesn't conflict with applications, which is application observability, not the other bucket

* update to more apps

* more in german is mehr

* fix case, update translations correctly

* revert changes to de

* fix be tests

---------

Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-10-01 11:31:31 +01:00
Ashley Harrison
a8b94fe203
SingleTopNav: Move org switcher into Megamenu header (#94053)
move org switcher into megamenu header
2024-10-01 10:55:48 +01:00
Bogdan Matei
137da12c99
Fix panel search (#94043) 2024-10-01 12:45:31 +03:00
Sergej-Vlasov
d75fee5207
DataTrail: Remove newFiltersUI feature toggle usage from explore metrics (#93693)
remove newFiltersUI feature toggle usage from explore metrics
2024-10-01 09:45:16 +01:00
Dana Axinte
1a31abe254
CloudMigrations: Limit frontend query to get latest snapshots (#93639)
* latest param to endpoint and adapt frontend query

* change to sort param

* api

* remove description
2024-10-01 09:28:25 +01:00
grafana-pr-automation[bot]
8b6cbae96b
I18n: Download translations from Crowdin (#94032)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-01 06:22:27 +01:00
Sonia Aguilar
cebcb38df2
Alerting: Style nits for the simple query mode (#93930)
* Style nits for the simple query mode

* update translations

* update text

* update translations

* update disable word to deactivate

* update preview text when not advanced options

* update text

* update text
2024-09-30 19:47:16 +01:00
grafana-pr-automation[bot]
fcbaf188c2
I18n: Download translations from Crowdin (#94013)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-30 17:19:54 +01:00
Alexa V
8b215d60ac
Dashboard Scene: Add sceneGraph missing dependency (#94014)
Add sceneGraph missing dependency
2024-09-30 16:25:58 +01:00
Torkel Ödegaard
0c22aac7f0
Dashboards: Add support for systemPanelFilterVar and systemDynamicRowSizeVar variables in scenes (#93670)
Co-authored-by: kay delaney <kay@grafana.com>
2024-09-30 15:46:43 +01:00
Joao Silva
b937b70a46
Internationalization: Restore some plurals text (#94002) 2024-09-30 15:05:16 +01:00
grafana-pr-automation[bot]
ae05e4422d
I18n: Download translations from Crowdin (#93983)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-30 15:00:20 +01:00
Joao Silva
a45662bf2d
Revert "Restore Dashboards: Add e2e tests (again) (#93214)" (#94003) 2024-09-30 14:26:16 +01:00
Torkel Ödegaard
b17e256a3c
DashboardScene: Fixes url issue with subpath when exiting edit mode (#93962) 2024-09-30 12:19:47 +02:00
Torkel Ödegaard
1c14c85b97
Dashboards: Fixes view & edit keyboard shortcuts when grafana is behind a subpath (#93955)
DashboardScene: Fixes view & edit keyboard shortcuts when grafana is behind a subpath
2024-09-30 12:19:24 +02:00
Joao Silva
42f1fcaf2c
Restore Dashboards: Add e2e tests (again) (#93214) 2024-09-30 10:44:15 +01:00
Sonia Aguilar
fc93d6f795
Alerting: Update texts in annotations step (#93977)
* Update texts in annotations step

* add translations
2024-09-30 09:57:09 +01:00
grafana-pr-automation[bot]
ef06724a2d
I18n: Download translations from Crowdin (#93910)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-30 09:32:50 +01:00
Tom Ratcliffe
0b2478859a
Alerting: Allow linking to silence form with __alert_rule_uid__ value preset (#93526) 2024-09-30 09:20:53 +01:00
Tom Ratcliffe
e4698d9c52
Alerting: Fix eval interval not being saved when creating a new group (#93821) 2024-09-30 09:19:01 +01:00
Adela Almasan
f9f85131a9
FieldConfig: Add support for Actions (#92874)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-09-27 23:12:37 -05:00
Brendan O'Handley
54ada3fc47
Explore metrics: Fix bug when switching from OTel enabled Prometheus DS to non OTel PRometheus DS (#93941) 2024-09-27 15:03:37 -05:00
Tom Ratcliffe
fc51ec70ba
Alerting: Add manage permissions UI logic for Contact Points (#92885)
* Add showPolicies prop

* Add manage permissions component for easier reuse within alerting

* Add method for checking whether to show access control within alerting

* Remove accidental console.log from main

* Tweak styling for contact point width and add manage permissions drawer

* Improve typing for access control type response

* Add basic test for manage permissions on contact points list

* Only show manage permissions if grafana AM and alertingApiServer is enabled

* Update i18n

* Add test utils for turning features on and back off

* Add access control handlers

* Update tests with new util

* Pass AM in and add tests

* Receiver OSS resource permissions

There is a complication that is not fully addressed: Viewer defaults to read:*
and Editor defaults to read+write+delete:*

This is different to other resource permissions where non-admin are not granted
any global permissions and instead access is handled solely by resource-specific
permissions that are populated on create and removed on delete.

This allows them to easily remove permission to view or edit a single resource
from basic roles.

The reason this is tricky here is that we have multiple APIs that can
create/delete receivers: config api, provisioning api, and k8s receivers api.
Config api in particular is not well-equipped to determine when creates/deletes
are happening and thus ensuring that the proper resource-specific permissions
are created/deleted is finicky.

We would also have to create a migration to populate resource-specific
permissions for all current receivers. This migration would need to be reset so
it can run again if the flag is disabled.

* Add access control permissions

* Pass in contact point ID to receivers form

* Temporarily remove access control check for contact points

* Include access control metadata in k8s receiver List & Get

GET: Always included.
LIST: Included by adding a label selector with value `grafana.com/accessControl`

* Include new permissions for contact points navbar

* Fix receiver creator fixed role to not give global read

* Include in-use metadata in k8s receiver List & Get

GET: Always included.
LIST: Included by adding a label selector with value `grafana.com/inUse`

* Add receiver creator permission to receiver writer

* Add receiver creator permission to navbar

* Always allow listing receivers, don't return 403

* Remove receiver read precondition from receiver create

Otherwise, Creator role will not be able to create their first receiver

* Update routes permissions

* Add further support for RBAC in contact points

* Update routes permissions

* Update contact points header logic

* Back out test feature toggle refactor

Not working atm, not sure why

* Tidy up imports

* Update mock permissions

* Revert more test changes

* Update i18n

* Sync inuse metadata pr

* Add back canAdmin permissions after main merge

* Split out check for policies navtree item

* Tidy up utils and imports and fix rules in use

* Fix contact point tests and act warnings

* Add missing ReceiverPermissionAdmin after merge conflict

* Move contact points permissions

* Only show contact points filter when permissions are correct

* Move to constants

* Fallback to empty array and remove labelSelectors (not needed)

* Allow `toAbility` to take multiple actions

* Show builtin alertmanager if contact points permission

* Add empty state and hide templates if missing permissions

* Translations

* Tidy up mock data

* Fix tests and templates permission

* Update message for unused contact points

* Don't return 403 when user lists receivers and has access to none

* Fix receiver create not adding empty uid permissions

* Move SetDefaultPermissions to ReceiverPermissionService

* Have SetDefaultPermissions use uid from string

Fixes circular dependency

* Add FakeReceiverPermissionsService and fix test wiring

* Implement resource permission handling in provisioning API and renames

Create: Sets to default permissions
Delete: Removes permissions
Update: If receiver name is modified and the new name doesn't exist, it copies
the permissions from the old receiver to the newly created one. If old receiver
is now empty, it removes the old permissions as well.

* Split contact point permissions checks for read/modify

* Generalise getting annotation values from k8s entities

* Proxy RouteDeleteAlertingConfig through MultiOrgAlertmanager

* Cleanup permissions on config api reset and restore

* Cleanup permissions on config api POST

note this is still not available with feature flag enabled

* Gate the permission manager behind FF until initial migration is added

* Sync changes from config api PR

* Switch to named export

* Revert unnecessary changes

* Revert Filter auth change and implement in k8s api only

* Don't allow new scoped permissions to give access without FF

Prevents complications around mixed support for the scoped permissions causing
oddities in the UI.

* Fix integration tests to account for list permission change

* Move to `permissions` file

* Add additional tests for contact points

* Fix redirect for viewer on edit page

* Combine alerting test utils and move to new file location

* Allow new permissions to access provisioning export paths with FF

* Always allow exporting if its grafana flavoured

* Fix logic for showing auto generated policies

* Fix delete logic for contact point only referenced by a rule

* Suppress warning message when renaming a contact point

* Clear team and role perm cache on receiver rename

Prevents temporarily broken UI permissions after rename when a user's source of
elevated permissions comes from a cached team or basic role permission.

* Debug log failed cache clear on CopyPermissions

---------

Co-authored-by: Matt Jacobson <matthew.jacobson@grafana.com>
2024-09-27 19:56:32 +01:00
Sven Grossmann
157ded7c3f
Tempo: Create trace to logs links with traces in structured metadata (#93923) 2024-09-27 17:11:09 +01:00
Ihor Yeromin
d5e35c4b78
Legend: Render legend threshold colors (#92838)
* feat(barchart): render legend threshold and value mapping colors

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-09-27 17:02:03 +02:00