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

Support Handling Of Error But Do Not Report To Rollbar

Đang mở
#1,151 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/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ệ
elasticsearch, rails, ruby
Lĩnh vực
api, backend

Hướng nghiên cứu

Trước tiên, hãy xem hướng dẫn báo cáo lỗi trong README và lib/bug_report_templates/rails_5_master.rb, sau đó lần theo cách JSON API Resources xử lý các lỗi Elastic Search và gán action_dispatch.exception. Issue không cung cấp tệp mã nguồn hay điểm bắt đầu của bài kiểm thử; để hoàn thành, cần có một cách được tài liệu hóa và kiểm thử để trả về lỗi JSON API mà không kích hoạt việc reporting ở cấp framework.

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

Mô tả

We are using JSON API Resources on top of Elastic Search for some of our search endpoints. When bad input is submitted, Elastic Search appropriately raises an error. JSON API appropriately handles the error and returns a JSON API response. However, it also places the error in action_dispatch.exception where the error is picked up by other parts of the application. In our case, Rollbar detects the exception and it is reported.

Currently, the only way to avoid this is to whitelist the exception and handle it ourselves. Would it be possible to let JSON API continue to handle it but just not notify the framework?

This issue is a (choose one):

  • Problem/bug report.
  • Feature request.
  • Request for support. Note: Please try to avoid submitting issues for support requests. Use Gitter instead.

Checklist before submitting:

  • I've searched for an existing issue.
  • I've asked my question on Gitter and have not received a satisfactory answer.
  • I've included a complete bug report template. This step helps us and allows us to see the bug without trying to reproduce the problem from your description. It helps you because you will frequently detect if it's a problem specific to your project.
  • The feature I'm asking for is compliant with the JSON:API spec.

Description

Choose one section below and delete the other:

Bug reports:

Please review Did you find a bug? and replace this content with a brief summary of your issue. If you can't submit a bug report template please be as thorough as possible when describing your your description. It's helpful to indicate which version of ruby and the JR gem you are using.

Features:

Please replace this line with a clear writeup of your feature request. Features that break compliance with the JSON:API spec will probably be closed.

Ngôn ngữ chính
Ruby
Star
2.3k
Fork
546
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 JSONAPI-Resources/jsonapi-resources

Tất cả issue của JSONAPI-Resources/jsonapi-resources

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.