CirclesUBI / circles-dashboard

Status dashboard and trust network explorer for Circles
GNU Affero General Public License v3.0
0 stars 0 forks source link

Add entity count in graph health #12

Open llunaCreixent opened 2 years ago

llunaCreixent commented 2 years ago

It was deleted in https://github.com/CirclesUBI/circles-dashboard/pull/11, but the visual component

import GrainIcon from '@material-ui/icons/Grain';

  <Chip
    icon={<GrainIcon />}
    label={`${health.graph.entityCount} entities`}
  />

and the complete query to the graph

{
  indexingStatusForCurrentVersion(subgraphName: "${process.env.SUBGRAPH_NAME}") {
    synced
    health
    entityCount
    fatalError {
      message
      block {
        number
        hash
      }
      handler
    }
    chains {
      chainHeadBlock {
        number
      }
      latestBlock {
        number
      }
    }
  }
}

can be added back once the index-node requests work again on thegraph.com.

llunaCreixent commented 2 years ago

index-node requests are working again!