/** * Checks if the trends page should be generated and displayed. * @return <code>true</code> if the page with trends should be displayed */ public boolean isTrendsAvailable() { return getTrendsLimit() > -1 && isTrendsStatsFile(); }
/** * Checks if the trends page should be generated and displayed. * @return <code>true</code> if the page with trends should be displayed */ public boolean isTrendsAvailable() { return getTrendsLimit() > -1 && isTrendsStatsFile(); }
private Trends updateAndSaveTrends(Reportable reportable) { Trends trends = loadOrCreateTrends(); appendToTrends(trends, reportable); // display only last n items - don't skip items if limit is not defined if (configuration.getTrendsLimit() > 0) { trends.limitItems(configuration.getTrendsLimit()); } // save updated trends so it contains history only for the last builds saveTrends(trends, configuration.getTrendsStatsFile()); return trends; }
private Trends updateAndSaveTrends(Reportable reportable) { Trends trends = loadOrCreateTrends(); appendToTrends(trends, reportable); // display only last n items - don't skip items if limit is not defined if (configuration.getTrendsLimit() > 0) { trends.limitItems(configuration.getTrendsLimit()); } // save updated trends so it contains history only for the last builds saveTrends(trends, configuration.getTrendsStatsFile()); return trends; }