Add extension point for database size called DatabaseList:dbSizeReportFieldName,
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:dbSizeReportFieldName 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 with the correct tag once a new Fauxton release is made
Overview
Add extension point for database size called
DatabaseList:dbSizeReportFieldName
, this enables consumers to override the displayed value to meet their deployment needs. For example, in the case of Cloudant's usage, the defaultsizes.active
field is meaningless to their customers since they bill using the value fromsizes.external
, using the extension it is possible to customize the view to provide a better experiance.The extension point
DatabaseList:dbSizeReportFieldName
only supports the single extentsion, and assumes the field name is in thesizes
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