0xPlaygrounds / 0xPlaygrounds/subgrounds

Incorrect Pagination leading to missing results

Đang mở
#11 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug need-validation
Ngôn ngữ chính
Python
Star
73
Fork
12
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
Missing data due to Incorrect pagination.

**To Reproduce**
Steps to reproduce the behavior:
- Query any subgraph which has e.g. a `timestamp` and should return > 1800 entities.
- After the first pagination, instead of using `"skip: 1800"` and `"first: 900"`
- in my case it uses `"skip: 0", "first: 900"` and `"timestamp_gt: $lastOrderingValue0"`.
- If the timestamp of result with index 1800 is the same as 1801, this will skip 1801 and any other events which happen to have the same timestamp as index 1800.

**Expected behavior**
Results with same timestamp as the last returned timestamp from the previous result set of the pagination are present.

> Sorry I'm not experienced enough with the library to understand how it determines over which field to paginate - a briefer summary is that pagination shouldn't occur over fields which are not guaranteed to be unique.

*Originally from: [roama3](https://github.com/roama3)*

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

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

Hướng nghiên cứu

Issue mô tả một lỗi phân trang trong thư viện client GraphQL khi truy vấn subgraph với các trường sắp xếp không duy nhất như timestamp. Hãy xem xét logic phân trang trong codebase, có thể nằm trong các mô-đun xây dựng truy vấn hoặc xử lý kết quả. Hiểu cách thư viện xác định trường sắp xếp và cách nó xây dựng các tham số skip/first cùng bộ lọc timestamp_gt. Kiểm tra với một subgraph trả về >1800 thực thể để tái tạo các kết quả bị thiếu.

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

Đánh giá

Công nghệ
graphql, python
Lĩnh vực
api, backend, data
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/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.