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

PublicDashboards: Email sharing #63762

Merged
merged 41 commits into from
Feb 28, 2023
Merged

Conversation

juanicabanas
Copy link
Contributor

@juanicabanas juanicabanas commented Feb 24, 2023

What is this feature?

Email sharing option is added for enterprise.
Once enabled, you will be able to share a public dashboard just for the emails you added in the configuration modal.

Why do we need this feature?

It adds a new way of sharing a public dashboard.

Who is this feature for?

Enterprise users

Which issue(s) does this PR fix?:

Fixes #4402, #4401, #4399

email-sharing-demo.mov

juanicabanas and others added 30 commits January 31, 2023 17:08
…m:grafana/grafana into juanicabanas/sharePublicDashboardRefactor
@juanicabanas juanicabanas requested review from axelavargas, polibb, ashharrison90, JoaoSilvaGrafana and evictorero and removed request for a team February 27, 2023 13:42
@juanicabanas juanicabanas self-assigned this Feb 27, 2023
@juanicabanas juanicabanas added this to the 9.5.0 milestone Feb 27, 2023
Comment on lines 32 to 33
// @ts-ignore
return requestOptions.manageError ? requestOptions.manageError(error) : { error };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not disable the type checker. This will break Grafana in unknown ways. We cannot introduce more type holes and unreliability.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead, I would suggest to revert manageError to accept unknown again, and within your getConfigError/manageError function, you can check if it has a status field after using isFetchError

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know about that isFetchError function. Looks better now!

@juanicabanas
Copy link
Contributor Author

Making some little modifications

Copy link
Collaborator

@imatwawana imatwawana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a number of style/formatting edits.

docs/sources/dashboards/dashboard-public/index.md Outdated Show resolved Hide resolved
docs/sources/dashboards/dashboard-public/index.md Outdated Show resolved Hide resolved
docs/sources/dashboards/dashboard-public/index.md Outdated Show resolved Hide resolved
docs/sources/dashboards/dashboard-public/index.md Outdated Show resolved Hide resolved
docs/sources/dashboards/dashboard-public/index.md Outdated Show resolved Hide resolved
docs/sources/dashboards/dashboard-public/index.md Outdated Show resolved Hide resolved
@owensmallwood
Copy link
Contributor

Only issue I ran into was the frontend validation won't let me invite a comma separated list of emails.

Screenshot 2023-02-27 at 12 25 49 PM

@juanicabanas
Copy link
Contributor Author

Only issue I ran into was the frontend validation won't let me invite a comma separated list of emails.

Screenshot 2023-02-27 at 12 25 49 PM

@owensmallwood for this v1 we don't support a bulk operation

Copy link
Collaborator

@imatwawana imatwawana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good!

docs/sources/dashboards/dashboard-public/index.md Outdated Show resolved Hide resolved
Copy link
Contributor

@owensmallwood owensmallwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍 Nice work!

@juanicabanas juanicabanas merged commit 4e74768 into main Feb 28, 2023
@juanicabanas juanicabanas deleted the juanicabanas/emailSharingFeature branch February 28, 2023 12:02
ryantxu pushed a commit that referenced this pull request Mar 2, 2023
Feature for sharing a public dashboard by email
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

6 participants