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

Fix/open date range #102

Merged
merged 11 commits into from
Mar 13, 2020
Merged

Fix/open date range #102

merged 11 commits into from
Mar 13, 2020

Conversation

just-at-uber
Copy link
Contributor

When searching for an Open workflow, there should not be any minimum start date disabled as retention period does not apply to open workflows (only closed workflows).

Screenshots

Screen Shot 2020-03-13 at 12 04 15 PM

Screen Shot 2020-03-13 at 12 04 20 PM

Screen Shot 2020-03-13 at 12 04 36 PM


if (minStartDate && date.isBefore(minStartDate)) {
return false;
}
Copy link

@ajbogh ajbogh Mar 13, 2020

Choose a reason for hiding this comment

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

These if statements can be merged together.

return date.isValid && 
  !date.isAfter(maxEndDate) && 
  !(minStartDate && date.isBefore(minStartDate));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea good point. I will make the change. Thanks!

@just-at-uber just-at-uber merged commit 5478afa into master Mar 13, 2020
@just-at-uber just-at-uber deleted the fix/open-date-range branch March 13, 2020 21:31
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.

2 participants