-
Couldn't load subscription status.
- Fork 1.5k
#20463 - Retention for test case results and profile data #23988
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements retention policies for test case results and profile data to manage data growth over time. The default retention period is set to 1440 days (approximately 4 years) for both data types, allowing users to configure these values as needed.
Key Changes:
- Added retention configuration fields for test case results and profile data to the Data Retention Application schema
- Implemented cleanup methods in the DataRetention class to delete old test case results and profile data based on retention periods
- Added database migration scripts to set default retention values for existing installations
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| DataRetentionApplication.json (UI schema) | Added testCaseResultsRetentionPeriod and profileDataRetentionPeriod fields with 1440-day defaults |
| DataRetentionApplication.md | Added documentation sections for the new retention period configuration fields |
| dataRetentionConfiguration.json (spec) | Added retention period fields to the application configuration schema definition |
| EntityProfileResourceTest.java | Added test to verify profile data deletion by timestamp cutoff |
| TestCaseResourceTest.java | Added test to verify test case results deletion by timestamp cutoff |
| DataRetentionApplication.json (service config) | Updated default application configuration with new retention period values |
| EntityTimeSeriesDAO.java | Added deleteTestCaseResultsBeforeCutOff method for time-series data cleanup |
| DataRetention.java | Implemented cleanup logic for test case results and profile data with DAO references |
| postDataMigrationSQLScript.sql (postgres) | Added migration to set default retention values for existing DataRetentionApplication |
| postDataMigrationSQLScript.sql (mysql) | Added migration to set default retention values for existing DataRetentionApplication |
openmetadata-service/src/main/resources/json/data/app/DataRetentionApplication.json
Show resolved
Hide resolved
|
|



Describe your changes:
Fixes #20463
implement retention for test case results and profile data. The default retention period is 1440 days (or 4 years worth of data) -- configurable by users.
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Improvement