#25 · Add `isTakConfigured()` guard before TAK Service calls
+90 pts awarded
View on GitLab
Description
Context
TeamCO crashes (or returns 500) when TAK Service isn't deployed. Per bot-utils convention, gate every tak-client.ts call behind a configuration guard.
Acceptance criteria
- [ ]
isTakConfigured()returns false ifTAK_SERVICE_URLenv is unset - [ ] All call sites short-circuit with a graceful empty response
- [ ] UI shows "TAK integration not enabled" pill when guard returns false
Technical hints
- Pattern:
packages/shared-utils/src/bot-utils/tak.tsalready has it for the bot — extract to a generic helper if needed
--- *Submit a merge request that says Closes #<this issue iid> in the description. On merge to main, the GitLab webhook will auto-award your bounty + the standard merge_pr (40 pts) to your scoreboard account. Email on commit must match your Authentik email.*
Relevant files
No relevant files linked yet.
Hints
No hints yet.
Activity
- +50 sp earned S bounty Jun 12
Comments
Sign in to join the discussion.
No comments yet. Be the first to weigh in.