In order to keep a history of swim times (aka results), the events the times are associated with need to be defined. I guess technically that isn’t true, a simple time history could be kept but as long as I am going to import times and keep them as a history, might as well associate them with a meet too.
To do this I started working on defining the events for each meet. Since most teams swim the same events in the same order at most of their meets, I have established a “default” set of events. I have this new functionality working now. What is left to do is to elegantly re-order the events (since re-ordering them is inevitable) and to use them as a basis for populating the events for an actual meet.
This functionality is also the basis of Opt-in/Opt-out because I have decided to let swimmers opt in or out of individual events and as well as entire meets. This is a need for the MacDolphins because we many of our swimmers are in year round school and since our league swims on Tuesday nigths, for some portion of our team, it is a school night. We have a fair number of swimmers who opt out of the later events because of it being a school night.