Skip to content

Commit 55704f6

Browse files
authored
Merge pull request #39 from SDA-SE/feat/limitObjects
feat: limit the number of Objects per requests
2 parents c33cc87 + 904eddf commit 55704f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

statistic-client/src/main/groovy/org/sdase/StatisticClient.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ class StatisticClient {
4242
log.info "Time range to look at: ${startDate} - ${endDate}"
4343
def dojoConf = createDojoConf()
4444

45-
// set DEFECT_DOJO_OBJET_LIMIT to 3000 to save tons of unnecessary requests.
45+
// set DEFECT_DOJO_OBJET_LIMIT to save tons of unnecessary requests.
4646
// using Reflection, not inheritance because weird compile time classpath issues seem to prevent subclassing
4747
GenericDefectDojoService.getDeclaredField("DEFECT_DOJO_OBJET_LIMIT").setAccessible(true)
4848
def productService = new ProductService(dojoConf)
4949
//noinspection GroovyAccessibility -- see comment above
50-
productService.DEFECT_DOJO_OBJET_LIMIT = 3000
50+
productService.DEFECT_DOJO_OBJET_LIMIT = 1000
5151
log.info("limit is set to productService.DEFECT_DOJO_OBJET_LIMIT ${productService.DEFECT_DOJO_OBJET_LIMIT}")
5252
def findingService = new FindingService(dojoConf)
5353
//noinspection GroovyAccessibility -- see comment above
54-
findingService.DEFECT_DOJO_OBJET_LIMIT = 3000
54+
findingService.DEFECT_DOJO_OBJET_LIMIT = 1000
5555
log.info("limit is set to findingService.DEFECT_DOJO_OBJET_LIMIT ${findingService.DEFECT_DOJO_OBJET_LIMIT}")
5656

5757
generateResponseStatistic(productService, findingService, startDate, endDate)

0 commit comments

Comments
 (0)