airqo-platform / airqo-platform/AirQo-api

Inconsistent rate limiting between v2 and v3 data-download/raw-data endpoints

Đang mở
#6,952 0 bình luận 0 reaction 1 người được giao Được giao cho @NicholasTurner23 Xem trên GitHub
analytics
Ngôn ngữ chính
JavaScript
Star
26
Fork
24
Merge trung bình
5 giờ 36 phút
Pull request đã merge (30 ngày)
81

Mô tả

# Inconsistent rate limiting between v2 and v3 data-download/raw-data endpoints

## Summary
v3 `/data-download` and `/raw-data` are rate-limited at 10/min; the v2 equivalents have no rate limiting at all. Unclear whether this gap is intentional.

## Where this came from
Baalmart, following up on AirQo-frontend PR #3876's data-download review, tracing the request path in `src/analytics`.

## Affected code
- v3 rate limiting — `views/v3/data.py:49,98`
- v2 endpoints (no rate limiting found)

## Suggested fix
Confirm which API version the nexus frontend actually calls, and either apply the same rate-limit policy to v2 or confirm the gap is intentional (e.g. v2 is deprecated/internal-only) and document it.

## Acceptance criteria
- [ ] Confirmed which version nexus calls for data-download/raw-data
- [ ] Rate limiting is consistent across v2/v3, or the discrepancy is deliberate and documented

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

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start with AirQo-frontend PR #3876 and trace the nexus frontend request path to confirm which API version it uses for data-download and raw-data. Compare the v3 rate limits in views/v3/data.py at lines 49 and 98 with the v2 endpoints, then verify that the final policy is either consistent across versions or explicitly documented as intentional.

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

Đánh giá

Công nghệ
javascript, python
Lĩnh vực
api, backend
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

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.