apache / apache/answer

Pagination and Total Answer Count Loading Issue on Question Details Page

Open
#651 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
15.7k
Forks
1.4k
Avg merge
3d 8h
Merged PRs (30d)
7

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the question details page and reproduce the answer-list behavior described in the issue, then trace how the pagination and total answer count are loaded. Done means the count reflects all available answers and the pagination allows navigation across multiple pages when needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.