Skip to content

Use org URL for cases API root#273

Merged
maximelb merged 1 commit intocli-v2from
add-cases-url
Mar 30, 2026
Merged

Use org URL for cases API root#273
maximelb merged 1 commit intocli-v2from
add-cases-url

Conversation

@maximelb
Copy link
Copy Markdown
Contributor

Summary

  • The Cases SDK now lazily resolves the cases service URL from the org URLs endpoint (org.get_urls()["cases"]) instead of hardcoding https://cases.limacharlie.io.
  • This allows proper routing to staging environments for exp-1 datacenter orgs whose org URLs return a different cases endpoint.
  • Explicit api_root parameter and LC_CASES_API_ROOT env var still take priority. Falls back to the hardcoded default if the org URL endpoint has no "cases" key or errors out.

Test plan

  • Updated TestCasesInit with tests for org URL resolution, scheme handling, caching, and error fallback
  • All 64 existing unit tests pass

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@maximelb maximelb merged commit f4c6ec2 into cli-v2 Mar 30, 2026
7 checks passed
@maximelb maximelb deleted the add-cases-url branch March 30, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant