Skip to content

Conversation

@hubertdeng123
Copy link
Member

Closes #737

@codecov
Copy link

codecov bot commented Dec 29, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (f9457ee) 86.19% compared to head (774fa92) 86.19%.

Files Patch % Lines
src/utils/businessHours.ts 88.88% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #738   +/-   ##
=======================================
  Coverage   86.19%   86.19%           
=======================================
  Files         116      116           
  Lines        3231     3231           
  Branches      656      656           
=======================================
  Hits         2785     2785           
  Misses        432      432           
  Partials       14       14           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

return calculateTimeToRespondBy(
MAX_TRIAGE_DAYS,
target_name.slice(PRODUCT_AREA_LABEL_PREFIX.length),
return calculateTimeToRespondBy({
Copy link
Contributor

Choose a reason for hiding this comment

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

Surprising that this line is not hit by tests? Maybe the instrumentation is being weird?

productArea,
repo,
org,
testTimestamp,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Is this an argument that we only pass in for testing? I wonder if there's another way to do this, a la pythong's freezgun.

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.

Name parameterize business hour functions

2 participants