daetal-us / sphere

Communized Sphere of Influence
http://sphere.orchestra.io
15 stars 3 forks source link

Comments aren't being displayed #1

Open Ciaro opened 13 years ago

Ciaro commented 13 years ago

Seems like since the move to beta (from alpha), comments aren't displayed anymore. At least not for me?

daetal-us commented 13 years ago

thanks for reporting this ciaro. was pushing hard to get sphere launched on orchestra before the end of the weekend. updated the lithium core in the process via a merge from gwoo which appears to have caused this issue (core model/mongo api change?).

unfortunately, at the moment the comments array is not being correctly saved in mongo, even though the comment count is.

hope to isolate the issue one of these nights very soon. in the meantime, maybe someone else can take a look, patch it w/ tests and initiate a pull request? ;)

Ciaro commented 13 years ago

Hmm, maybe you were using an old(er) version of Lithium and some new changes to the master branch broke your 'comments' functionality?

daetal-us commented 13 years ago

err, yeah. that's what i was trying to say.

see around this line it attempts to update and then save the new comment as an array. I tried briefly changing the model schema for the comments field to be type to array and array => true to no avail. i'll have to read up on the docs/manual again when I get a chance as a brief look over the lithium core tests didn't reveal anything else.

Ciaro commented 13 years ago

/slap myself. I misread your reply as 'changes by gwoo', not 'changes to the lithium core, by gwoo'. Apologies for this... Must have been in the morning when I was just awake.

Ciaro commented 13 years ago

@pointlessjon: I installed Sphere locally with the latest master of the Lithium core. Comments are working properly on MongoDB 2.0, so I'm guessing 'orchestra.io' (configuration) is where the problem lies... Hope this helps.