#367 Limit results returned when verbose=true
Closed by gnaponie. Opened by gnaponie.
gnaponie/greenwave limit-results-verbose  into  master

Download 367.patch

When asked for a decision with verbose flag = true, Greenwave returns
the list of matching results for that decision. But when those
results are too many, the request returns with a timeout. Let's just
return the first 20 results and log that the reply is truncated for
debugging reasons.

if limit is None or cached_results.last_page < limit

I think we are going to drop this PR... some discussion on IRC... about the fact that maybe return only the first 20 results it's not a good thing and we might want to increase the limit when asking for the results to resultsdb... That was setted to 1 for a reason, let's see if it's good to reconsider that.

Pull-Request has been closed by gnaponie

Metadata