klov icon indicating copy to clipboard operation
klov copied to clipboard

Klov Reporter - Possiblity to maintain max number of launches in database

Open rajeshpatil74 opened this issue 5 years ago • 2 comments

With Klov reporting, every launch stores the test results in mongodb.

Is it possible to maintain only last 25 or 50 launches in the database, so database size growing can be restricted. The property should be configurable.

rajeshpatil74 avatar Feb 09 '21 09:02 rajeshpatil74

Or to define some archive rules per project like:

  • Max Days to keep Launches
  • Max Days to keep media in Launches
  • Min numbers of Successful launches to keep

filipwoz avatar Mar 29 '21 17:03 filipwoz

Additionally observed that the new KLOV also has the same issue as the old one: When database is growing the performance of loading the reports is continuously falling until it exceeds user acceptance boarder. I tried to help myself by deleting KLOV projects of by deleting reports from a given project by date older then this way:

db.log.remove({$and: [{"project":ObjectId("607954348459090c083dec1f")},{"timestamp":{$lte:ISODate("2021-04-25 00:00:00")}}]})
db.test.remove({$and: [{"project":ObjectId("607954348459090c083dec1f")},{"startTime":{$lte:ISODate("2021-04-25 00:00:00")}}]})
db.report.remove({$and: [{"project":ObjectId("607954348459090c083dec1f")},{"startTime":{$lte:ISODate("2021-04-25 00:00:00")}}]})

but this should really be a part of the solution to offer deletion of old stuff!

filipwoz avatar Apr 30 '21 12:04 filipwoz