Skip to content

feat(python-notebook-migration, config): add python-notebook-migration-enabled feature flag#5254

Open
zyratlo wants to merge 4 commits into
apache:mainfrom
zyratlo:migration-tool-enable-flag
Open

feat(python-notebook-migration, config): add python-notebook-migration-enabled feature flag#5254
zyratlo wants to merge 4 commits into
apache:mainfrom
zyratlo:migration-tool-enable-flag

Conversation

@zyratlo
Copy link
Copy Markdown
Contributor

@zyratlo zyratlo commented May 28, 2026

What changes were proposed in this PR?

Introduces a feature flag python-notebook-migration-enabled (default false) that will gate the upcoming Python-notebook to Texera-workflow migration tool. No user-visible behavior changes, the flag controls features that don't exist on main yet.

  • common/config/src/main/resources/gui.conf — declare gui.workflow.workspace.python-notebook-migration-enabled = false, with env-var override GUI_WORKFLOW_WORKSPACE_PYTHON_NOTEBOOK_MIGRATION_ENABLED.
  • common/config/src/main/scala/org/apache/texera/config/GuiConfig.scala — Scala accessor for the new field.
  • …/service/resource/ConfigResource.scala — include the flag in the runtime config payload served to the frontend.
  • frontend/src/app/common/type/gui-config.ts — add the typed field on the frontend GuiConfig interface.
  • frontend/src/app/workspace/component/menu/menu.component.ts — expose a pythonNotebookMigrationEnabled getter for downstream migration-tool UI to consume.

Any related issues, documentation, discussions?

Closes #5253
Parent issue #4301

How was this PR tested?

  • Verified the new field appears in the /api/config payload
  • Verified MenuComponent.pythonNotebookMigrationEnabled resolves
  • No new UI in this PR, existing behavior is unchanged

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.7)

zyratlo and others added 3 commits May 14, 2026 15:01
# Conflicts:
#	common/config/src/main/scala/org/apache/texera/config/GuiConfig.scala
#	config-service/src/main/scala/org/apache/texera/service/resource/ConfigResource.scala
#	frontend/src/app/common/type/gui-config.ts
@github-actions github-actions Bot added frontend Changes related to the frontend GUI common platform Non-amber Scala service paths labels May 28, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 28, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 48.95%. Comparing base (d8c254c) to head (48e8499).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...pache/texera/service/resource/ConfigResource.scala 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5254      +/-   ##
============================================
- Coverage     48.95%   48.95%   -0.01%     
- Complexity     2377     2378       +1     
============================================
  Files          1048     1048              
  Lines         40270    40271       +1     
  Branches       4272     4272              
============================================
  Hits          19714    19714              
- Misses        19402    19403       +1     
  Partials       1154     1154              
Flag Coverage Δ *Carryforward flag
access-control-service 39.53% <ø> (ø)
agent-service 33.76% <ø> (ø) Carriedforward from a42763a
amber 51.57% <ø> (ø)
computing-unit-managing-service 0.00% <ø> (ø)
config-service 0.00% <0.00%> (ø)
file-service 37.99% <ø> (ø)
frontend 40.64% <ø> (ø) Carriedforward from a42763a
python 90.79% <ø> (ø) Carriedforward from a42763a
workflow-compiling-service 56.81% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zyratlo zyratlo changed the title feat(config): add python-notebook-migration-enabled feature flag feat(python-notebook-migration, config): add python-notebook-migration-enabled feature flag May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common frontend Changes related to the frontend GUI platform Non-amber Scala service paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Notebook Migration] Add python-notebook-migration-enabled feature flag for migration-tool rollout

2 participants