SEED-platform / seed

Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
Other
107 stars 55 forks source link

Handle empty cycles on portfolio summary #4553

Closed perryr16 closed 7 months ago

perryr16 commented 7 months ago

Any background context you want to provide?

What's this PR do?

Handles the case when the current cycle (or baseline cycle) has no data.

Note: Things break down if baseline and current cycles have no overlapping data. The property filter can only filter one cycle at a time, meaning the second filter request uses the property ids from the first. If there are no overlapping properties the second filter will return empty. Fixing this would be very difficult.

How should this be manually tested?

create a goal with an empty baseline cycle create a goal with an empty current cycle create a goal with empty current and baseline cycles

What are the relevant tickets?

Screenshots (if appropriate)

Current Cycle Empty Screenshot 2024-02-28 at 5 28 36 PM Baseline Cycle Empty Screenshot 2024-02-28 at 5 28 08 PM Both Cycles Empty Screenshot 2024-02-28 at 5 27 32 PM

perryr16 commented 7 months ago

closing to resolve conflicts locally