willholley commented on a change in pull request #1245: Mango: support multiple
server-side warnings
URL: https://github.com/apache/couchdb-fauxton/pull/1245#discussion_r364708522
##########
File path: app/addons/documents/mango/components/ExecutionStats.js
##########
@@ -37,18 +35,10 @@ export default class ExecutionStats extends
React.Component {
return [minutes, ' ', minuteText, ', ', seconds, ' ',
secondsText].join('');
}
- getWarning(executionStats, warning) {
- if (!executionStats) { return warning; }
-
- // warn if many documents scanned in relation to results returned
- if (!warning && executionStats.results_returned) {
- const docsExamined = executionStats.total_docs_examined ||
executionStats.total_quorum_docs_examined;
- if (docsExamined / executionStats.results_returned > 10) {
- return TOO_MANY_DOCS_SCANNED_WARNING;
- }
+ getWarning(warning) {
+ if (warning) {
+ return warning.split('\n').join('<br>');
Review comment:
thanks @Antonio-Maranhao - updated with those changes
----------------------------------------------------------------
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]
With regards,
Apache Git Services