Skip to content

Filter allocated nodes from unallocated power reports - #10270

Open
mcagnion wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
mcagnion:bugfix/power-report-allocated-filter
Open

Filter allocated nodes from unallocated power reports#10270
mcagnion wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
mcagnion:bugfix/power-report-allocated-filter

Conversation

@mcagnion

@mcagnion mcagnion commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Related to #3810 (partial overlap; this does not close the issue).

Description of the problem being solved:

Allocated passive nodes could appear in Show Unallocated when their computed power was positive, so the report did not match the selected mode.

Explicitly exclude allocated entries from unallocated modes while preserving Show Allocated behavior, including allocated nodes whose removal power is negative.

Steps taken to verify a working solution:

  • Added focused tests covering both regression cases: Show Unallocated excludes a positive-power allocated node, while Show Allocated retains a negative-power allocated node.

Before screenshot:

before-show-unallocated-allocated-resolute-technique

After screenshot:

after-show-unallocated-allocated-resolute-technique

Keep Show Unallocated aligned with its label while preserving negative-power entries in Show Allocated.

Extract this independent fix from the Weighted Score work because the bug already exists on the upstream base. Related issue 3810 covers a broader refresh problem and is not closed by this change.
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.

1 participant