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
PublicDashboards: Add setting to disable the feature #78894
PublicDashboards: Add setting to disable the feature #78894
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some small grammar edits and shortened the same phrase in several places. Otherwise, LGTM!
docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from the IAM perspective and in general.
I wonder if it could be made more explicit in the docs that the feature toggle still needs to be enabled to enable public dashboards. But otherwise all looks good 👌
@IevaVasiljeva As the feature toggle is enabled by default, users don't really have to know about this. They just need to not explicitly set the feature toggle to false for the feature to work. |
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Thanks for clarifying, I didn't realise that the feature toggle was enabled by default. All looks good to me then :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just left a comment to think about it.
The cutoff for Grafana 11 is March 29, we should create and issue and put something in our calendar to make the changes to remove the flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
We should check the enterprise code, I think we are using this flag somewhere (besides the email sharing one). |
docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two small tweaks. Thanks for the contribution!
@@ -61,7 +61,7 @@ export class ShareModal extends SceneObjectBase<ShareModalState> implements Moda | |||
} | |||
} | |||
|
|||
if (Boolean(config.featureToggles['publicDashboards'])) { | |||
if (Boolean(config.featureToggles['publicDashboards']) && config.publicDashboardsEnabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could reuse the new function here
public/app/features/dashboard/components/ShareModal/ShareModal.tsx
Outdated
Show resolved
Hide resolved
...ashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/NoUpsertPermissionsAlert.tsx
Show resolved
Hide resolved
.../features/dashboard/components/ShareModal/SharePublicDashboard/SharePublicDashboard.test.tsx
Outdated
Show resolved
Hide resolved
Yes the Enterprise PR is ready to be reviewed as well (just forgot to put our squad as reviewers) |
…ndex.md Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
…tps://github.com/grafana/grafana into agnestoulet/remove-publicdashboards-feature-flag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a SharePublicDashboardUtils.ts
file. I think we should add this function there.
I think it should also be renamed to utils.ts
because of the rest of the project
What is this feature?
This PR adds a setting in the configuration files to disable the public dashboards feature (enabled by default):
Why do we need this feature?
We want to remove the
publicDashboards
feature toggle as the feature is now in GA but we should keep the possibility to disable the feature as it has security implications. We want to add this setting before remove the feature toggle to give time to users who wants to disable the feature to update their configuration file.Who is this feature for?
Users who want do disable the public dashboards features.
Which issue(s) does this PR fix?:
Fixes #78050
Special notes for your reviewer:
Please check that: