Skip to main content

CR List Count

This page explains how Caution Report diagnose-code counts are loaded.

API Endpoints

  • GET /data/caution-report/all/count

Purpose

Count flow gives quick summary of active CR volume by diagnose code.

Current response has two counters:

  • networkCount
  • serviceCount

Business meaning

This flow is not portal pagination total.

It is separate summary flow used to show how many CRs currently match high-level count filters, split by diagnose code.

Flow summary

StepBusiness meaning
resolve date range to UTCcount window is normalized
check admin vs non-adminrole affects visible workgroups
if NOC user, force allowed workgroupscount scope is narrowed
apply source and creator filterssummary can be scoped
query grouped diagnose-code countsbackend aggregates by NETWORK and SERVICE
map missing groups to zerostable response shape is preserved
return networkCount and serviceCountUI summary cards can render

Implementation note

This matches current implementation:

  • backend exposes GET data/caution-report/all/count
  • backend counts by diagnose code, not paginated row total
  • mobile uses this endpoint for summary cards
  • portal list total still comes from GET data/caution-report/all

Code refs:

  • intt-mobile/lib/services/caution_report_service.dart:129
  • intt-mobile/lib/screens/caution_report/caution_report_screen.dart:231
  • mvp2-data-service/src/modules/caution-report/caution-report.controller.ts:233
  • mvp2-data-service/src/modules/caution-report/caution-report.service.ts:657

What this flow does not mean

  • it does not replace CR list query
  • it does not drive portal pagination total
  • it does not apply full list-filter matrix like status, region, or TMF fields