diff --git a/common/config/src/main/resources/gui.conf b/common/config/src/main/resources/gui.conf index 302c9f77c02..a0673c9a3fa 100644 --- a/common/config/src/main/resources/gui.conf +++ b/common/config/src/main/resources/gui.conf @@ -115,6 +115,10 @@ gui { # the limit of columns to be displayed in the result table limit-columns = 15 limit-columns = ${?GUI_WORKFLOW_WORKSPACE_LIMIT_COLUMNS} + + # whether AI python-notebook migration feature is enabled + python-notebook-migration-enabled = false + python-notebook-migration-enabled = ${?GUI_WORKFLOW_WORKSPACE_PYTHON_NOTEBOOK_MIGRATION_ENABLED} } # whether to show the "Powered by Texera" attribution link in the sidebar diff --git a/common/config/src/main/scala/org/apache/texera/config/GuiConfig.scala b/common/config/src/main/scala/org/apache/texera/config/GuiConfig.scala index 32ce7ea7af1..3064f0584c2 100644 --- a/common/config/src/main/scala/org/apache/texera/config/GuiConfig.scala +++ b/common/config/src/main/scala/org/apache/texera/config/GuiConfig.scala @@ -75,4 +75,6 @@ object GuiConfig { conf.getInt("gui.workflow-workspace.limit-columns") val guiAttributionEnabled: Boolean = conf.getBoolean("gui.attribution-enabled") + val guiWorkflowWorkspacePythonNotebookMigrationEnabled: Boolean = + conf.getBoolean("gui.workflow-workspace.python-notebook-migration-enabled") } diff --git a/config-service/src/main/scala/org/apache/texera/service/resource/ConfigResource.scala b/config-service/src/main/scala/org/apache/texera/service/resource/ConfigResource.scala index 2614719040c..bdbeecc1551 100644 --- a/config-service/src/main/scala/org/apache/texera/service/resource/ConfigResource.scala +++ b/config-service/src/main/scala/org/apache/texera/service/resource/ConfigResource.scala @@ -59,6 +59,7 @@ class ConfigResource { "copilotEnabled" -> GuiConfig.guiWorkflowWorkspaceCopilotEnabled, "limitColumns" -> GuiConfig.guiWorkflowWorkspaceLimitColumns, "attributionEnabled" -> GuiConfig.guiAttributionEnabled, + "pythonNotebookMigrationEnabled" -> GuiConfig.guiWorkflowWorkspacePythonNotebookMigrationEnabled, // flags from the auth.conf if needed "expirationTimeInMinutes" -> AuthConfig.jwtExpirationMinutes ) diff --git a/frontend/src/app/common/type/gui-config.ts b/frontend/src/app/common/type/gui-config.ts index 63531ee91ba..abdb4067b2c 100644 --- a/frontend/src/app/common/type/gui-config.ts +++ b/frontend/src/app/common/type/gui-config.ts @@ -44,6 +44,7 @@ export interface GuiConfig { copilotEnabled: boolean; limitColumns: number; attributionEnabled: boolean; + pythonNotebookMigrationEnabled: boolean; } export interface SidebarTabs {