Comments (4)
Updated by trawna.com on 2007-03-06T21:41:43
I've been thinking about this, and I think it would be simpler and also more flexible
to simply allow multiple teams with the same name. Then, every year, a new team
could be created (allowing copying from an existing team would be nice). This way,
we also support teams that change their names, colours, geographical preferences,
etc. over time.
The only database change that I see being required for this is removing the 'unique'
flag from the teamname. We'd presumably want to add some code to make sure there are
not two teams in the same league with the same name, but that's easy.
Am I missing a downside here? The only drawback I see is that there's no way to
easily track a team's evolution through the years, although that could maybe be
solved with a "previous_team_id" field that would be set when you copy a team.
from leaguerunner.
Updated by dave0000 on 2007-03-06T22:33:32
Yeah, there are a lot of downsides:
- impossible to uniquely identify a team by name alone.
- schedule and standings would need to show extra data to allow
differentiation of same-named teams - possible confusion if two teams with the same name exist in the same
(or in overlapping) leagues or divisions. Eg: "Hey, can you sub for
us tonight? We're 'The Leafs' -- check Leaguerunner for our gametime". - explosion of number of teams in db (OCUA would end up adding 350 new
team records per year, for example) will make a lot of things, like
searching, more cumbersome. - need a way to freeze old teams but keep them around to show the
evolution of the team along the way.
from leaguerunner.
Updated by trawna.com on 2007-03-06T22:52:42
I did say that we wouldn't allow two teams with the same name in the same league, but
forgot that there can be multiple leagues on a particular night. I think it would be
possible to do a query for existing teams with the same name on the same night of the
same season and same year? This would allow us to block name changes that would
cause this confusion. It couldn't catch situations like "The Leafs" and "Leafs" both
existing, but the code currently allows that anyway.
There would be a lot more teams in the db, but we'd change the existing queries to
only look at active teams (see my notes on issue 5), so that users and admins would
see the same as they do now, and those historical teams would only be visible if you
followed a new link to the archive area.
from leaguerunner.
Updated by trawna.com on 2008-03-26T19:28:05
Version 2.6 implements the changes as I described in my earlier comment. If this is
considered an acceptable solution, this can be marked as Fixed.
Original ticket set status to Started (we converted to open)
from leaguerunner.
Related Issues (20)
- Users can't edit their account type HOT 2
- Field Booking Fails with no Game HOT 3
- OCUA needs to be able to search players by member number.
- Additional contact points for players
- Add creation_date field to player
- Integrated carpool support
- Wishlist items for field management HOT 1
- Must use Smarty 2
- Create Event missing Event Types HOT 1
- BUG(bad link): Home screen bad link for admin/coordinator HOT 1
- BUG - Multiple Event Registrations
- Feature: Minimum Roster size per League HOT 1
- Missing } in the DBInit.pm
- Field reassignment doesn't recalculate team's site satisfaction
- Add Address to ICAL listing LOCATION field. HOT 4
- ASCII symbols don't show up properly in all locations
- "request to join by captain - substitute player" in addition to "request to join by captain"
- Ties in standings glitch? HOT 2
- PHP Fatal error: smarty, unable to load base url
- demo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaguerunner.