0xPlaygrounds / 0xPlaygrounds/subgrounds

Ranged Pagination

Đang mở
#8 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
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ả

**Is your feature request related to a problem? Please describe.**
## Description
Subgrounds should be able to paginate based on a condition (e.g.: get all Uniswap V2 swaps between time `t0` and time `t1`, get all Aave V2 USDC borrows larger than `amount`).

**Describe the solution you'd like**
The following subgrounds fieldpath implies the use of pagination even though no `first` argument is present

```python
swaps = uniswapV2.Query.swaps(
orderBy=uniswapV2.Swap.timestamp,
orderDirection='desc',
where=[
uniswapV2.Swap.timestamp >= 1641013200
]
)
```

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

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

Hướng nghiên cứu

Look at the pagination logic in the subgrounds codebase, likely in query building or GraphQL client modules. Understand how arguments like 'first' are currently handled. The feature requires modifying the query generation to support range-based pagination using 'where' conditions without a 'first' argument. Check existing tests for pagination to see the expected behavior.

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
backend, data
Loại issue
Tính năng
Độ 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
45/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.