Launches retention policy
Retention policies play a pivotal role in ensuring that companies maintain control over their data. In ReportPortal, on the General tab in Project Settings, the retention policy outlines the guidelines for how long regular launches and their descendants (logs, attachments) should be kept and when they should be deleted.
You can also mark some launches as important, meaning they are generally not subject to deletion by the time-based retention policy. These launches can only be deleted manually or if storage is overused (in this case new launches will displace old ones, even if they are marked as important).
You can mark a launch as important either through the application's UI or during test reporting using special system attributes.
Mark launch as important on UI
- Go to the 'Launches' page.
- Open the burger menu for the launch.
- Click on the 'Mark as Important' option on the menu.
- Confirm your decision by clicking the 'Mark as Important' button on the 'Mark as Important' modal window.
Administrator can mark any launch as important.
Project Manager can mark as important any launch within their own project.
Customers and Members can mark as important only their own launch.
Unmark important launches on UI
- Go to the 'Launches' page.
- Open the burger menu for the launch.
- Click on the 'Unmark as Important' option in the menu.
- Click on the 'Unmark' button on the 'Unmark as Important' modal window.
Administrator can unmark any launch as important.
Project Manager can unmark as important any launch within their own project.
Customers and Members can unmark as important only their own launch.
Report launch as important
You can also mark launch as important while reporting using following parameters:
In case launch is reported with system attributes retentionPolicy : regular and retentionPolicy : important, then attribute retentionPolicy : important is taken for defining the field value.
In case launch is reported without retentionPolicy system attribute or with random attribute like retentionPolicy : qwerty, then the behavior will be as for the launch with system attribute retentionPolicy : regular.
Delete important launch on UI
- Go to the 'Launches' page.
- Select important launch.
- Click Actions -> Delete.
- Click 'Delete Important Launch' button on the 'Delete Launch' modal window.
OR
- Go to the 'Launches' page.
- Open the burger menu for the important launch.
- Click on the 'Delete' option on the menu.
- Click 'Delete Important Launch' button on the 'Delete Launch' modal window.
Administrator can delete important launches of all users.
Project Manager can delete the launches of users within their own project.
Customers and Members can delete only their own launches.
Bulk delete important launches
- Go to the 'Launches' page.
- Select at least two important launches.
- Click Actions -> Delete.
- Click 'Delete Important Launches' button on the 'Delete Launches' modal window.
Administrator can perform bulk delete important launches of all users.
Project Manager can perform bulk delete the launches of users within their own project.
Customers and Members can perform bulk delete only their own launches.
Bulk delete important and regular launches
- Go to the 'Launches' page.
- Select at least one important launch and one regular launch.
- Click Actions -> Delete.
- Click ‘Delete with Important Launches' button on the 'Delete Launches' modal window.
Important launch deletion on full storage
If all your storage is used and it consists of both regular and important launches, as soon as a new launch arrives, regular launches and all their related descendants will be deleted, starting from the oldest ones. The weight of deleted regular launches will be proportional to the weight of the new launches that are being reported.
If there are no regular launches remaining and all your memory space is used by important launches, then important launches and their descendants will be deleted starting from the oldest until the storage no longer exceeds capacity. The weight of deleted important launches will be proportional to the weight of the new launches that are being reported.
When it comes to attachments, in case of storage overusage by attachments of both regular and important launches, the same logic will apply. Attachments of regular launches are subject to deletion first. If there are no attachments from regular launches left, then attachments from important launches will be deleted, starting from the oldest, until the storage no longer exceeds capacity.
Thus, storing and managing data within ReportPortal is now even more convenient. The updates to the launches retention policy introduce the option to mark launches as important, provide greater flexibility and ensure that crucial data is kept as long as needed.