-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An Event
has many years
?
#36
Comments
I think that would make a lot of sense; it's kind of how I think of conferences--the con is abstract, and the event is once per unit of time. I'm guessing I'm not the only one. I'd be tempted to rename the existing Event model to Changes that would need to be made:
Models might look like # new event model
class Event
validates :name
validates_uniqueness_of :name
has_many :cohorts # or :years
has_many :submissions, through: :cohorts
end
# renamed from Event
class Cohort
belongs_to :event
validates :year
validates_uniqueness_of :year, scope: :event
has_many :submissions
def name_and_year
"#{event.name} #{year}"
end
end Creating new events/cohortsThis would need to be updated to behave in the same way as Proposals--they require a User to be present to attach the proposal to.
SubmissionsProbably add an extra step in the submission creation flow:
|
Enh. |
Hey @flyinggrizzly — thanks for your thoughts. Will have a proper read-through at some point in the upcoming week! :-) |
FYI, @flyinggrizzly — going through a busy time right now so this will take me a bit longer to look at. |
@nodunayo no worries--I'm tinkering with it already to see how my idea plays out. If you get curious, take a look! About to disappear to the US for Christmas though, so no promises as to how much I'll be doing over the next few weeks. Happy to pick it up again in the new year if the help is still wanted/needed! |
Ooh, I'll definitely take a look some time soon. Let's pick up this conversation in the New Year (at the latest) for sure. I'm about to move flat and lots of change is happening at work at the moment. Then it's family time/holidays, etc. I'd love to keep working with you in the New Year. It's been a pleasure! Happy holidays if we don't speak before then. |
@nodunayo this is more than I expected (which in retrospect, was maybe a little obvious...), but I'm still working on it 😅 Trying to figure out how to wire the two models together so you can select or name new Event Series from the Cohort screen r/n |
Hey! Hope you've had good holidays. Looking forward to reading all of this and digging into your work soon. 😁 |
Happy new year! I've got this working, at least for events themselves (haven't gone through and fixed everything that will likely have broken in tests or in some of the related/dependent models). This is probably a good time to look at it and decide if this is the right approach? If you wanted to kick the tires a bit, best thing to do would be to try add new events, and also take a look at the submission form. I've updated the form and submissions are being accepted too. It's worth having a few events with at least 2 cohorts each before you go to create submissions so that you can really see if that form is clear enough. Also, FYI, the migration doesn't completely reverse (it won't add the names back into the events table after recreating the name column on |
Happy New Year, @flyinggrizzly! Looking forward to digging in! I appreciate all of your work! |
Still been on holiday but back on things tomorrow. Aiming to find time to look at this this week! |
Hey @flyinggrizzly, I just had a look at this and definitely like the approach! I like the way you've approached the "Add an Event" form — clever! (I'm sure there'll be UI/UX improvements for the best flow, but we can worry about that later). I also think the grouping in the Submissions for Event dropdown makes sense (though I'd want to order them in year order — I'm sure you had that idea too). I wonder whether There are a few things that would need fixing before this would be merged into the new project. However, I know this is an interim stage and you're aware of a lot of these so not leaving detailed comments for now. Also, I'm sure we'll have a proper migration for when we come to applying this to the production DB? All in all, this looks like we're moving in the right direction! Do you have any specific questions/concerns for me before you spend any more time working on it? I'm trying to think of any gotchas I should be thinking about and asking you but none are coming to mind right now. It seems like a low risk change that is a step in the right direction...I already know that we definitely can't keep the events as one long string with a name! |
Hi @nodunayo, Thanks for looking it over! I like Couple of questions before I forge ahead:
<optgroup label="2018">
<option>Awesome event</option>
<option>The best event</option>
</optgroup>
<optgroup label="2017">
<option>Awesome event</option>
<option>The best event</option>
</optgroup> |
Hi! In answer to your points/questions, I'd say:
😁 |
Hey @nodunayo just a quick ping so you know I'm still here and working on this--time hasn't been as plentiful lately, but I am still committed! |
Thanks for the update! No rush at all! I'm glad you haven't finished it yet as time has been short on my side too! Thanks so much for all of your work! :-) |
Should we close this issue? |
Yes!! 😊 |
At the moment, an Event has a
name
attribute and ayear
attribute, e.g. Event.new(name: RubyConf, year: 2017).I wonder if we should change this to be an event has a
name
and then many years (or occurrences) attached to it, e.g. RubyConf is an Event, it happened in 2017, 2016, 2015, etc..This will make it more interesting to view the kinds of submissions that, for example, RubyConf has accepted and rejected over the years. We can also add more information to a particular event, for example, something like: 'RandomConf has a different group of reviewers each round'.
I suspect that the event view will be more interesting than the speaker view for a more general audience.
(You could also then look on a per year basis across a range of events and perhaps see what themes were popular or unpopular among speakers, for example.)
What are people's thoughts on this?
We'd have to change the flow of adding a new event to the platform as well.
The text was updated successfully, but these errors were encountered: