desci-labs / nodes

Secure PID containers for interoperable research objects
https://dpid.org
MIT License
41 stars 5 forks source link

Node debug route #467

Closed m0ar closed 2 months ago

m0ar commented 2 months ago

Adds /v1/admin/debug/:uuid and /v1/admin/debug routes to automatically sanity check nodes.

Does this stuff, among other things:

The non-uuid route takes args to search in time over recent activity/node creation, super useful but will result in a ton of activity all over the cluster if not used carefully :p

type DebugAllNodesQueryParams = {
  fromDate?: string,
  toDate?: string,
  timeColumn?: "createdAt" | "updatedAt",
};