Skip to content

[App] Spread talks fixtures over the last two years to fill the dashboard chart - #421

Merged
loic425 merged 1 commit into
Sylius:mainfrom
loic425:talks-fixtures-for-dashboard-chart
Nov 25, 2026
Merged

loic425 merged 1 commit into
Sylius:mainfrom
loic425:talks-fixtures-for-dashboard-chart

Conversation

@loic425

@loic425 loic425 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

The dashboard chart counts talks by start date, but TalkFactory picks startsAt anywhere between 1970 and today. With 100 random talks, almost none fall into the displayed period, so the chart looks empty.

  • DefaultTalksStory now creates 10 to 40 talks for each month of the previous and current years (~600 talks).
  • Each talk starts on a random date in its month and ends 45 minutes later, instead of a random endsAt that could be before startsAt.
  • The existing "first day of January" and "today" talks are kept.

Loading the fixtures takes about 4s on SQLite, and every month of the year view has data (month and two-week views too).

Only the test application fixtures change, so there is no BC impact.

stack-dashboard-chart

@loic425
loic425 merged commit 971ce00 into Sylius:main Nov 25, 2026
37 checks passed
@loic425
loic425 deleted the talks-fixtures-for-dashboard-chart branch November 25, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant