Questions tagged [design-documents]

1

votes
0

answer
114

Views

how to make better doc/user -specific write permissions in couchDB?

I am playing around with CouchDB and PouchDB for a project where users have their own database and can add each other to view, or edit their docs. Goal is to have different levels of accessibility: Depending on the docs themselves other users, who are not the docs.owner will have limited writing/upd...
gauguerilla
1

votes
1

answer
39

Views

In TDD approach can we have Detail Design Document?

We are newly getting into this TDD approach. Apart from other initial hiccups we are also confused whether to create any Detail Design Document(DDD). In traditional way we used to follow this path, - Business Requirement Document> Functional Specification Document> DDD> Construction> Testing>... in...
pasaban
1

votes
1

answer
1.4k

Views

Filter design documents with PouchDB

I'm using a design document to ensure that only owners can modify docs. How can I prevent couchdb from replicating this design document?
redgeoff
1

votes
1

answer
603

Views

CouchDB not recognising the update functions in my new design document

I have create a new design documents with a dummy update function. But when I try to test it, CouchDB is not identifying my function in the design document. Below is my design document: { '_id': '_design/payable_draft', '_rev': '13-c9c9a9f88c24b75cdd28204a526f66a6', 'updates': '{\'empty_update\':\'f...
Purushotham Kumar
1

votes
1

answer
65

Views

Document update conflict with CouchDB design update

I am trying create an equivalent of create/update trigger used in traditional RDBMs. create_ts is being created fine, however update_ts part is not working for me. 'updates': { 'add_ts': 'function(doc, req) { if(!doc){ var result=JSON.parse(req.body); result.created_ts=new Date(); return [result, '...
bioffe
19

votes
1

answer
72.6k

Views

Design Documents (High Level and Low Level Design Documents) [closed]

What actually goes into the high level and low level design documents? (I specifically wish to know which diagrams are drawn in both the documents). I've gone through a lot of resources but I'm a little confused. As per my knowledge... HLDD contains the context diagram and the architecture diagram...
Pari
1

votes
1

answer
1.7k

Views

CouchDB, all_docs and filter design documents with endkey

First, this question - filter design documents from all_docs - already seemed to be solved like described here: https://plus.google.com/+JasonDeRose/posts/1iP5tu3wVqw /mydb/_all_docs?endkey=%22_%22 and worked in first place. However, suddenly in a different setup (actually just different deploy),...
Micha
3

votes
4

answer
162

Views

What are the conventions for types in Ruby?

Being that Ruby is a language with purely dynamic types, I'm never quite sure what level of expectation I should have for the types passed to my methods. For example, if my method only functions when passed an Integer, should I be actively checking to make sure that's the case or should I just allow...
SaxSalute
5

votes
4

answer
1.6k

Views

Design documents vs UML or both?

I've had a hard time sitting in front of UML and getting value out of it because it almost seems like as much work as programming (if you use an expressive language). I find that writing natural language tells me more about a software project than creating complicated diagrams. I'm new to UML though...
orokusaki
2

votes
1

answer
546

Views

Excluding design documents in _all_docs query in Cloudant

I want to retrieve all the documents other than design documents but _all_docs returns all the documents in the DB. From the answers, I have found that using two queries would give the results. _all_docs?endkey='_' - lists documents upto the first design doc _all_docs?startkey='design_\uffff' - list...
ShwetaJ
2

votes
2

answer
184

Views

A Good Point to Create Design Documents in CouchDb

I have a CouchDb instance running a peruser database configuration. Each user database generated (when a user is added to the _users database) needs to have the same design documents with view/list logic etc. What is the defacto way to add the design documents to the database upon database creatio...
shennan