Conversation
This tweaks the DashboardController to include today's events in upcoming. TODO: change the 'upcoming' method to include today, but check first to confirm if that is indeed the behaviour we want Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com>
|
Hey, I just logged on the website and now the Dashboard is sorting by oldest first on my side. By quickly looking at the PRs, this seem the most relevant to the problem. CONTRIBUTING.md doesn't say how to raise an issue. I'll default to commenting here. Please let me know if I should do something else instead. Issue Descriptionthe workshops in the dashboard page (https://codebar.io/dashboard - requires logged in) are currently sorted by oldest to newest (oldest on top, newest at the bottom of the page).
(screenshot of the dashboard page. Showing events in 2018 at the top of the page. People's names and venues have been truncated)
Expected ResultThe most recent events should be at the top of the page. Steps to Reproduce
The history of workshops should be displayed. CommentsMy assumption is that this PR is the most likely cause of this change in behavior. I haven't audited the code outside of the PR changes to confirm this assumption. |

This tweaks the DashboardController to include today's events in upcoming. I've checked this works locally - with the main branch, an event running today is not visible. When running this code, it is.
To create a workshop that starts today, you can run
from the Rails console
TODO: change the 'upcoming' method to include today, but check first to confirm if that is indeed the behaviour we want