Log message #111320

# At Username Text
# Aug 8th 2008, 09:23 Pacifists freebox set 'debug' to 1
# Aug 8th 2008, 09:22 NOSLOW hello
# Aug 8th 2008, 09:17 freebox2 gwoo: I've followed your article: http://bakery.cakephp.org/articles/view/autocomplete and all appears ok. But the auto complete show the cake debug? It's right?
# Aug 8th 2008, 09:11 FunkyWeasel I've tried setting 'recursive' as a class var in the relevant models, but to no avail so far. Any other solutions (apart from jetisonning the datastructure as it's unavoidable legacy for the time being)?
# Aug 8th 2008, 09:09 FunkyWeasel I also found that circular relationships also cause a silent fail (e.g. a company model has a has a belongsTo relationship to a contact details model, and the contact details model has a belongsTo relationship to company model which worked under 1.1).
# Aug 8th 2008, 09:07 FunkyWeasel For instance our category model has two relations, child and parent, which respectively map to the same but under different names.
# Aug 8th 2008, 09:06 FunkyWeasel I'm currently migrating our codebase from 1.1 to 1.2 and noticed something strange with relationships. From what I can tell 1.2 has 'lost' the ability to deal with recursive model relationships.
# Aug 8th 2008, 09:05 TommyO hiya
# Aug 8th 2008, 09:05 FunkyWeasel Good afternoon folks.
# Aug 8th 2008, 09:04 TommyO $this->Model->updateAll() is easier
# Aug 8th 2008, 09:03 TommyO but if it helps...
# Aug 8th 2008, 09:03 TommyO yuck
# Aug 8th 2008, 09:03 ammadsaleem1 guess I will be going for bulk update using simple cakePHP $this->Model->query();
# Aug 8th 2008, 09:02 TommyO or am I still missing something? :)
# Aug 8th 2008, 09:02 TommyO ammadsaleem1: does that make sense?
# Aug 8th 2008, 09:02 ammadsaleem1 thanks tommy
# Aug 8th 2008, 09:01 TommyO ammadsaleem1: and those events are easy, the afterSave() callback
# Aug 8th 2008, 08:58 TommyO ok. let the action being taken touch the pieces it affects. someone answers a question, all scores relative to that question are adjusted. quizmaker changes an answer, all scores relative to that answer are affected. no major mass changes there
# Aug 8th 2008, 08:57 ammadsaleem1 there is no such restriction
# Aug 8th 2008, 08:55 ammadsaleem1 and can specify the result at any stage
# Aug 8th 2008, 08:55 TommyO so what, since it doesn't matter until the event (closing the puzzle) has been triggered
# Aug 8th 2008, 08:54 ammadsaleem1 quiz maker can change the correct answer any time
# Aug 8th 2008, 08:54 TommyO so there's no need to do the math
# Aug 8th 2008, 08:54 TommyO but if noone can see them then its moot
# Aug 8th 2008, 08:54 ammadsaleem1 scores can change on the fly
# Aug 8th 2008, 08:53 TommyO *away
# Aug 8th 2008, 08:53 TommyO now your bottleneck went awat again
# Aug 8th 2008, 08:53 TommyO well that's easier still, since the scores are no-longer changing on the fly. have the process that 'closes' the quiz calculate the scores
# Aug 8th 2008, 08:52 ammadsaleem1 now what
# Aug 8th 2008, 08:52 ammadsaleem1 u cannot see the score card untill All questions have correct answers specified or till the Result announcement date has arrived
# Aug 8th 2008, 08:51 ammadsaleem1 but there is another catch
# Aug 8th 2008, 08:51 TommyO get the answers. get the correct answer. calc the scores. cache if possible. display
# Aug 8th 2008, 08:51 ammadsaleem1 okay so each user must see his scorecard in oder for the leaderboard to be updated
# Aug 8th 2008, 08:50 ammadsaleem1 can you also see a solution
# Aug 8th 2008, 08:50 TommyO ammadsaleem1: I would have the score calculated on scoreboard view and not stored anywhere I think
# Aug 8th 2008, 08:50 TommyO ok. now I see the load problem :)
# Aug 8th 2008, 08:50 ammadsaleem1 yup
# Aug 8th 2008, 08:50 TommyO based on the quiz's whim
# Aug 8th 2008, 08:49 TommyO or up
# Aug 8th 2008, 08:49 TommyO ammadsaleem1: so the score isn't based on what the answer was when they answered it, but what it is after a change. meaning a player's score could go down?
# Aug 8th 2008, 08:49 tbranyen_ i'm having trouble understanding where your bottleneck is