couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-2629) Hide internal config details from other applications
Date Fri, 27 Feb 2015 19:47:05 GMT


Jan Lehnardt commented on COUCHDB-2629:


> Hide internal config details from other applications
> ----------------------------------------------------
>                 Key: COUCHDB-2629
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Database Core
>            Reporter: Russell Branca
> Throughout the code base we do things like `config:get("couch_httpd_auth", "authentication_db",
"_users")` which exposes internal details to other applications that don't need to be aware
of the particulars. This duplicates code unnecessarily and causes problematic typos to go
unnoticed like in COUCHDB-2628.
> One possible approach that I'm a fan of is to go into the application responsible for
relevant config value, and add a function to hide the details. For instance, this is done
in `cassim_metadata_cache:metadata_db`:

This message was sent by Atlassian JIRA

View raw message