Skip to content

Conversation

@Rose-Northey
Copy link
Contributor

@Rose-Northey Rose-Northey commented Nov 25, 2025

Description

Enables the Space Default Retention Policy to be set for Runbook retention.
[sc-126262]

@Rose-Northey Rose-Northey changed the title Fnm/space default runbook retention feat: enable space default runbook retention Nov 26, 2025
@Rose-Northey Rose-Northey marked this pull request as ready for review December 1, 2025 02:35
@Rose-Northey Rose-Northey requested review from a team and Copilot December 1, 2025 02:48
Copy link
Contributor

Copilot AI left a 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 pull request enables support for Runbook retention policies as part of the Space Default Retention Policy feature. The changes add the ability to configure and manage runbook retention settings alongside existing lifecycle retention policies.

Key Changes

  • Added RunbookRetentionType constant to support runbook retention policy type
  • Implemented RunbookRetentionPolicy struct with count-based and keep-forever retention strategies
  • Added comprehensive end-to-end tests covering read and modify operations for runbook retention policies

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pkg/retention/retention_policy.go Added RunbookRetentionType constant following existing naming patterns
pkg/retention/space_default_runbook_retention_policy.go Introduced new runbook retention policy struct and constructor functions matching the established pattern for lifecycle policies
test/e2e/space_default_retention_policy_service_test.go Added three test cases for runbook retention: read, count-based modification, and forever-based modification; also standardized import ordering

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@OctopusDeploy OctopusDeploy deleted a comment from Copilot AI Dec 1, 2025
Copy link
Contributor

@octopus-hideaki octopus-hideaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@Rose-Northey Rose-Northey merged commit 9e9b427 into main Dec 2, 2025
6 checks passed
@Rose-Northey Rose-Northey deleted the fnm/space-default-runbook-retention branch December 2, 2025 00:57
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

Successfully merging this pull request may close these issues.

2 participants