mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: Fix Azure Devops plugin link and plugins list order (#49394)
* Plugins: Fix Azure Devops plugin link and plugins list order * tests added for plugins sorting
This commit is contained in:
parent
9a59ccd644
commit
f9d1d8370f
@ -52,7 +52,10 @@ describe('buildCategories', () => {
|
||||
});
|
||||
|
||||
it('should add enterprise phantom plugins', () => {
|
||||
expect(categories[3].title).toBe('Enterprise plugins');
|
||||
expect(categories[3].plugins.length).toBe(17);
|
||||
const enterprisePluginsCategory = categories[3];
|
||||
expect(enterprisePluginsCategory.title).toBe('Enterprise plugins');
|
||||
expect(enterprisePluginsCategory.plugins.length).toBe(17);
|
||||
expect(enterprisePluginsCategory.plugins[0].name).toBe('AppDynamics');
|
||||
expect(enterprisePluginsCategory.plugins[enterprisePluginsCategory.plugins.length - 1].name).toBe('Wavefront');
|
||||
});
|
||||
});
|
||||
|
@ -88,7 +88,7 @@ function sortPlugins(plugins: DataSourcePluginMeta[]) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return a.name > b.name ? -1 : 1;
|
||||
return a.name > b.name ? 1 : -1;
|
||||
});
|
||||
}
|
||||
|
||||
@ -191,7 +191,7 @@ function getEnterprisePhantomPlugins(): DataSourcePluginMeta[] {
|
||||
imgUrl: 'public/img/plugins/signalfx-logo.svg',
|
||||
}),
|
||||
getPhantomPlugin({
|
||||
id: 'grafana-azure-devops-datasource',
|
||||
id: 'grafana-azuredevops-datasource',
|
||||
description: 'Azure Devops datasource',
|
||||
name: 'Azure Devops',
|
||||
imgUrl: 'public/img/plugins/azure-devops.png',
|
||||
|
Loading…
Reference in New Issue
Block a user