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

Tags: server-side filtering

Đang mở
#404 0 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
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Start with auth/dependencies.py and the existing endpoint files in api/api_v1/endpoints/: sequences.py, sequence_annotations.py, detection_annotations.py, and sequence_groups.py. Trace how their queries and list totals are built, then check how usePipelineStats consumes those totals. Done means tag scope is applied across the listed screens and counters, full-access users still see everything, and tests cover all cases without visible queue slowdown.

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

Mô tả

hackathon-theodo P1-high T4-26 topic: backend type: new feature

Context & Objective

A user only gets the alerts that carry one of their tags. No new endpoint: this issue adds a filter to the endpoints that already exist. Part of #400.

What is done currently

The list and detail endpoints return all the data to any logged-in user (sequences.py, sequence_annotations.py, detection_annotations.py, sequence_groups.py in api/api_v1/endpoints/). The dashboard counts come from the total of these list endpoints (usePipelineStats).

What has to be done

  1. One shared helper that adds the scope filter to a query for the current user, next to the existing auth dependencies (auth/dependencies.py). It is an indexed EXISTS on alert_tag ⨝ user_tag. For "full access" accounts it adds nothing.
  2. Apply it to each group of existing endpoints. Each line can be its own PR, or a sub-issue for the hackathon:
    • queues (classify, localize)
    • done pages and detail pages: opening an alert outside your scope by its id returns 404
    • groups: only the sequences in scope are shown and labelled (see #401)
    • counters and dashboard: the dashboard follows the list endpoints; GET /sequence_groups/stats needs the filter too

Images are not filtered for now (decided in #401). The export (/export/alerts) stays for full-access accounts.

Done when

  • A user without a tag sees nothing
  • A user with a tag sees only the alerts of that tag, on every screen and in every counter
  • A user with full access sees everything
  • Tests cover these cases; no visible slowdown on the queues

Theme Dataset · Priority P1 (high) · Period T4-26

Ngôn ngữ chính
TypeScript
Star
0
Fork
1
Merge trung bình
16 giờ 24 phút
Pull request đã merge (30 ngày)
2

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có 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 pyronear/pyro-annotator

Tất cả issue của pyronear/pyro-annotator

Issue tương tự

Thêm issue về TypeScript

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.