From 9999126a8eeaf68f07f0799e82e1d848736db66a Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 22 May 2020 11:28:22 +0300 Subject: [PATCH] Don't cap node-reports to 50. This closes #74, by removing the hardwired limit of node-reports we display. While it might be more flexible to allow a configurable limit too many flags get annoying so I think we'll just remove it. If there are too many reports for a user/node then I'd suggest pruning more frequently. --- db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.go b/db.go index 9429da0..c652c2c 100644 --- a/db.go +++ b/db.go @@ -592,7 +592,7 @@ func getReports(fqdn string) ([]PuppetReportSummary, error) { // // Select the status. // - stmt, err := db.Prepare("SELECT id, fqdn, environment, state, executed_at, runtime, failed, changed, total, yaml_file FROM reports WHERE fqdn=? ORDER by executed_at DESC LIMIT 50") + stmt, err := db.Prepare("SELECT id, fqdn, environment, state, executed_at, runtime, failed, changed, total, yaml_file FROM reports WHERE fqdn=? ORDER by executed_at DESC") if err != nil { return nil, err }