-
Notifications
You must be signed in to change notification settings - Fork 1
DTR-820: PP1 Variation for a Suspended Budget Payment Plan #158
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
Conversation
# Conflicts: # app/views/PaymentPlanDetailsView.scala.html # test/controllers/AmendPlanEndDateControllerSpec.scala
| case None => Future.successful(updatedAnswers) | ||
| updatedAnswers <- planDetail.scheduledPaymentStartDate match { | ||
| case Some(paymentStartDate) => Future.fromTry(updatedAnswers.set(AmendPlanEndDatePage, paymentStartDate)) | ||
| case None => Future.successful(updatedAnswers) |
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.
Please replace case None => with case _ =>
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.
Updated the code
| _ <- sessionRepository.set(updatedAnswers) | ||
| } yield { | ||
| val flag: Future[Boolean] = calculateShowAction(nddService, planDetail) | ||
| val showActions = Await.result(flag, 5.seconds) |
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.
Please remove Await.result
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 is removed and moved method call inside the for comprehension
|
|
||
| private def isSuspendPeriodActive(planDetail: PaymentPlanDetails): Boolean = { | ||
| (for { | ||
| suspensionStartDate <- planDetail.suspensionStartDate |
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.
Remove suspensionStartDate <- planDetail.suspensionStartDate
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 is removed
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.
Looks good...
Implement PP1 Variation for a Suspended Budget Payment Plan
Additionally, covered missing user session cleanups and added a few unit tests.