-
Notifications
You must be signed in to change notification settings - Fork 12
Improved deleting old be #65
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
Conversation
Reviewer's Guide by SourceryThis pull request introduces a new method Sequence diagram for cleaning old boot environmentsequenceDiagram
participant UpdateStationFrontend
participant bectl
loop For each boot environment (be) in bectl.get_be_list()
UpdateStationFrontend->>UpdateStationFrontend: should_destroy_be(be, today)
alt should_destroy_be(be, today) == True
UpdateStationFrontend->>bectl: destroy_be(be.split()[0])
end
end
Updated class diagram for UpdateStationFrontendclassDiagram
class UpdateStationFrontend {
+should_destroy_be(be_line: str, today_str: str) bool
}
note for UpdateStationFrontend "New method to determine if a Boot Environment should be destroyed"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @ericbsd - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider extracting the BE name, active status, and mount point into separate functions for better readability.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Summary by Sourcery
Enhancements:
should_destroy_be
to determine if a boot environment should be destroyed based on its name, active status, and mount point.