Extract exercise settings to own object for json output. Consider also change for db schema.
还没有人认领这个 Issue。
评估
调研方向
Start with the course exercise JSON endpoint in the issue and compare its current response with the proposed settings object. Then trace where exercise settings and the database schema are defined. Done means the API shape is agreed and implemented, with any required schema change covered.
由索引模型根据 Issue 内容生成。
描述
The Exercise-objects embedded in the Courses-objects provided by http://tmc.mooc.fi/hy/courses/37.json?api_version=7 are getting pretty large. Would it be possible to embed a further object of some kind in them to hold all these settings? I'm thinking something like this to provide more structure:
{
"id": 2968,
"name": "WK1-W1E00.Hiekkalaatikko",
"locked": false,
"deadline_description": "2014-09-14 18:00:00 +0300",
"deadline": "2014-09-14T18:00:00+03:00",
"checksum": "cd5e2e409e605b535d7eea2bd72231b8",
"return_url": "http://tmc.mooc.fi/hy/exercises/2968/submissions.json",
"zip_url": "http://tmc.mooc.fi/hy/exercises/2968.zip",
"returnable": true,
"requires_review": false,
"attempted": false,
"completed": false,
"reviewed": false,
"all_review_points_given": true,
"settings": {
"allow_code_reviews": true,
"allow_feedback": true,
"allow_return_expired": false,
"memory_limit": null,
"runtime_params": [],
"valgrind_strategy": "fail"
},
"solution_zip_url": "http://tmc.mooc.fi/hy/exercises/2968/solution.zip",
"exercise_submissions_url": "http://tmc.mooc.fi/hy/exercises/2968.json?api_version=7"
}
Thanks to @ljleppan for the idea!
- 主要语言
- Ruby
- 星标
- 51
- 派生
- 42
- 平均合并
- 1 小时 27 分钟
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
testmycode/tmc-server 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
testmycode/tmc-server#590 ·
-
难度 4/5 3-5 天 新手友好度 20/100
testmycode/tmc-server#576 ·
-
难度 3/5 1-2 天 新手友好度 35/100
testmycode/tmc-server#488 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
testmycode/tmc-server#487 ·
-
难度 3/5 1-2 天 新手友好度 35/100
testmycode/tmc-server#477 · 2 条评论 ·
查看 testmycode/tmc-server 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
hanami/hanami-cli#449 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
resque/resque-scheduler#826 ·
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 75/100