apache / apache/answer

Pagination and Total Answer Count Loading Issue on Question Details Page

Đang mở
#651 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Go
Star
15.7k
Fork
1.4k
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
7

Mô tả

**Describe the bug**
There is a pagination issue on the answer list within the question details page. The total count of answers and the pagination list fail to load correctly. The pagination is constantly set to 1, and the total count of answers matches the number on a single page. This bug occurs across all devices and operating systems, and is independent of the browser and its version.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to the question details page.
2. Observe the answer list section.
3. Notice that the pagination is always set to 1, regardless of the number of answers.
4. Observe that the total count of answers is equal to the number of answers on one page, indicating a failure in loading the correct total.

**Expected behavior**
The expected behavior is that the answer list should correctly load with appropriate pagination. The total count of answers should reflect the actual number of answers available, and pagination should adjust accordingly, allowing users to navigate through multiple pages if necessary.

**Screenshots**
Not applicable.

**Platform (please complete the following information):**
- Device: All (e.g. Desktop, Mobile)
- OS: All (e.g. macOS, Windows, iOS, Android)
- Browser: All (e.g. Chrome, Safari, Firefox)
- Version: All_versions

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu từ trang chi tiết câu hỏi và tái hiện hành vi của danh sách câu trả lời được mô tả trong issue, sau đó theo dõi cách phân trang và tổng số câu trả lời được tải. Công việc được hoàn tất khi số lượng phản ánh tất cả câu trả lời hiện có và phân trang cho phép điều hướng qua nhiều trang khi cần.

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

Đánh giá

Công nghệ
react, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 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.