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

Add support for callback hooks for when submission is graded

Đang mở
#383 2 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
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
ruby
Lĩnh vực
api, backend

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ả

enhancement

Initial draft/idea

Ideally we could have 2 places to list multiple callback urls.

  1. Per course setting, configured among other course parameters
  2. 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

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.