-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Business hour logic to routing and triage #365
Conversation
…hubertdeng123/add-holiday-exception
hmm flaky tests that are on main, I'll try to fix that up tomorrow |
@@ -182,10 +182,9 @@ describe('issueNotifier Tests', function () { | |||
expect(say).lastCalledWith( | |||
'This channel is set to receive notifications for: Team: Test (no office specified)' | |||
); | |||
expect(await getLabelsTable().where({ channel_id })).toEqual([ | |||
expect(await getLabelsTable().where({ channel_id })).toMatchObject([ |
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.
this fixes flaky tests, id
here isn't what we care about
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.
Good find!
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.
Couple of suggestions for clarifying comments and a suggestion to rename things to be more consistent but overall, well done! Dealing with dates and date math in JS is a pain so I'm impressed!
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.
Picked over for understanding, suggested some naming clarifications and logic tighten-ups.
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.
Three things:
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.
Ship it!
This PR adds two functions allows for calculating
timeToTriageBy
andtimeToRouteBy
in business hours instead of business days.