-
Notifications
You must be signed in to change notification settings - Fork 1
refac get submitted returns to use generic methods #49
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
|
| totalRowCount = response.returnSummaryCount | ||
| ) | ||
| case SdltReturnTypes.SUBMITTED_SUBMITTED_RETURNS => | ||
| case SdltReturnTypes.SUBMITTED_SUBMITTED_RETURNS | SdltReturnTypes.SUBMITTED_NO_RECEIPT_RETURNS => |
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 like next enum entry SUBMITTED_NO_RECEIPT_RETURNS is redundant, so we can potentially drop it as its not required
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.
I would assume SUBMITTED_NO_RECEIPT_RETURNS is still required ?
…ns-to-use-generic-methods
| ) | ||
|
|
||
| val paginationText: Option[String] = | ||
| Option.unless(totalRowCount <= 10 || pageIndex <= 0) { |
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.
there are quite a few occurrences of this segment of code / + similar related to pagination testing :
- we can move this into ~ PaginationTestHelper or similar
|
|
||
| def paginateIfValidPageIndexV2[A]( | ||
| rowsOpt: Option[List[A]], | ||
| def getPaginationWithInfoText[A]( |
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.
I think we can reduce this method to be of "getPaginationWithInfoText"
as we unified types of rows we supporting for each returns page
avelx
left a comment
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.
approved with comment: we can apply refactoring in a few places etc
No description provided.