`POST /results/{id}/post-stratification` is published but always answers 501

未关闭 适合新手
#963 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
70/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
api, backend

调研方向

从已发布的 API 定义和 POST /results/{id}/post-stratification 的路由注册开始,然后针对本地服务器运行提供的 curl 复现步骤。检查 OpenAPI 文档是如何生成或维护的,以便该端点在实现前可以省略,或者记录为返回 4xx 响应。完成意味着已发布的 API 不再声明这个无法使用的操作,或者该操作始终返回适当的 4xx 响应,并有一个覆盖该行为的回归测试。

由索引模型根据 Issue 内容生成。

描述

bug post-launch

Sent any valid body; comes back 501 "Post-stratification is not available yet". Expected: the operation left
out of the published API document until it works (or marked so clients and fuzzing skip it), or a 4xx.
Reproduction (VIEWER): curl -X POST -H "Authorization: Bearer <VIEWER token>" -H 'Content-Type: application/json' -d '{"metric_col":"m","stratum_cols":["s"]}' http://localhost:8000/api/v1/results/<experiment id>/post-stratification

Found by API fuzzing (a local run), reproduced by hand.

主要语言
Python
星标
0
派生
4
平均合并
5 小时 19 分钟
30 天内合并 PR
503

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Controlvar/controlvar 的其他 Issue

查看 Controlvar/controlvar 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。