发布

  • [OPIK-3790] [BE] [FE] Add Group By feature for dashboard project metrics widget (#4689)

    frostbyte_neo 发布于 2026-01-26 13:14:14 +00:00

    • [OPIK-3790] [BE] [FE] Add Group By feature for dashboard project metrics widget

    Backend:

    • Add BreakdownConfig record for breakdown configuration
    • Add BreakdownField enum (NONE, TAGS, METADATA, NAME, ERROR_INFO)
    • Add BreakdownQueryBuilder utility for SQL query components
    • Update ProjectMetricsDAO with breakdown SQL queries
    • Update ProjectMetricsService with top 10 groups + Others aggregation
    • Update ProjectMetricRequest/Response with breakdown fields

    Frontend:

    • Add breakdown constants and compatibility matrix
    • Add BreakdownConfig type to dashboard types
    • Update useProjectMetric hook with breakdown parameter
    • Add Group By accordion section in ProjectMetricsEditor
    • Update MetricChartContainer to preserve backend sort order
    • Update ProjectMetricsWidget and schema for breakdown support
    • fix FE linting

    • refactor

    • add more metrics with group by breakdown

    • add BE tests

    • FE dashboard group by

    • remove project_id

    • address mutlyple metrics for grouping

    • adjust fe

    • adjust fe duration widget metric

    • fe tokens usage metrics

    • fix linting

    • fix test

    • mvn spotless:apply

    • refactor

    • Address feedback

    • address comments

    • address comments

    • Address comments

    下载附件