Skip to content

EnableRotation is ambiguous now that date rotation exists — should be EnableSizeRotation #381

@Christophe-Rogiers

Description

@Christophe-Rogiers

Description

The property name EnableRotation is used in two core types:

  • src/Servy.Core/Domain/Service.cs (line 99) — EnableRotation
  • src/Servy.Core/DTOs/ServiceDto.cs (line 82) — EnableRotation

Meanwhile, InstallServiceOptions correctly uses the disambiguated name EnableSizeRotation (line 42). The CLI also has a deprecated --enableRotation flag alongside the new --enableSizeRotation, confirming this ambiguity was recognized but only partially addressed.

With date-based rotation (EnableDateRotation, DateRotationType) now being a feature, EnableRotation is ambiguous — a developer cannot tell whether it refers to size-based or date-based rotation.

Severity

Warning — naming ambiguity in core domain model.

Suggested fix

Rename to EnableSizeRotation in both Service.cs and ServiceDto.cs for consistency with InstallServiceOptions.

Metadata

Metadata

Assignees

Labels

refactorChanges that improve structure, readability, or maintainability without altering external behavior

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions