-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Conversation
… to be installed directly
@@ -244,8 +244,9 @@ function getPhantomPlugin(options: GetPhantomPluginOptions): DataSourcePluginMet | |||
author: { name: 'Grafana Labs' }, | |||
links: [ | |||
{ | |||
url: config.pluginCatalogURL + options.id, | |||
url: '/plugins/' + options.id, |
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 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
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 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!
public/app/features/datasources/components/DataSourceTypeCard.tsx
Outdated
Show resolved
Hide resolved
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, |
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 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!
public/app/features/datasources/components/DataSourceTypeCard.tsx
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! 🚀
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
Why do we need this feature?
Easier to install plugins for users with enterprise license.
Who is this feature for?
Enterprise license users