chore(convolens): db logical names + env defaults (PR 4/5)#78
Conversation
Decouple the Cosmos logical database name from the Azure resource-naming prefix so the brand rename can land independently of an Azure resource rename. - apps/api/.env.example: header → ConvoLens; DB_NAME, AZURE_COSMOS_DATABASE, AZURE_SQL_DATABASE example values → convolens - apps/web/.env.example: header → ConvoLens - apps/api/src/config/azure/index.ts: AZURE_COSMOS_DATABASE default → 'convolens' - infra/bicep/main.bicep: header → ConvoLens; new param `databaseName` defaulting to 'convolens', wired into Cosmos module instead of `databaseName: projectName` so DB names move while resource names stay Azure resource names INTENTIONALLY UNCHANGED (rg-whatssummarize-*, kvwhatssummarizedev, cosmos-whatssummarize-dev, oai-whatssummarize-dev, etc.). Separate user decision tracked elsewhere. infra/scripts/* are unchanged for the same reason — PROJECT_NAME there drives resource lookups. Production note: any prod env using DB_NAME=whatssummarize for an already-deployed Cosmos database needs to set DB_NAME=whatssummarize explicitly at deploy time until data migrates. New deployments default to convolens. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.



Summary
PR 4 of 5 in the convolens rename. Decouples the Cosmos logical database name from the Azure resource-naming prefix so the brand rename can land without renaming any Azure resources.
Changes (4 files, +15/-10)
Azure resource names — intentionally unchanged
`rg-whatssummarize-`, `kvwhatssummarizedev`, `cosmos-whatssummarize-dev`, `oai-whatssummarize-dev`, etc. all stay. Separate Azure rename decision is queued. `infra/scripts/` PROJECT_NAME also unchanged for the same reason — those drive resource lookups, not naming logic.
Production deploy note
The Bicep change deploys a new `convolens` Cosmos database on the existing `cosmos-whatssummarize-dev` account. Any prod env currently pointing app config at `DB_NAME=whatssummarize` needs an explicit override at deploy time until the data migrates over.
Test plan
🤖 Generated with Claude Code