Add support for callback hooks for when submission is graded
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
- 30/100
Hướng nghiên cứu
Start with lib/sandbox_results_saver.rb around line 59, where the submission is graded and saved. Compare the proposed per-course callback setting with callback URLs supplied at submission creation, then resolve whether callbacks run during the HTTP request or through the background tasker; the work is done when both configuration paths and callback execution behavior are defined and implemented.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Initial draft/idea
Ideally we could have 2 places to list multiple callback urls.
- Per course setting, configured among other course parameters
- Callback url given when submission is created, persisted into db (array?)
And after submission is graded and saved here: https://github.com/testmycode/tmc-server/blob/master/lib/sandbox_results_saver.rb#L59 we would call all of the callback urls provided.
This would make the callbacks to take place during the the http post received from tmc-sandbox, but it shouldn't be a problem tmc-sandbox won't really mind if it takes any longer.
Other option would be to store the callbacks in db and extend the current background tasker to make these callbacks. Eventually this would better allow to retry failing callbacks. But the
Use case
Integration with various services, e.g. A+ and Artos random web apps.
- 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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của testmycode/tmc-server
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
testmycode/tmc-server#590 ·
-
Exercise Submission Failed Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
testmycode/tmc-server#576 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
testmycode/tmc-server#488 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
testmycode/tmc-server#487 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
testmycode/tmc-server#477 · 2 bình luận ·
Tất cả issue của testmycode/tmc-server
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
ds-drift
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
we-promise/sure#3693 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
simp/pupmod-simp-simp#395 ·