Pyroscope: Rename phlare to grafana-pyroscope-datasource (#68859)

This commit is contained in:
Ryan McKinley
2023-06-06 20:09:29 -07:00
committed by GitHub
parent cefcbfa5ed
commit e17ef5e504
42 changed files with 48 additions and 22 deletions

View File

@ -114,6 +114,7 @@ type JSONData struct {
ID string `json:"id"`
Type Type `json:"type"`
Name string `json:"name"`
Alias string `json:"alias,omitempty"`
Info Info `json:"info"`
Dependencies Dependencies `json:"dependencies"`
Includes []*Includes `json:"includes"`
@ -165,6 +166,10 @@ func ReadPluginJSON(reader io.Reader) (JSONData, error) {
switch plugin.ID {
case "grafana-piechart-panel":
plugin.Name = "Pie Chart (old)"
case "grafana-pyroscope-datasource": // rebranding
plugin.Alias = "phlare"
case "debug": // panel plugin used for testing
plugin.Alias = "debugX"
}
if len(plugin.Dependencies.Plugins) == 0 {
@ -437,6 +442,7 @@ func (p *Plugin) ToDTO() PluginDTO {
Module: p.Module,
BaseURL: p.BaseURL,
AngularDetected: p.AngularDetected,
Alias: p.Alias,
}
}