Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Activity (RSS)

Sunday, November 23 2008
11 removing old design documents was updated
  • J. Chris A.
    • State changed from new to resolved
    by J. Chris A. at 10:04 AM

    added a method called cleanup_design_docs!

25 Ability to send explicit null as key? was updated
  • J. Chris A.
    • State changed from new to resolved
    by J. Chris A. at 10:02 AM

    I think Ruby's nil will work just fine, when you want JSON null.

Saturday, November 22 2008
25 Ability to send explicit null as key? was created
  • hkstar
    hkstar created the ticket at 7:57 PM

    CouchDB often relies on an explicit "null" as a key in a view request. Currently, I can't see any way to duplicate this in CouchRest::Model. It's especially imp...

24 make created_at and updated_at override-able was created
  • hkstar
    hkstar created the ticket at 3:30 AM

    Currently CouchRest::Model writes created_at and updated_at into objects it saves regardless of whether the fields are pre-existing.

    I propose allowing created_...

Thursday, November 20 2008
22 let's use 'couchrest_type' was updated
  • Priit Tamboom
    Priit Tamboom commented at 5:33 AM

    I agree, however I don't mind using 'couchrest_type' by the way, at least I'm sure it does not clash with anything in the future. I have playied with other ruby...

Wednesday, November 19 2008
22 let's use 'couchrest_type' was updated
  • hkstar
    hkstar commented at 7:16 PM

    If we're messing with things, I would actually prefer to see the field name changed to something more generic like "document_class" or "object_type" or "instanc...

23 Change Time.to_json to include subseconds was created
  • hkstar
    hkstar created the ticket at 7:07 PM

    Since CouchDB doesn't have any equivalent auto-incrementing id fields, discerning the order in which additions took place might be problematic if there is more ...

Tuesday, November 18 2008
22 let's use 'couchrest_type' was updated
  • Priit Tamboom
    • Assigned user set to J. Chris A.
    by Priit Tamboom at 10:13 AM

    I made patch againtst to design-doc branch.

  • Priit Tamboom
    Priit Tamboom created the ticket at 9:45 AM

    Hi!

    Thanks for couchrest!

    I know it might sound horrobly idea to change type at the moment, but why not to use 'couchrest_type' instead of 'couchrest-type'. Why...

Monday, November 17 2008
21 basic validations and .valid? was updated
  • hkstar
    hkstar commented at 12:00 PM

    Here's a patch for a super-simple implementation of this. All it does is define a number of fields you want to check, eg.

    validate :name, :email

    And then refuse...

19 option for before(:init) was updated
  • hkstar
    hkstar commented at 11:22 AM

    Well, it can be as simple as http://friendpaste.com/nLYwTGq9, though you'll need to pass the hash directly (ie, not in an array like it is in the specs) for it ...

  • J. Chris A.
    • State changed from new to resolved
    by J. Chris A. at 7:30 AM

    thanks for the ticket.

    I'd be happy to see a patch that allows lambda on the defaults hash, and evaluates them either at init (or perhaps at save, but maybe tha...

  • hkstar
    • Assigned user set to J. Chris A.
    by hkstar at 5:02 AM

    After further examination, it seems that what I wanted is possible with existing code. I had wanted to be able to generate random codes on init (not for _id) - ...

Thursday, November 13 2008
21 basic validations and .valid? was updated
  • hkstar
    hkstar commented at 6:35 PM

    So it seems the code formatting just does not work at all. Cool.

  • hkstar
    hkstar commented at 6:30 PM

    sorry, should have checked formatting before posting. Not that the code was particularly valuable, but still ..

    Let me give it another shot:

    @@@def validate_ess...

  • hkstar
    hkstar created the ticket at 6:27 PM

    I would love to see some (super-basic) validations support to replace the hacks I've come up with for the moment.

    What I am doing now is just making an array of...

Tuesday, November 11 2008
20 delete obsolete views was created
  • hkstar
    hkstar created the ticket at 8:09 PM

    CouchRest::Model's feature to automatically upload views listed in the model file is wonderful. However, after a while they begin to build up.

    How about an opti...

14 After benchmarking: couchrest performance bottleneck? was updated
Friday, November 07 2008
19 option for before(:init) was created
  • hkstar
    hkstar created the ticket at 12:18 AM

    hi there,

    I would really like a way to set init values for a CouchRest::Model class. Currently we have before(:create, :method) which is nice but if used to run...

Monday, November 03 2008
18 Add CouchRest::Model.count method was created
  • juozas (at tuesdaystudios)
    juozas (at tuesdaystudios) created the ticket at 3:21 PM

    You can get the count of all objects this way:

    
    module CouchRest
    
      class Model < Hash
    
        def count
          self.all(:count => 0, :raw => true)["total_rows"]....
Wednesday, October 29 2008
17 Instatiating Couchrest::Model with nil vars half-succeeds was updated
  • hkstar
    hkstar commented at 10:18 PM

    Oops. Momentarily confused there due to tiredness. Face, palm, etc.

    Sorry for the noise! Will keep 'em coming.

  • J. Chris A.
    J. Chris A. commented at 10:06 PM

    but thanks for the ticket! keep em coming.

  • J. Chris A.
    • State changed from new to invalid
    by J. Chris A. at 10:05 PM

    hmm,

    try @var && @var.id

    in this instance, all CouchRest knows is that you passed :name => 4 into it.

    checking for values of 4 is not gonna work.

    --

    however: I ...

  • hkstar
    hkstar created the ticket at 9:54 PM

    If you have a Couchrest::Model class Myclass, having set accessors up and everything, if you instantiate it while sending in undeclared variables:

    Myclass.new(:...

16 templates for _attachments. was created
  • J. Chris A.
    J. Chris A. created the ticket at 5:11 PM

    couchap uses doc.json.couchapp as a place for setting

Tuesday, October 28 2008
14 After benchmarking: couchrest performance bottleneck? was updated
  • sco
    sco commented at 12:05 PM

    Serendipitously, this ticket showed up in my news reader right next to an item about a faster Net::HTTP rewrite. Maybe it's a sign. FWIW:

    http://github.com/tarc...

  • Ben
    Ben commented at 11:54 AM

    Chris,

    here's my writeup of the situation. Long story short, Net::HTTP appears to be the root cause of the slow-downs. This affects all current couchdb ruby lib...

Monday, October 27 2008
14 After benchmarking: couchrest performance bottleneck? was updated
  • J. Chris A.
    J. Chris A. commented at 8:39 PM

    wow ben, thanks for the attention to detail.

    I've mostly been using CouchRest for shoveling data around, so I don't have req/response numbers like that, but tha...

  • Ben
    Ben created the ticket at 8:19 PM

    First of all thanks for having built and released couchrest. I've been playing around with it, and I like that it doesn't stray far from couchdb semantics. (Mod...

Friday, October 24 2008
12 POSTing to /_uuids fails was updated
  • J. Chris A.
    • State changed from new to wontfix
    by J. Chris A. at 12:07 PM

    The code already protects against the error responses from CouchDB on the UUIDs request, and leaves out the _id in that case, for CouchDB to fill in.

    The UUIDs ...

5 Bulk insert was updated
  • Brent Dillingham
    Brent Dillingham commented at 8:29 AM

    I notice that this has been implemented as CouchRest::Database#bulk_save, which does appear to work nicely.

    However I noticed that when doing something like:

    ...
Wednesday, October 22 2008
11 removing old design documents was created
  • Matt Lyon
    Matt Lyon created the ticket at 9:34 AM

    as i change and add views to my couchrest models, i'm noticing an accumulation of obsolete design documents. Not that it really matters, but if they're not goin...

Friday, October 10 2008
10 rails errors on was updated
  • Matt Lyon
    Matt Lyon commented at 8:07 PM

    are you planning on adding validations to couchrest::model directly? jay fields's validatable gem handles this

Wednesday, October 08 2008
8 include_docs support was updated
  • J. Chris A.
    • State changed from new to resolved
    by J. Chris A. at 12:32 PM

    7a92723: include-docs support

9 multi-key support was updated
  • J. Chris A.
    • State changed from new to resolved
    by J. Chris A. at 12:20 PM

    resolved e2f7163: multi-key support for views, temp-views, and alldocs

Monday, October 06 2008
10 rails errors on was created
  • J. Chris A.
    J. Chris A. created the ticket at 11:07 AM

    error handling that matches model.errors.on(:field)

Sunday, October 05 2008
9 multi-key support was created
8 include_docs support was created
Saturday, October 04 2008
7 pass a file to put_attachment was created
  • J. Chris A.
    J. Chris A. created the ticket at 2:00 PM

    this should be a simple patch to rest-client

Friday, October 03 2008
6 Bulk update was created
5 Bulk insert was created
  • Matt Aimonetti (mattetti)
    Matt Aimonetti (mattetti) created the ticket at 3:20 PM

    A user should be able to insert a bunch of records at once using _bulk_docs

4 Bulk Delete was created
3 Views returns cast properly was created
  • J. Chris A.
    J. Chris A. created the ticket at 3:14 PM

    If a view returns objects with a different couchrest-type, those should be instantiated as such.

    What to do about objects w/o a couchrest-type? They should be m...

2 Cascading validations was created
  • J. Chris A.
    J. Chris A. created the ticket at 3:11 PM

    Validations should also validate any casted subfields.

1 CouchDB named exceptions was created
  • J. Chris A.
    J. Chris A. created the ticket at 3:10 PM

    Right now we just let the RestClient exceptions bubble through. We should have exceptions parse the CouchDB JSON response, and have names that correspond to the...

Home was edited by J. Chris A. in CouchRest at 3:03 PM (+1 more edit)