Skip to content

Merchant daily performance uses inconsistent category numbering for empty vs populated results #568

Closed

Description

@StuartFerguson

BuildMerchantDailyPerformanceBaseMetrics still emits categories 0..7, while BuildMerchantDailyPerformanceMetrics now emits 1..5 plus the top-product metric.

Impact:

  • The same endpoint returns different category contracts depending on whether any sales exist
  • Consumers can no longer rely on a stable category mapping

Suggested fix:

  • Keep the category scheme consistent between the empty and populated paths, or replace it with the new Type field everywhere.
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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions