Skip to content

← Back to list feature

Grouped Reporting - Consistent Aggregation

report-grouped endpoint with filters consistent with the raw report, so the FE does not need two parsers.

Shared filter between raw and grouped report, aggregation via GROUP BY.

Problem

FE needs different parsers for raw vs grouped; aggregation output inconsistent.

Decision

Shared filter; grouped uses reference grouping (in/out) or consecutive grouping (all).

Result

One FE parser handles both; aggregation output consistent with raw.

Implementation

  • Filter is shared between raw and grouped - duplicate validation on the FE.
  • Reference grouping when type ∈ in/out; consecutive grouping when type = all.

Related screenshots

Ordered by created_date DESC, id DESC. Filters: start_date, end_date, type, item_id[].