Advisor: Add human readable name to check types (#105717)

This commit is contained in:
Andres Martinez Gotor
2025-05-21 15:23:08 +02:00
committed by GitHub
parent c012480fd6
commit 269226cb50
8 changed files with 43 additions and 6 deletions
@@ -87,6 +87,10 @@ func (c *check) ID() string {
return CheckID
}
func (c *check) Name() string {
return "Data Source"
}
func (c *check) Init(ctx context.Context) error {
return nil
}
@@ -154,7 +158,7 @@ func (s *healthCheckStep) Title() string {
}
func (s *healthCheckStep) Description() string {
return "Checks if a data sources is healthy."
return "Checks if a data source is healthy."
}
func (s *healthCheckStep) Resolution() string {
@@ -228,7 +232,7 @@ func (s *missingPluginStep) Title() string {
}
func (s *missingPluginStep) Description() string {
return "Checks if the plugin associated with the data source is installed."
return "Checks if the plugin associated with the data source is installed and available."
}
func (s *missingPluginStep) Resolution() string {
@@ -263,7 +267,7 @@ func (s *missingPluginStep) Run(ctx context.Context, log logging.Logger, obj *ad
if len(plugins) > 0 {
// Plugin is available in the repo
links = append(links, advisor.CheckErrorLink{
Message: "Install plugin",
Message: "View plugin",
Url: fmt.Sprintf("/plugins/%s", ds.Type),
})
}