Skip to content

FIX: report unknown planned for an empty count combination - #3637

Open
Manohar Paturi (ManoharPaturi) wants to merge 1 commit into
microsoft:mainfrom
ManoharPaturi:fix/analytics-empty-planned
Open

Manohar Paturi (ManoharPaturi) wants to merge 1 commit into
microsoft:mainfrom
ManoharPaturi:fix/analytics-empty-planned

Conversation

@ManoharPaturi

@ManoharPaturi Manohar Paturi (ManoharPaturi) commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes #3636

The planned sum was guarded by an all() that is vacuously true over an empty input, so combining zero count sets returned planned=0 instead of the documented None for unknown. The guard now also requires a nonempty input, so an empty group reports no plan rather than a zero plan. A nonempty input with any missing planned count behaves exactly as before.

Tests and Documentation

Added a regression test asserting an empty combination reports planned=None. It fails on main, which returns 0, and passes with the change. The full analytics suite passes (572 tests).

No documentation change needed, so I did not run JupyText.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Combining zero count sets reports planned as 0 instead of unknown

1 participant