nicholasmr / obblm

Automatically exported from code.google.com/p/obblm
26 stars 54 forks source link

Proper handling of deleted/removed coaches #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now the only way to delete a coach is to delete him directly in the
database. And as far as I can see, this is safe as long as the coach does
not have any teams created.

But what happens if the coach did have teams? Wont it make inconsistent
data if the coach is removed, but the teams remain?

What happens with teams that have no coach?

I can see that if you want to remove a coach that have taken part in
tournaments, then it can lead to many issues, so maybe an Admin should be
able to hide a coach/teams, but keep them in the database?

This is not really a request for a specific feature, but more of a
discussion about the issue. Maybe its not even an issue at all?

Original issue reported on code.google.com by syko...@gmail.com on 1 Apr 2009 at 9:11

GoogleCodeExporter commented 9 years ago
I think we've had this discussion in some earlier issue.

Deleting a coach/team that has played matches screws up the data for the 
opponent
team(s). Hide, or a better word - "retire" the team/coach makes the opponent's 
data
work. It is implemented in 0.38 in Admin menu. (I dont remember which version
number.) I havent had reason or time to try it yet.

/Daniel

Original comment by blodae@gmail.com on 1 Apr 2009 at 12:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Doh, guess Im the one looking stupid here, I should have checked my DEV install
before writing here.

Original comment by syko...@gmail.com on 1 Apr 2009 at 1:24

GoogleCodeExporter commented 9 years ago

Original comment by Nimda...@gmail.com on 1 Apr 2009 at 2:53