[ 
https://issues.apache.org/jira/browse/COUCHDB-2474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14224983#comment-14224983
 ] 

ASF subversion and git services commented on COUCHDB-2474:
----------------------------------------------------------

Commit 07fe0738af9d60ce19fc7507059031b705675a97 in couchdb-fauxton's branch 
refs/heads/master from [~benkeen]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-fauxton.git;h=07fe073 ]

Move Helpers.docs into constants.js

This is a house cleaning ticket. It does a couple of things:
1. Moves the list of URLs stored in Helpers.docs into constants.js
2. Refactors constants to group the (now growing) list into appropriate
groups.

Now there are a lot less hardcoded "magic" strings throughout our
code, yay!

Closes COUCHDB-2474


> Deprecate Helpers.docs in favour of constants
> ---------------------------------------------
>
>                 Key: COUCHDB-2474
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2474
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Fauxton
>            Reporter: Ben Keen
>            Assignee: Ben Keen
>
> Right now we're using `Helpers.docs` to store a map of key-value pairs for 
> documentation URLs. Now we have a central constants file that does exactly 
> the same thing.
> Once this is done we should remove `Helpers.getDocUrl()` as well and just 
> pass the URL (stored in constants) right to the API Url tray template.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to