Metaculus / Metaculus/metaculus

Questions list on tournament page bugs out if filters and sorts are used multiple times

Open
#4,945 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
113
Forks
34
Avg merge
16h 34m
Merged PRs (30d)
30

Description

Describe the bug

The questions list on a tournament page bugs out if filters and sorts are used more than once in certain (alternating?) sequences. As a result the Questions list is then either missing some questions and/or showing non-applicable questions.

Part of the problem seems like sometimes when you re-apply a sort you used earlier, it will change the url in your browser correctly, but not refresh the page or data for that new set of parameters. If you manually reload your browser with the currently shown url then it shows the correct list.

Steps to reproduce

Go to https://www.metaculus.com/tournament/summer-futureeval-2026/
Go to Questions list, then either...

A) Sort by "Recently revealed"
X out that sort, (or don't)
Filter by "Open"
Sort by "Recently revealed"

B) Filter by "Open"
Sort by "Recently revealed"
X out that sort
Filter by "Open"

Extra context

Running on Chrome on Windows 11

https://github.com/user-attachments/assets/536d1406-2766-4b15-ba88-bea9c0925f52

Image Image

This touches on similar issues as https://github.com/Metaculus/metaculus/issues/4754 and possibly https://github.com/Metaculus/metaculus/issues/4937 but I think it is a distinct and technically separate issue.

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 Questions list on the tournament page and reproduce the alternating filter and sort sequences from the issue in Chrome. Trace how URL parameter changes trigger the list refresh, especially when a previously used sort or filter is applied again. Done means every sequence displays the questions matching the current URL parameters without requiring a manual browser reload.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.