#44 new
Marcos Tapajós

Extended::Document.save(true) is buggy

Reported by Marcos Tapajós | October 19th, 2009 @ 09:31 AM

Reported by mattetti on github

Extended::Document#save_without_callbacks gets called every time I save
that then calls database.save_doc
which will return {"ok" => true} if we are under the bulk_save_cache_limit
if we are over it, it will return bulk_save
bulk_save just returns the output of CouchRest.post "#{@root}/_bulk_docs", {:docs => docs}
which is never going to be {"ok" => true}

lburton August 20, 2009 | link Fixed in: http://github.com/lburton/couchrest/commit/bb37f55bec3684cb482d3a1c...

gentooboontoo October 12, 2009 | link Same thing with Document#save
Better to deal with this problem at database#save_doc?

see http://github.com/gentooboontoo/couchrest/commit/36f5f83073a0dba05a...

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

"CouchDB, close to the metal." <a href="http://github.com/jchris/couchrest/tree/master">CouchRest</a> is a RESTful layer for accessing CouchDB, based off CouchDB's included Javascript reference client. CouchRest also includes helpers for running large queries etc. There is also a base class for ActiveRecord / Datamapper style ORM, called CouchRest::Model.

People watching this ticket