Skip to content

Conversation

@azahmd
Copy link
Contributor

@azahmd azahmd commented Dec 15, 2025

  • The email template is missing the days_threshold value - this assigns the current value of the age_filter_value to the days_threshold.

Description:

Special Notes:


Submitter:

Have you (where applicable):

  • Added unit tests?
  • Checked the latest commit runs on Dev?
  • Updated the example config file(s) and README?

Reviewer

Does this PR:

  • Place non-StackStorm code into the lib directory?
  • Have unit tests for the action/sensor and lib layers?
  • Have clear and obvious action parameter names and descriptions?

@azahmd azahmd force-pushed the test_days_threshold branch from 749172b to e9070f1 Compare December 15, 2025 12:34
@codecov
Copy link

codecov bot commented Dec 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c8a66ec) to head (6120bdf).
⚠️ Report is 3 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@azahmd azahmd force-pushed the test_days_threshold branch 3 times, most recently from 91ad008 to 4a4279d Compare December 16, 2025 12:08
 - The email template is missing the days_threshold value - this assigns the current value of the age_filter_value to the days_threshold.
@azahmd azahmd force-pushed the test_days_threshold branch 5 times, most recently from cbbff1e to 0af9cca Compare December 16, 2025 15:43
schema:
username: null
shutoff_table: "No Shutoff VMs"
days_threshold: "No days"
Copy link
Collaborator

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
Copy link
Collaborator

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.
@azahmd azahmd force-pushed the test_days_threshold branch from 0af9cca to 6120bdf Compare December 17, 2025 11:56
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.

4 participants