Year display seems truncated for Upcoming events

AI-generated summary

Lou reported a bug where the Year view for upcoming events appeared truncated, showing no future events despite the Month view displaying them correctly. Initial troubleshooting by chapoi suggested scrolling issues, but Lou noted the problem persisted only when logged into an admin account, while other accounts saw the full year.

Chapoi identified that the server enforces a hard limit of 200 events per request chapoi. Since the admin account had access to all categories, it hit this cap, cutting off data, whereas less privileged accounts had fewer accessible events and thus saw the complete list. Lou confirmed the API response contained exactly 200 items Lou, validating that the “truncation” was actually a pagination limit issue.

Chapoi classified this as a bug or oversight, referencing a previous Discourse pull request that implemented the cap chapoi. Chapoi proposed increasing the cap or implementing a feature request to anchor the Year view to the current date instead of January 1st, which would likely mitigate the issue by reducing the initial dataset size. Lou agreed, expressing a preference for anchoring to the current date, potentially with a start date picker or pagination controls for flexibility Lou.

I am on the Upcoming events page, and selected Year. I don’t see any future events as of today. As an aside, the repeating event “pub run” doesn’t seem to be shown in the Year view.

but there are future events, as evidenced by the Month view

1 like

I can see them it seems

The scrolling is a bit janky though: can you make sure you are scrolling the list itself and not the page?

Hmm. I can also see these from an incognito window, but not when logged in. Maybe that’s a clue to the issue?

Yes I’m sure it’s the list being scrolled. I think that can be seen from the screenshot.

I wonder why your screenshot doesn’t show the Year scroll bar?

Thats just a mac/browser setting.

Ok now I’m really confused. My (admin) account shows what’s in the screenshot, but another less priviledged account shows the full year.

Is it possible I have some setting wrong for my account, or are there even any preferences which could cause? I wouldn’t have thought I’d have changed any account preferences on this and I can’t find anything relevant.

UPDATE: though another non-admin account has the same display as mine. One difference from the account which can see the full year this other account has similar to mine is that it is in a group which can see more categories which have events. Not sure the best way to track down what the ultimate cause is.

Yes, I think there is a hard limit om # of events the server returns, which is 200. So assuming an admin sees everything, which means it gets cut off, while a less privileged account has access to < 200 and sees everything.

To confirm, you could check the Network tab, switch to Year view, and look at the events response:

If it holds exactly 200 events, that’s the cause.

yup 200. I get this back from the Claude analysis as Chrome doesn’t seem to have the nice display you’re showing (although maybe I just don’t know how to get the count of items in an array).

Is this a bug? At least there should be a way to page, right?

From Claude:

There are 200 events in the file. Each one has a unique ID and a single occurrence, and none of them recur. They start on January 10, 2026 (Lewis Memorial 10-Miler) and end on November 14, 2026 (Rivers & Rails).

By category:

  • public-calendar-events: 67
  • group-runs: 67
  • train-half-marathon: 23
  • train-coed5k: 18
  • race-services: 12
  • general: 5
  • trail-running: 4
  • testingonly: 3
  • train-demo: 1

The total is exactly 200, which looks like a page limit in the Discourse events API rather than the real count. If you expected events after November 14, or more than 200 in this date range, the export was probably cut off. In that case you’d need to fetch the next page or narrow the date range to get the rest.

Ooo, didn’t need Claude – I could have used Preview. Anyway that’s a sidebar.

Thanks for checking. Yeah, I’d classify that as a bug or oversight.

@j.jaffeux What do you think? Should the cap for the year view be increased? What’s the number based on?

Think it was done here DEV: full calendar v6 - Pull Request #33737 - discourse/discourse - GitHub

There’s also the option to apply this feature request: Improve Year view usability - anchor to current date instead of January 1st

Which would probably solve the 200 cap in most cases as a side effect, but I’m not sure if others would want to see past events and be upset about the change…

1 like

FWIW my preference would be to anchor start to current date, but start date picker could be added to the view if you want to be flexible. Or paging controls.