couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (JIRA)" <>
Subject [jira] Closed: (COUCHDB-589) Simplify Query Server interface and Design Handlers
Date Thu, 04 Feb 2010 23:11:30 GMT


Jan Lehnardt closed COUCHDB-589.

       Resolution: Fixed
    Fix Version/s: 0.11

r906721 commits a patch that re-enables 404 handling in show functions. If a show function
that doesn't explicitly handles the 404 case (i.e. throws a null-exception), CouchDB still
returns a 404 error for the user instead of blowing up in a 500 error. The only change towards
older behaviour is that req.docId is now called

> Simplify Query Server interface and Design Handlers
> ---------------------------------------------------
>                 Key: COUCHDB-589
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: JavaScript View Server
>            Reporter: Chris Anderson
>            Assignee: Chris Anderson
>             Fix For: 0.11
>         Attachments: ddoc_qs.patch, design_handlers.patch, show_handle.404-2.patch, show_handle.404.diff
> This patch refactors list, show, update, filter, and view handling to have a unified
interface for loading the design document and functions from it. It is a step on the path
to removing a lot of function src passing overhead from the view server protocol.
> The patch also removes some old part of the API while improving other parts of the API.
> The big changes:
> Load the design document before handing it to the design document handlers. This removes
a lot of duplicated code.
> Remove /db/_view handler. I think it's in our interest to remove the last bits of the
old-style API before 0.11.
> I also clean up some rough edges in the API.
> I plan to commit this patch soon, but want to give people an opportunity to look it over.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message