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

Bugfix/OP-1339: Fix Date Closed Calculation #354

Merged
merged 2 commits into from
May 2, 2018
Merged

Conversation

johnyu95
Copy link
Contributor

@johnyu95 johnyu95 commented May 2, 2018

This PR adds back in the new pushed closing date calculation that was reverted in commit 5798aeb. Additionally it displays the response rows ordered by their corresponding Event timestamp. This fixes the problem where if the closing date gets pushed and you reopen the request, the the response rows appear out of order.

To test this:

  • Force your computer's clock to be Saturday/Sunday
  • Create a request as an agency user
  • Deny/close that request
  • Reopen that request

The response rows should have the reopening as the first row followed by the denial/closing. In the database the date_modified on the denial/closing Response should be the following Monday 9:00 AM (EST).

Copy link
Collaborator

@joelbcastillo joelbcastillo 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 to me.

@joelbcastillo joelbcastillo merged commit d8a2e02 into develop May 2, 2018
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.

None yet

2 participants