Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rajeshpatil74 opened this issue Feb 9, 2021 · 2 comments

Comments

@rajeshpatil74
Copy link

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.

@filipwoz
Copy link

filipwoz commented Mar 29, 2021

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants