Rename behavior related to the interactive learning plugin (#112752)
This commit is contained in:
@@ -2047,8 +2047,8 @@ var (
|
||||
Expression: "false",
|
||||
},
|
||||
{
|
||||
Name: "grafanaPathfinder",
|
||||
Description: "Enables Pathfinder app",
|
||||
Name: "interactiveLearning",
|
||||
Description: "Enables the interactive learning app",
|
||||
Stage: FeatureStagePublicPreview,
|
||||
Owner: grafanaPathfinderSquad,
|
||||
},
|
||||
|
||||
@@ -263,7 +263,7 @@ favoriteDatasources,experimental,@grafana/plugins-platform-backend,false,false,t
|
||||
newLogContext,experimental,@grafana/observability-logs,false,false,true
|
||||
newClickhouseConfigPageDesign,privatePreview,@grafana/partner-datasources,false,false,false
|
||||
teamFolders,experimental,@grafana/grafana-search-navigate-organise,false,false,false
|
||||
grafanaPathfinder,preview,@grafana/pathfinder,false,false,false
|
||||
interactiveLearning,preview,@grafana/pathfinder,false,false,false
|
||||
alertingTriage,experimental,@grafana/alerting-squad,false,false,true
|
||||
graphiteBackendMode,privatePreview,@grafana/partner-datasources,false,false,false
|
||||
azureResourcePickerUpdates,preview,@grafana/partner-datasources,false,false,true
|
||||
|
||||
|
@@ -1062,9 +1062,9 @@ const (
|
||||
// Enables team folders functionality
|
||||
FlagTeamFolders = "teamFolders"
|
||||
|
||||
// FlagGrafanaPathfinder
|
||||
// Enables Pathfinder app
|
||||
FlagGrafanaPathfinder = "grafanaPathfinder"
|
||||
// FlagInteractiveLearning
|
||||
// Enables the interactive learning app
|
||||
FlagInteractiveLearning = "interactiveLearning"
|
||||
|
||||
// FlagAlertingTriage
|
||||
// Enables the alerting triage feature
|
||||
|
||||
@@ -1824,6 +1824,7 @@
|
||||
"name": "grafanaPathfinder",
|
||||
"resourceVersion": "1760434668782",
|
||||
"creationTimestamp": "2025-08-20T12:30:29Z",
|
||||
"deletionTimestamp": "2025-10-21T16:10:16Z",
|
||||
"annotations": {
|
||||
"grafana.app/updatedTimestamp": "2025-10-14 09:37:48.782577 +0000 UTC"
|
||||
}
|
||||
@@ -2008,6 +2009,18 @@
|
||||
"codeowner": "@grafana/partner-datasources"
|
||||
}
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"name": "interactiveLearning",
|
||||
"resourceVersion": "1761063016739",
|
||||
"creationTimestamp": "2025-10-21T16:10:16Z"
|
||||
},
|
||||
"spec": {
|
||||
"description": "Enables the interactive learning app",
|
||||
"stage": "preview",
|
||||
"codeowner": "@grafana/pathfinder"
|
||||
}
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"name": "investigationsBackend",
|
||||
@@ -4177,11 +4190,14 @@
|
||||
{
|
||||
"metadata": {
|
||||
"name": "zanzanaNoLegacyClient",
|
||||
"resourceVersion": "1760953975541",
|
||||
"creationTimestamp": "2025-10-20T09:52:55Z"
|
||||
"resourceVersion": "1761063016739",
|
||||
"creationTimestamp": "2025-10-20T09:52:55Z",
|
||||
"annotations": {
|
||||
"grafana.app/updatedTimestamp": "2025-10-21 16:10:16.739546 +0000 UTC"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"description": "Use openFGA as main authorization engine and disable legacy RBAC client.",
|
||||
"description": "Use openFGA as main authorization engine and disable legacy RBAC clietn.",
|
||||
"stage": "experimental",
|
||||
"codeowner": "@grafana/identity-access-team",
|
||||
"hideFromAdminPage": true,
|
||||
|
||||
@@ -246,7 +246,6 @@ func isSupportBundlesEnabled(s *ServiceImpl) bool {
|
||||
}
|
||||
|
||||
// addHelpLinks adds a help menu item to the navigation bar.
|
||||
// If the Grafana Pathfinder plugin is installed, it will handle enriching the help menu.
|
||||
func (s *ServiceImpl) addHelpLinks(treeRoot *navtree.NavTreeRoot, c *contextmodel.ReqContext) {
|
||||
if s.cfg.HelpEnabled {
|
||||
helpNode := &navtree.NavLink{
|
||||
@@ -261,12 +260,12 @@ func (s *ServiceImpl) addHelpLinks(treeRoot *navtree.NavTreeRoot, c *contextmode
|
||||
treeRoot.AddSection(helpNode)
|
||||
|
||||
ctx := c.Req.Context()
|
||||
// The docs plugin ID is going to transition from grafana-grafanadocsplugin-app to grafana-pathfinder-app.
|
||||
// The interactive learning plugin ID is transitioning from grafana-grafanadocsplugin-app to grafana-pathfinder-app.
|
||||
// Support both until that migration is complete.
|
||||
_, oldPathfinderInstalled := s.pluginStore.Plugin(ctx, "grafana-grafanadocsplugin-app")
|
||||
_, newPathfinderInstalled := s.pluginStore.Plugin(ctx, "grafana-pathfinder-app")
|
||||
if oldPathfinderInstalled || newPathfinderInstalled {
|
||||
// Add a custom property to indicate this should open Grafana Pathfinder.
|
||||
_, oldInteractiveLearningPluginInstalled := s.pluginStore.Plugin(ctx, "grafana-grafanadocsplugin-app")
|
||||
_, newInteractiveLearningPluginInstalled := s.pluginStore.Plugin(ctx, "grafana-pathfinder-app")
|
||||
if oldInteractiveLearningPluginInstalled || newInteractiveLearningPluginInstalled {
|
||||
// Add a custom property to indicate this should open the interactive learning plugin if available.
|
||||
helpNode.HideFromTabs = true
|
||||
}
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ func (cfg *Cfg) readPluginSettings(iniFile *ini.File) error {
|
||||
if cfg.IsFeatureToggleEnabled("grafanaAdvisor") { // Use literal string to avoid circular dependency
|
||||
preinstallPluginsAsync["grafana-advisor-app"] = InstallPlugin{"grafana-advisor-app", "", ""}
|
||||
}
|
||||
if cfg.IsFeatureToggleEnabled("grafanaPathfinder") { // Use literal string to avoid circular dependency
|
||||
if cfg.IsFeatureToggleEnabled("interactiveLearning") { // Use literal string to avoid circular dependency
|
||||
preinstallPluginsAsync["grafana-pathfinder-app"] = InstallPlugin{"grafana-pathfinder-app", "", ""}
|
||||
}
|
||||
cfg.processPreinstallPlugins(rawInstallPluginsAsync, preinstallPluginsAsync)
|
||||
|
||||
Reference in New Issue
Block a user