Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboards: Fix dashboard listing when user can't list any folders #77983

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

IevaVasiljeva
Copy link
Contributor

@IevaVasiljeva IevaVasiljeva commented Nov 10, 2023

What is this feature?

Allow a user to correctly list dashboards when no folders exist in the organization or when the user isn't allow to list any folders in this organization.

Before the change:

Screenshare.-.2023-11-10.10_46_27.AM.mp4

After the change:

Screenshare.-.2023-11-10.10_45_09.AM.mp4

Why do we need this feature?

Currently dashboard and folder listing page is broken if the user isn't allowed to list any folders.

Who is this feature for?

All users.

Which issue(s) does this PR fix?:

Related to #77803 (comment)

Fixes #77985

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@IevaVasiljeva IevaVasiljeva merged commit 6097ff2 into main Nov 10, 2023
31 checks passed
@IevaVasiljeva IevaVasiljeva deleted the fix-dash-and-folder-listing branch November 10, 2023 11:27
grafana-delivery-bot bot pushed a commit that referenced this pull request Nov 10, 2023
…77983)

* return empty list of folder if the user doesn't have the permissions to view folders

* fix the empty folder list initialisation

(cherry picked from commit 6097ff2)
IevaVasiljeva added a commit that referenced this pull request Nov 10, 2023
…folders (#77988)

Dashboards: Fix dashboard listing when user can't list any folders (#77983)

* return empty list of folder if the user doesn't have the permissions to view folders

* fix the empty folder list initialisation

(cherry picked from commit 6097ff2)

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
@aangelisc aangelisc modified the milestones: 10.3.x, 10.2.3 Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't list dashboards without access to a folder
3 participants