Add Cosmos DB 'orders' container to infra
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- azure, powershell
- 领域
- cloud, infrastructure
调研方向
首先找到用于预配 Cosmos DB 产品容器的基础设施文件;issue 没有指定文件路径或测试。阅读该容器的声明方式,然后确定如何预配分区键为 /customerId 的订单容器。完成标准是全新部署包含这两个容器,并且启动初始化不再在订单步骤失败。
由索引模型根据 Issue 内容生成。
描述
Problem
GET /orders returned 500 on the app service
Root cause
CosmosDbService.InitializeAsync runs these steps in order: create db → create products → create orders (pk /customerId) → seed products → seed orders. The app's managed identity has Cosmos DB Built-in Data Contributor, which can't create containers with an AAD token. The orders step failed with 403 / substatus 5300 (POST /dbs/catalogdb/colls), and startup init stopped there.
The products seed never ran → products had 0 documents → empty list.
orders didn't exist → GetOrdersAsync got a 404 → 500.
The IaC only provisioned products, so every fresh deployment reproduces this.
- 主要语言
- PowerShell
- 星标
- 45
- 派生
- 76
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
CRT transfer manager mutates the caller's ExtraArgs, so reusing the dict fails on the next upload未关闭
难度 2/5 1-3 小时 新手友好度 82/100
boto/s3transfer#433 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
-
S3 input fails in Docker image: DuckDB can't find home directory可能已有人在做 @jnioche 于 1 天前认领。 未关闭bug docker reporting
难度 2/5 1-3 小时 新手友好度 78/100
DigitalPebble/spruce#315 ·
维护者通常 1 天内回复