Skip to content

feat(den): add worker analytics snapshot#885

Closed
benjaminshafii wants to merge 1 commit intodevfrom
task/openwork-den-analytics
Closed

feat(den): add worker analytics snapshot#885
benjaminshafii wants to merge 1 commit intodevfrom
task/openwork-den-analytics

Conversation

@benjaminshafii
Copy link
Copy Markdown
Member

Summary

  • add GET /v1/workers/analytics to Den so signed-in org members can inspect worker state from the Den DB plus best-effort live Render state
  • factor the Render API client into a shared helper so provisioning and analytics use the same request, service listing, and deploy lookup logic
  • document the new endpoint in the Den README

Testing

  • CI=true pnpm install --frozen-lockfile
  • pnpm build (from services/den)
  • DATABASE_URL=\"mysql://root:password@127.0.0.1:3306/openwork_den\" BETTER_AUTH_SECRET=\"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\" BETTER_AUTH_URL=\"http://127.0.0.1:8788\" node -e \"import('./dist/workers/analytics.js').then(() => console.log('analytics module ok'))\" (from services/den)
  • DATABASE_URL=\"mysql://root:password@127.0.0.1:3306/openwork_den\" BETTER_AUTH_SECRET=\"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\" BETTER_AUTH_URL=\"http://127.0.0.1:8788\" node -e \"import('./dist/http/workers.js').then(() => console.log('workers router module ok'))\" (from services/den)

Verification notes

  • Screenshot/video evidence: N/A (API-only change)
  • I also attempted a local Den + MySQL smoke test using packaging/docker/docker-compose.web-local.yml, but Docker failed in this environment with write /var/lib/containerd/io.containerd.metadata.v1.bolt/meta.db: input/output error, so I could not complete the live API curl flow.
  • The endpoint still compiles cleanly and the built analytics + workers modules import successfully.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview, Comment Mar 13, 2026 1:15am
openwork-share Ready Ready Preview, Comment Mar 13, 2026 1:15am
openwork-software Ready Ready Preview, Comment Mar 13, 2026 1:15am

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant