Skip to content

feat(files): allow up to 7 parallel batches in the Files planner - #203

Merged
NityamPareek merged 2 commits into
mainfrom
feat/files-max-parallel-batches-7
Oct 14, 2026
Merged

NityamPareek merged 2 commits into
mainfrom
feat/files-max-parallel-batches-7

Conversation

@NityamPareek

@NityamPareek NityamPareek commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

In the Files planner (OneDrive / SharePoint), the Parallel Batches slider only goes up to 5. Users need to plan with up to 7 migration batches running in parallel.

Change

  • ui/files_ui.py: build_migration_plan_options(..., max_parallel_batches=5) → 7. The slider now runs from 1 to 7 in whole-number steps (number_of_steps = max - 1).
  • The default stays at 5.
  • A note under the slider says: "6 parallel batches are only supported for 15k+ licenses; 7 parallel batches are only supported for 50k+ licenses." ui_utils.build_migration_plan_options gets an optional parallel_batches_disclaimer argument for this. Exchange doesn't pass it, so its layout is unchanged.
  • Applies to both Shallow Scan and Deep Scan. Both modes use the same slider. Turning on Shallow Scan only disables the Deep-Scan-only checkboxes, not this slider. Both modes calculate the ETA with calculate_migration_batches, which uses the slider value. In Shallow Scan it's called through calculate_batches_with_shallow_exclusions. Recalculating from an uploaded site_report.csv uses the same slider value too.
  • No other code assumes a maximum of 5.
  • The Exchange planner (max 20) and the Chat planner are unchanged. The README doesn't mention a maximum of 5, so it needs no update.

Testing

  • python3 -m py_compile ui/files_ui.py
  • python3 -m unittest tests.files.shallow_estimator_test: all tests pass.
  • Not yet checked in the running app: that the slider stops at 1–7 and the ETA / Gantt chart shows 7 lanes when set to 7.
Raise the Parallel Batches slider max from 5 to 7. The default stays at 5.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the configuration view in ui/files_ui.py by increasing the max_parallel_batches parameter from 5 to 7 in the migration plan options. There are no review comments, and I have no feedback to provide.

Show under the Files Parallel Batches slider that 6 batches need 15k+ licenses and 7 need 50k+. build_migration_plan_options gets an optional parallel_batches_disclaimer; Exchange is unchanged.
@NityamPareek
NityamPareek merged commit 9546c68 into main Oct 14, 2026
10 checks passed
@NityamPareek
NityamPareek deleted the feat/files-max-parallel-batches-7 branch October 14, 2026 08:22

@akpaintingmaster-a11y akpaintingmaster-a11y left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting to see how this works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants