Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Extract exercise settings to own object for json output. Consider also change for db schema.

Đang mở
#205 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
28/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
ruby
Lĩnh vực
api, database

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

easy enhancement lowprio

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!

Ngôn ngữ chính
Ruby
Star
51
Fork
42
Merge trung bình
1 giờ 27 phút
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của testmycode/tmc-server

Tất cả issue của testmycode/tmc-server

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.