Extract exercise settings to own object for json output. Consider also change for db schema.
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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!
- Dominant language
- Ruby
- Stars
- 51
- Forks
- 42
- Avg merge
- 1h 27m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from testmycode/tmc-server
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
testmycode/tmc-server#590 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
testmycode/tmc-server#576 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
testmycode/tmc-server#488 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
testmycode/tmc-server#487 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
testmycode/tmc-server#477 · 2 comments ·
All issues in testmycode/tmc-server
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
バグ
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
voxpupuli/puppet-epel#186 · 1 comment ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) OpenBug Frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100