Skip to content
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

Correctly unsnooze snoozed trips #274

Merged
merged 5 commits into from
Dec 5, 2024
Merged

Correctly unsnooze snoozed trips #274

merged 5 commits into from
Dec 5, 2024

Conversation

binh-dam-ibigroup
Copy link
Collaborator

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JavaDoc and code is thoroughly commented
  • [na] The description lists all applicable issues this PR seeks to resolve
  • [na] The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing

Description

This PR fixes an issue where monitoring on snoozed trip did not resume automatically the next calendar day.

Copy link
Contributor

@br648 br648 left a comment

Choose a reason for hiding this comment

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

All good and no issues with time zones in the unit test.

@br648 br648 assigned JymDyerIBI and unassigned br648 Nov 28, 2024
@binh-dam-ibigroup
Copy link
Collaborator Author

All good and no issues with time zones in the unit test.

Did it unsnooze a trip if you let it run? On mine it didn't, I'll investigate.

@binh-dam-ibigroup
Copy link
Collaborator Author

All good and no issues with time zones in the unit test.

Did it unsnooze a trip if you let it run? On mine it didn't, I'll investigate.

Never mind, the previous try might have been a flake.

@binh-dam-ibigroup
Copy link
Collaborator Author

As mentioned in the team meeting, it is the wrong check (if you snooze a monitored trip on a day the trip does not happen, it will not unsnooze), so I'll take it back.

@binh-dam-ibigroup
Copy link
Collaborator Author

@br648 and @JymDyerIBI Ready for review again!

Copy link
Contributor

@br648 br648 left a comment

Choose a reason for hiding this comment

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

Just one nit, but all good.

}

private static Stream<Arguments> createCanUnsnoozeTripCases() {
// (Trips from above response above starts on Tuesday, June 9, 2020 at 8:40am and ends at 8:58am.)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit. "Trips from above response start on Tuesday".

@br648 br648 removed their assignment Dec 3, 2024
Copy link
Contributor

@JymDyerIBI JymDyerIBI left a comment

Choose a reason for hiding this comment

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

Looks good!

@binh-dam-ibigroup binh-dam-ibigroup merged commit ab994c0 into dev Dec 5, 2024
2 checks passed
@binh-dam-ibigroup binh-dam-ibigroup deleted the unsnooze-trips branch December 5, 2024 19:34
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.

3 participants