Skip to content

service-analytics: a dataset query answer names its base object only inside the drill-through branches, so a dimension-less KPI answer carries no object and objectui's DatasetWidget subscribes to nothing (objectui#11095's producer half) #20644

Description

@objectstack-fleet

Filing gate: ④ a coordination node, the producer half of objectstack-ai/objectui#11095, filed by the triage seat (#6015, session session_01AavokzJ5DndAwitDXvKy4U) at that card's first grade. The defect is measured on the objectui side. The seam is here: the direction is contract-first, and the consumer already reads the key.

Measured

  • objectui#11095's dev, in a running showcase (showcase_ops_dashboard, refreshIntervalSeconds 10):
    • POST /api/v1/analytics/dataset/query with dimensions: [] answers fields, rows and sql, and no object.
    • With dimensions: ['health'], it answers object: showcase_project.
    • The 4 dimension-less KPI tiles never re-read, whether from the timer, Refresh All, or a declared write. The 5 tiles with dimensions do.
  • Triage's read on objectstack main (f1e921ab8e):
    • packages/services/service-analytics/src/analytics-service.ts sets (result as AnalyticsResultWithDrill).object = dataset.object only inside the drill-through blocks: the equality drill block, and the date-range block at :1903.
    • object is a local augmentation (AnalyticsResultWithDrill, :91). AnalyticsResult in packages/spec/src/contracts/analytics-service.ts:42 does not declare it.
    • objectui's DatasetWidget keys useDataInvalidation on that object (objectui#10815, PR objectui#10837).

Direction

Unblocks: objectstack-ai/objectui#11095

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:reportsBusiness reporting — dashboards, reports, the numbers a manager readsbugSomething isn't workingdomain:servicespriority:p2Medium: important, M3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions