Skip to content

Add informations about upcoming and past meetups#1526

Merged
ChaelCodes merged 6 commits intorubyevents:mainfrom
viniciusalonso:upcoming-meetups
Mar 25, 2026
Merged

Add informations about upcoming and past meetups#1526
ChaelCodes merged 6 commits intorubyevents:mainfrom
viniciusalonso:upcoming-meetups

Conversation

@viniciusalonso
Copy link
Copy Markdown
Contributor

Description

Add informations about upcoming and past meetups

Screenshots

Screenshot 2026-03-12 at 20 03 14

Testing Steps

References

  • closes #

@ChaelCodes
Copy link
Copy Markdown
Collaborator

The weird thing about meetup events is that they don't have dates. One event represents every meetup.

There's a branch to refactor that, but it's not done yet.

@viniciusalonso
Copy link
Copy Markdown
Contributor Author

Interesting, does it make sense this upcoming meetups count?

@ChaelCodes
Copy link
Copy Markdown
Collaborator

I don't think it does. I think the missing date is why all meetups are showing up in the past. You could look at videos to get upcoming and past events, but I'm not sure if there are any meetups that input upcoming events into RubyEvents.

This is more of a current data issue than a usability concern though.

@hschne - I'd be curious to hear your perspective on this one. You're really active on RubyEvents and Vienna.rb only shares past events.

@hschne
Copy link
Copy Markdown
Contributor

hschne commented Mar 13, 2026

I'm not 100% sure if I understand correctly, but I do put in Vienna.rb meetups as soon as they are scheduled - so they would qualify as upcoming, and I would love for those to shop up somewhere.

The fact that they don't have a date IMO is the data issue you described and should (?) be solved by the new data structure (one event per meetup) I think?

@matthewmayer
Copy link
Copy Markdown
Contributor

Agreed. If meet-ups with upcoming editions in their videos.yml show more prominently on the site that's an incentive for meet-ups to add the data for future events.

@viniciusalonso
Copy link
Copy Markdown
Contributor Author

I've changed the scopes past_meetups and upcoming_meetups to filter by published_at in talks.

cc @matthewmayer @ChaelCodes

@matthewmayer
Copy link
Copy Markdown
Contributor

Shouldn't it be date rather than published_at?

published_at is the date the YouTube video was published if applicable which might be after the event

@viniciusalonso
Copy link
Copy Markdown
Contributor Author

@matthewmayer good catch! Fixed

@viniciusalonso viniciusalonso marked this pull request as ready for review March 16, 2026 13:54
@matthewmayer
Copy link
Copy Markdown
Contributor

i noticed nearly every meetup in the preview section incorrectly shows "Takes place today"

image

Can this easily be fixed together with this change?

@viniciusalonso
Copy link
Copy Markdown
Contributor Author

viniciusalonso commented Mar 16, 2026

It looks easy to fix, but I'd prefer to do it in a new PR. This one is taking longer than I expected 😂

I will send a new PR with this fix tonight.

Screenshot 2026-03-16 at 13 08 56 Screenshot 2026-03-16 at 13 09 10

Comment thread app/models/event.rb Outdated
}

scope :upcoming_meetups, -> {
joins(:talks).where(kind: :meetup, talks: {date: nil}).distinct
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talks always have a date.

string :date, description: "Date of the talk (YYYY-MM-DD format)", required: true

I think we want a range for this one too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@ChaelCodes
Copy link
Copy Markdown
Collaborator

I'm not 100% sure if I understand correctly, but I do put in Vienna.rb meetups as soon as they are scheduled - so they would qualify as upcoming, and I would love for those to shop up somewhere.

The fact that they don't have a date IMO is the data issue you described and should (?) be solved by the new data structure (one event per meetup) I think?

Sorry for the confusion. I was looking for some clarity around the use case. You're one of the most active meetup organizers I know on the site and when I checked Vienna.rb only had past ones.

My thinking was that if we only have past meetups at the moment, it might be better to defer this until after the meetups refactor, because they'll all be past anyway.

But it sounds like there is interest in upcoming meetups, and I see that Ruby Tuesday has one on March 31st, so we'll have at least one.

@viniciusalonso
Copy link
Copy Markdown
Contributor Author

i noticed nearly every meetup in the preview section incorrectly shows "Takes place today"

image Can this easily be fixed together with this change?

Hey @matthewmayer, I created a PR for this one #1547

Copy link
Copy Markdown
Collaborator

@ChaelCodes ChaelCodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Sorry for all the back-and-forth. The meetups page looks much nicer now.

@ChaelCodes
Copy link
Copy Markdown
Collaborator

Oh no! There's a merge conflict.

@viniciusalonso
Copy link
Copy Markdown
Contributor Author

Oh no! There's a merge conflict.

@ChaelCodes fixed :)

@ChaelCodes ChaelCodes merged commit 38909e8 into rubyevents:main Mar 25, 2026
5 checks passed
@ChaelCodes
Copy link
Copy Markdown
Collaborator

@viniciusalonso Thank you!!

@viniciusalonso viniciusalonso deleted the upcoming-meetups branch March 29, 2026 15:33
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.

4 participants