Skip to content

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

Open
zyratlo wants to merge 5 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 5 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

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.66%. Comparing base (eb287f3) to head (85b2d1f).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5254      +/-   ##
============================================
- Coverage     49.97%   49.66%   -0.31%     
+ Complexity     2421     2417       -4     
============================================
  Files          1052     1052              
  Lines         40780    40751      -29     
  Branches       4356     4354       -2     
============================================
- Hits          20378    20240     -138     
- Misses        19193    19304     +111     
+ Partials       1209     1207       -2     
Flag Coverage Δ *Carryforward flag
access-control-service 41.89% <ø> (ø)
agent-service 33.76% <ø> (ø) Carriedforward from e650919
amber 51.97% <ø> (-0.04%) ⬇️
computing-unit-managing-service 1.38% <ø> (ø)
config-service 55.38% <100.00%> (+0.69%) ⬆️
file-service 38.42% <ø> (ø)
frontend 41.73% <ø> (-0.71%) ⬇️ Carriedforward from e650919
pyamber ?
python 90.80% <ø> (ø) Carriedforward from e650919
workflow-compiling-service 58.39% <ø> (ø)

*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
zyratlo added 2 commits May 28, 2026 11:22
# Conflicts:
#	config-service/src/main/scala/org/apache/texera/service/resource/ConfigResource.scala
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