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

IndexRepository: retire scope-blind read methods (find_by_owner, …)

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend, databases

Hướng nghiên cứu

Start with find_by_owner in infra/persistence/index/protocols.py and its implementation in IndexRepository, then follow the router pass-through to confirm nothing in src/ calls it. Decide whether to delete it or add app_id and project_id parameters, and check for sibling scope-blind reads. Done when no method addresses index rows without scope, the router no longer exposes the blind path, and the existing tests pass.

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

Mô tả

enhancement

The primary-key fix removes get_by_id from IndexRepository because id is unique only within (app_id, project_id). find_by_owner(owner_id, *, limit) (infra/persistence/index/protocols.py) has the same blind spot — it reads across every app/project for an owner — and currently has no caller in src/ besides the router pass-through.

Remove it (and any sibling that addresses rows without scope) or give it scope parameters. Left out of the fix on purpose: zero callers, not on the bleeding path.

Ngôn ngữ chính
Python
Star
13.3k
Fork
926
Merge trung bình
17 giờ 8 phút
Pull request đã merge (30 ngày)
32

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 EverMind-AI/EverOS

Tất cả issue của EverMind-AI/EverOS

Issue tương tự

Thêm issue về Python

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.