-
Notifications
You must be signed in to change notification settings - Fork 5
ENH: Add days_threshold for errored_vm schema and correct the unittests #423
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
749172b to
e9070f1
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #423 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 109 109
Lines 2577 2579 +2
Branches 315 316 +1
=========================================
+ Hits 2577 2579 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
91ad008 to
4a4279d
Compare
- The email template is missing the days_threshold value - this assigns the current value of the age_filter_value to the days_threshold.
cbbff1e to
0af9cca
Compare
| schema: | ||
| username: null | ||
| shutoff_table: "No Shutoff VMs" | ||
| days_threshold: "No days" |
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.
I guess this is fine, but I'd set this to 60 to match the default in the actions layer
|
|
||
| def find_shutoff_servers(cloud_account: str, from_projects: Optional[List[str]] = None): | ||
| def find_shutoff_servers( | ||
| cloud_account: str, days_threshold: int, from_projects: Optional[List[str]] = None |
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.
you should set a default days_threshold=0 here
- To make the email template show the number of days as days_threshold in email template which will will be provided in the action.
0af9cca to
6120bdf
Compare
Description:
Special Notes:
Submitter:
Have you (where applicable):
Reviewer
Does this PR:
libdirectory?liblayers?