28
Views
7
Comments
[Testing Framework] Delete data older than 1 year
testing-framework
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

Hi Leonardo,


Would it be possible to include some kind of timer to delete old test results other than x amount of months? 

We currently have over 2 million rows in the table and are generally not so interested in the history of these tests longer than 2 months 


Kind regards,

Bas

2019-11-11 17-10-24
Manish Jawla
 
MVP

Hi @Bas de Jong ,

If you know where data is getting saved I mean in which CS module and you know entities which are responsible for holding this test data, you can create the timer by your self and add a condition to delete the data older than 2 months & schedule it to run every night.

Regards,

Manish Jawla

2016-04-22 00-29-45
Nuno Reis
 
MVP

Hello.

The relevant delete rules are set for Delete, so you only need to delete from TestCase for the test to disappear, or delete from TestResult for TestResultAssertion to go.

You can set a timer to delete from TestResult if it is older than x days. Just don't forget to use SiteProperties to set that number of days for the timer to be configurable.

2023-04-19 18-38-51
Bas de Jong

Hi @Manish Jawla and @Nuno Reis. Correct, but i would love to have this included in the component instead of having to build something (small) on top of it. 


Kind regards,

Bas

2019-11-11 17-10-24
Manish Jawla
 
MVP

Hi @Bas de Jong ,

I understand your concern and suggestion. However, it's not always easy for a component creator to fulfill every request or requirement immediately. As professionals, we all juggle our day-to-day responsibilities, yet many of us still try to support the community and share knowledge whenever possible.

If something is missing or can be easily improved, I believe there’s no harm in addressing it yourself. Otherwise, you may need to wait for the component owner to implement the fix and release an updated version.

At the end of the day, it’s a matter of choice. I completely respect your perspective, but if the fix is straightforward and doesn’t depend on the original author, I’d encourage taking the initiative to address it yourself.

Regards,

Manish Jawla

2023-04-19 18-38-51
Bas de Jong

@Manish Jawla  @Nuno Reis @Leonardo Fernandes 
Sorry for the late reaction, i tried to build it, but the entities are exposed as read-only and there are no delete CRUD actions exposed. So would you guys be able to change the component to at least expose the delete actions of:

- test Suite

- test Case

- test Result


So i can delete the inactive ones after x period of time, and i can delete the test results that are older than a certain period outside of the application

2016-04-22 00-29-45
Nuno Reis
 
MVP

Hello.

You can edit any component you install as you want. So you can customize it as you need, or improve it, or fix it according with internal guidelines.

I would advice you to clone it and change the copy instead of simply editing the original. This way if a new version shows on the Forge, it won't accidentally crush you custom code.

2023-04-19 18-38-51
Bas de Jong

Correct, but i like the component so much that i want to receive the updates ;) 
Ill change some things and ill message the team to upload a changed version to include data deletion after a year (set by site property)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.