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

fall back to created_at/now if no from_date is set in EvidenceSubmissionWindowTask #14204

Conversation

tomas-nava
Copy link
Contributor

Connects #14077
Follows #14135

  • check for evidence submission docket case first
  • fall back to created_at/now so from_date is never nil
  • alert sentry if from_date's nil and there's no schedule hearing task
    child of the parent task
  • update the test for no schedule hearing task case
  • move a test inside the 'appeal is in the hearing docket' context
    because it was failing after reordering checks in timer_ends_at

- check for evidence submission docket case first
- fall back to created_at/now so from_date is never nil
- alert sentry if from_date's nil and there's no schedule hearing task
  child of the parent task
- update the test for no schedule hearing task case
- move a test inside the 'appeal is in the hearing docket' context
  because it was failing after reordering checks in timer_ends_at
private

def set_assignee
self.assigned_to ||= MailTeam.singleton
end

def ensure_from_date_set(from_date)
if from_date.blank? && open_schedule_hearing_task.blank?
msg = "EvidenceSubmissionWindowTask #{id} on Appeal #{appeal.id} was unable to calculate " \
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a much better error message, I will try to be more detailed like this going forward. Thanks!

Copy link
Contributor

@sahalliburton sahalliburton left a comment

Choose a reason for hiding this comment

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

LGTM Thanks for adding the helpful error message!

@tomas-nava tomas-nava merged commit 72818e1 into shalliburton/14077-change-esw-task-expiration May 7, 2020
@tomas-nava tomas-nava deleted the tomas/14077-ensure-timer-ends-at-is-always-set branch May 7, 2020 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants