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

Address all the query related exception thrown by Bullet

Đang mở
#1,885 1 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
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rails, ruby
Lĩnh vực
backend, databases, testing

Hướng nghiên cứu

Xem lại config/environments/test.rb và bản cập nhật Rails 5 trong pull request #1882, sau đó chạy bộ kiểm thử với Bullet exceptions được bật để xác định các truy vấn bị ảnh hưởng. Xử lý từng vấn đề n+1 hoặc eager-loading được báo cáo và xác nhận rằng các kiểm thử đều đạt mà không tắt Bullet exceptions.

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

Mô tả

Description of the issue 📄

As part of the pull request to update to Rails 5, https://github.com/codebar/planner/pull/1882, Bullet has started throwing exceptions on certain queries. For the moment we have set Bullet.raise = false in config/environments/test.rb. Bullet is still turned on it just logs any offences instead of raising exceptions.

Screenshots 📷

Steps to fix 🛠

Methodically go through all queries raising Bullet exceptions, and address the issue. It's almost always something to do with n+1 queries or eager loading.

To do 📋

  • Claim this issue (comment below, or assign yourself if you are part of the codebar org)
  • Fork and clone the repository
  • Update the relevant files. Follow the steps to fix section in this issue.
  • Commit your changes as one commit. Use the title of this issue as your commit message
  • Submit a pull request
  • Mention this issue in the PR description by including it's number
  • Have your pull request reviewed & merged by a codebar team member
Ngôn ngữ chính
Ruby
Star
104
Fork
205
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
67

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 codebar/planner

Tất cả issue của codebar/planner

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.