concurrent editing....several users edit same thing
Posted: Sat Aug 13, 2005 1:13 pm
Hi,
First of all, I am not sure concurrent is the right word here - english is my second lang.
Its basically sever users editing the same content
I am writing this system with offers and stuff...
The admin will add his own offers.....but users will be able to add offers as well....
Actually there are two issues here.
1. The admin will sometimes want to edit an users offer....but what if the user is editing in this same moment...
Maybe I should lock the offer somehow - but what exactly...because locking thing also mean it should be unlocked at some point- how...
Haven't done such a thing so far....If you can give me pointers to the logic will be great...
2. There should be an approve process - so that if a user add an offer it will be desplayed only after the admin said ok.
2.1 The difficult part is that once an offer is approved and displayed the user will want to update it - hence will be an approve process again.
But the offer that is already approved should still be displayed(hence make a copy of it....for the modified version.)
I think of solving this problem with making a copy of the already approved version - and keep track of them with child/parent id....
If you have comments any suggestions with maybe improving this solution will be great.
First of all, I am not sure concurrent is the right word here - english is my second lang.
Its basically sever users editing the same content
I am writing this system with offers and stuff...
The admin will add his own offers.....but users will be able to add offers as well....
Actually there are two issues here.
1. The admin will sometimes want to edit an users offer....but what if the user is editing in this same moment...
Maybe I should lock the offer somehow - but what exactly...because locking thing also mean it should be unlocked at some point- how...
Haven't done such a thing so far....If you can give me pointers to the logic will be great...
2. There should be an approve process - so that if a user add an offer it will be desplayed only after the admin said ok.
2.1 The difficult part is that once an offer is approved and displayed the user will want to update it - hence will be an approve process again.
But the offer that is already approved should still be displayed(hence make a copy of it....for the modified version.)
I think of solving this problem with making a copy of the already approved version - and keep track of them with child/parent id....
If you have comments any suggestions with maybe improving this solution will be great.