rhyshort opened a new pull request #1317:
URL: https://github.com/apache/couchdb-fauxton/pull/1317


   ## Overview
   
   Add extension point for database size called `DatabaseList:dbSizeReporter`,
   this enables consumers to override the displayed value to meet
   their deployment needs. For example, in the case of Cloudant's usage,
   the default `sizes.active` field is meaningless to their customers
   since they bill using the value from `sizes.external`, using the
   extension it is possible to customize the view to provide a better 
experiance.
   
   
   The extension point `DatabaseList:dbSizeReporter` only supports
   the single extentsion, and assumes the field name is in the `sizes`
   object returned from db_info.
   
   
   ## Testing recommendations
   
   Regular CI tests passing. It can be further tested by providing an extension
   to use one of the other fields in the `sizes` object from the `{db}/` 
endpoint.
   
   ## GitHub issue number
   
   n/a
   
   ## Related Pull Requests
   
   n/a
   
   ## Checklist
   
   - [x] Code is written and works correctly;
   - [ ] Changes are covered by tests;
   - [ ] Documentation reflects the changes;
   - [ ] Update 
[rebar.config.script](https://github.com/apache/couchdb/blob/master/rebar.config.script)
 with the correct tag once a new Fauxton release is made
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to