You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jeff Hinrichs (JIRA)" <ji...@apache.org> on 2009/01/13 04:19:00 UTC

[jira] Created: (COUCHDB-209) Refine httpd_db_handlers API to map the externals from paths directly to scripts

Refine httpd_db_handlers API to map the externals from paths directly to scripts
--------------------------------------------------------------------------------

                 Key: COUCHDB-209
                 URL: https://issues.apache.org/jira/browse/COUCHDB-209
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
    Affects Versions: 0.9
         Environment: all
            Reporter: Jeff Hinrichs


We could change the API to map the externals from paths directly to
scripts, like

[httpd_db_handlers]
_mypath = {couch_httpd_external, handle_external_req, "/path/to/my/script"}

which would be fine by me.

The current code is like it is because the original implementation was
designed to have multiple scripts mounted at the /db/_external path.

Do you mind opening a ticket about this? - I'm happy to write the code
but I'm supposed to be working on the book right now, so it'll have to
wait.
link to mail list thread:
http://mail-archives.apache.org/mod_mbox/couchdb-user/200901.mbox/%3C5aaed53f0901120631v112916eewcc50e96c44728a3d@mail.gmail.com%3E

It would appear to be a good solution to allow the flexibility desired while narrowing the number of local.ini edits to accomplish.

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


[jira] Updated: (COUCHDB-209) Refine httpd_db_handlers API to map the externals from paths directly to scripts

Posted by "Jan Lehnardt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Lehnardt updated COUCHDB-209:
---------------------------------

    Fix Version/s: 0.9

> Refine httpd_db_handlers API to map the externals from paths directly to scripts
> --------------------------------------------------------------------------------
>
>                 Key: COUCHDB-209
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-209
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 0.9
>         Environment: all
>            Reporter: Jeff Hinrichs
>            Assignee: Chris Anderson
>            Priority: Blocker
>             Fix For: 0.9
>
>
> We could change the API to map the externals from paths directly to
> scripts, like
> [httpd_db_handlers]
> _mypath = {couch_httpd_external, handle_external_req, "/path/to/my/script"}
> which would be fine by me.
> The current code is like it is because the original implementation was
> designed to have multiple scripts mounted at the /db/_external path.
> Do you mind opening a ticket about this? - I'm happy to write the code
> but I'm supposed to be working on the book right now, so it'll have to
> wait.
> link to mail list thread:
> http://mail-archives.apache.org/mod_mbox/couchdb-user/200901.mbox/%3C5aaed53f0901120631v112916eewcc50e96c44728a3d@mail.gmail.com%3E
> It would appear to be a good solution to allow the flexibility desired while narrowing the number of local.ini edits to accomplish.

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


[jira] Updated: (COUCHDB-209) Refine httpd_db_handlers API to map the externals from paths directly to scripts

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis updated COUCHDB-209:
--------------------------------------

    Skill Level: New Contributors Level (Easy)

> Refine httpd_db_handlers API to map the externals from paths directly to scripts
> --------------------------------------------------------------------------------
>
>                 Key: COUCHDB-209
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-209
>             Project: CouchDB
>          Issue Type: Wish
>          Components: HTTP Interface
>    Affects Versions: 0.9
>         Environment: all
>            Reporter: Jeff Hinrichs
>            Assignee: Chris Anderson
>             Fix For: 0.12
>
>
> We could change the API to map the externals from paths directly to
> scripts, like
> [httpd_db_handlers]
> _mypath = {couch_httpd_external, handle_external_req, "/path/to/my/script"}
> which would be fine by me.
> The current code is like it is because the original implementation was
> designed to have multiple scripts mounted at the /db/_external path.
> Do you mind opening a ticket about this? - I'm happy to write the code
> but I'm supposed to be working on the book right now, so it'll have to
> wait.
> link to mail list thread:
> http://mail-archives.apache.org/mod_mbox/couchdb-user/200901.mbox/%3C5aaed53f0901120631v112916eewcc50e96c44728a3d@mail.gmail.com%3E
> It would appear to be a good solution to allow the flexibility desired while narrowing the number of local.ini edits to accomplish.

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


[jira] Commented: (COUCHDB-209) Refine httpd_db_handlers API to map the externals from paths directly to scripts

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670998#action_12670998 ] 

Paul Joseph Davis commented on COUCHDB-209:
-------------------------------------------

I've been thinking about this ticket for a bit. I understand the desire to minimize the number of INI edits etc, but something keeps bothering me about removing the [external] section entirely.

Also, is this really 0.9 blocking? I would vote that this isn't an API incompatibility.

> Refine httpd_db_handlers API to map the externals from paths directly to scripts
> --------------------------------------------------------------------------------
>
>                 Key: COUCHDB-209
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-209
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 0.9
>         Environment: all
>            Reporter: Jeff Hinrichs
>            Assignee: Chris Anderson
>            Priority: Blocker
>             Fix For: 0.9
>
>
> We could change the API to map the externals from paths directly to
> scripts, like
> [httpd_db_handlers]
> _mypath = {couch_httpd_external, handle_external_req, "/path/to/my/script"}
> which would be fine by me.
> The current code is like it is because the original implementation was
> designed to have multiple scripts mounted at the /db/_external path.
> Do you mind opening a ticket about this? - I'm happy to write the code
> but I'm supposed to be working on the book right now, so it'll have to
> wait.
> link to mail list thread:
> http://mail-archives.apache.org/mod_mbox/couchdb-user/200901.mbox/%3C5aaed53f0901120631v112916eewcc50e96c44728a3d@mail.gmail.com%3E
> It would appear to be a good solution to allow the flexibility desired while narrowing the number of local.ini edits to accomplish.

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


[jira] Updated: (COUCHDB-209) Refine httpd_db_handlers API to map the externals from paths directly to scripts

Posted by "Jan Lehnardt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Lehnardt updated COUCHDB-209:
---------------------------------

    Assignee: Chris Anderson
    Priority: Blocker  (was: Major)

API change. Mark blocking for 0.9 and assign to Chris Anderson.

> Refine httpd_db_handlers API to map the externals from paths directly to scripts
> --------------------------------------------------------------------------------
>
>                 Key: COUCHDB-209
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-209
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 0.9
>         Environment: all
>            Reporter: Jeff Hinrichs
>            Assignee: Chris Anderson
>            Priority: Blocker
>
> We could change the API to map the externals from paths directly to
> scripts, like
> [httpd_db_handlers]
> _mypath = {couch_httpd_external, handle_external_req, "/path/to/my/script"}
> which would be fine by me.
> The current code is like it is because the original implementation was
> designed to have multiple scripts mounted at the /db/_external path.
> Do you mind opening a ticket about this? - I'm happy to write the code
> but I'm supposed to be working on the book right now, so it'll have to
> wait.
> link to mail list thread:
> http://mail-archives.apache.org/mod_mbox/couchdb-user/200901.mbox/%3C5aaed53f0901120631v112916eewcc50e96c44728a3d@mail.gmail.com%3E
> It would appear to be a good solution to allow the flexibility desired while narrowing the number of local.ini edits to accomplish.

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


[jira] Updated: (COUCHDB-209) Refine httpd_db_handlers API to map the externals from paths directly to scripts

Posted by "Chris Anderson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Anderson updated COUCHDB-209:
-----------------------------------

    Fix Version/s:     (was: 0.9)
                   0.10
         Priority: Major  (was: Blocker)
       Issue Type: Wish  (was: Improvement)

I think I agree with Paul - I'm not exactly sure what I'd change here...

I think this may be tied up in the larger refactor of show/list and OTPification of CouchDB into different applications. I'm moving this ticket from 0.9

If you're using _external and you have a concrete proposal (for how you'd like configuration to be different, please attach a well-commented ini file that illustrates the difference between how it is now, and how you'd like it to be.)

Maybe this ticket is just asking for something simple, but I'm having a hard time wrapping my head around exactly what.

> Refine httpd_db_handlers API to map the externals from paths directly to scripts
> --------------------------------------------------------------------------------
>
>                 Key: COUCHDB-209
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-209
>             Project: CouchDB
>          Issue Type: Wish
>          Components: HTTP Interface
>    Affects Versions: 0.9
>         Environment: all
>            Reporter: Jeff Hinrichs
>            Assignee: Chris Anderson
>             Fix For: 0.10
>
>
> We could change the API to map the externals from paths directly to
> scripts, like
> [httpd_db_handlers]
> _mypath = {couch_httpd_external, handle_external_req, "/path/to/my/script"}
> which would be fine by me.
> The current code is like it is because the original implementation was
> designed to have multiple scripts mounted at the /db/_external path.
> Do you mind opening a ticket about this? - I'm happy to write the code
> but I'm supposed to be working on the book right now, so it'll have to
> wait.
> link to mail list thread:
> http://mail-archives.apache.org/mod_mbox/couchdb-user/200901.mbox/%3C5aaed53f0901120631v112916eewcc50e96c44728a3d@mail.gmail.com%3E
> It would appear to be a good solution to allow the flexibility desired while narrowing the number of local.ini edits to accomplish.

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


[jira] Updated: (COUCHDB-209) Refine httpd_db_handlers API to map the externals from paths directly to scripts

Posted by "Noah Slater (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Slater updated COUCHDB-209:
--------------------------------

    Fix Version/s:     (was: 0.11)
                   0.12

> Refine httpd_db_handlers API to map the externals from paths directly to scripts
> --------------------------------------------------------------------------------
>
>                 Key: COUCHDB-209
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-209
>             Project: CouchDB
>          Issue Type: Wish
>          Components: HTTP Interface
>    Affects Versions: 0.9
>         Environment: all
>            Reporter: Jeff Hinrichs
>            Assignee: Chris Anderson
>             Fix For: 0.12
>
>
> We could change the API to map the externals from paths directly to
> scripts, like
> [httpd_db_handlers]
> _mypath = {couch_httpd_external, handle_external_req, "/path/to/my/script"}
> which would be fine by me.
> The current code is like it is because the original implementation was
> designed to have multiple scripts mounted at the /db/_external path.
> Do you mind opening a ticket about this? - I'm happy to write the code
> but I'm supposed to be working on the book right now, so it'll have to
> wait.
> link to mail list thread:
> http://mail-archives.apache.org/mod_mbox/couchdb-user/200901.mbox/%3C5aaed53f0901120631v112916eewcc50e96c44728a3d@mail.gmail.com%3E
> It would appear to be a good solution to allow the flexibility desired while narrowing the number of local.ini edits to accomplish.

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