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

Feat: Linking to plugin details page rather than externally for new datasources #63499

Merged
merged 2 commits into from
Mar 2, 2023

Conversation

tolzhabayev
Copy link
Contributor

@tolzhabayev tolzhabayev commented Feb 21, 2023

What is this feature?
This changes the target of the "Install now" buttons from external - grafana.com to an internal plugin details page. This has an advantage that if you have an enterprise license you can install the plugin directly without going to grafana.com

SCR-20230221-k5c

Why do we need this feature?
Easier to install plugins for users with enterprise license.

Who is this feature for?

Enterprise license users

@tolzhabayev tolzhabayev changed the title Linking internally rather than externally to allow enterprise plugins… Feat: Linking to plugin details page rather than externally for new datasources Feb 21, 2023
@tolzhabayev tolzhabayev self-assigned this Feb 21, 2023
@tolzhabayev tolzhabayev added this to the 9.5.0 milestone Feb 21, 2023
@tolzhabayev tolzhabayev marked this pull request as ready for review February 21, 2023 13:53
@tolzhabayev tolzhabayev requested review from a team as code owners February 21, 2023 13:53
@tolzhabayev tolzhabayev requested review from joshhunt, JoaoSilvaGrafana and jackw and removed request for a team February 21, 2023 13:53
@@ -244,8 +244,9 @@ function getPhantomPlugin(options: GetPhantomPluginOptions): DataSourcePluginMet
author: { name: 'Grafana Labs' },
links: [
{
url: config.pluginCatalogURL + options.id,
url: '/plugins/' + options.id,
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 am not quite sure if there is a better / stable way to import this route from somewhere as obviously if it changes this will break

Copy link
Contributor

Choose a reason for hiding this comment

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

I am afraid we don't have these extracted to a const yet (they are defined here as well).

Probably a good candidate for refactoring in a separate PR!

@tolzhabayev
Copy link
Contributor Author

fyi @mjseaman

@@ -244,8 +244,9 @@ function getPhantomPlugin(options: GetPhantomPluginOptions): DataSourcePluginMet
author: { name: 'Grafana Labs' },
links: [
{
url: config.pluginCatalogURL + options.id,
url: '/plugins/' + options.id,
Copy link
Contributor

Choose a reason for hiding this comment

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

I am afraid we don't have these extracted to a const yet (they are defined here as well).

Probably a good candidate for refactoring in a separate PR!

packages/grafana-data/src/types/plugin.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@jackw jackw left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@tolzhabayev tolzhabayev merged commit 0b2dfaa into main Mar 2, 2023
@tolzhabayev tolzhabayev deleted the feat/link-enterprise-links-properly branch March 2, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants