Extract exercise settings to own object for json output. Consider also change for db schema.
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 28/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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!
- Lingua principale
- Ruby
- Stelle
- 51
- Fork
- 42
- Merge medio
- 1h 27m
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di testmycode/tmc-server
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
testmycode/tmc-server#590 ·
-
Exercise Submission Failed Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
testmycode/tmc-server#576 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
testmycode/tmc-server#488 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
testmycode/tmc-server#487 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
testmycode/tmc-server#477 · 2 commenti ·
Tutte le issue di testmycode/tmc-server
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Please Drop ruby 3.2 support Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
googleapis/google-api-ruby-client#28001 · 5 reazioni ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100