Skip to content

Conversation

@ayubAz
Copy link
Contributor

@ayubAz ayubAz commented Dec 7, 2025

No description provided.

@platops-pr-bot
Copy link

totalRowCount = response.returnSummaryCount
)
case SdltReturnTypes.SUBMITTED_SUBMITTED_RETURNS =>
case SdltReturnTypes.SUBMITTED_SUBMITTED_RETURNS | SdltReturnTypes.SUBMITTED_NO_RECEIPT_RETURNS =>
Copy link
Contributor

@avelx avelx Dec 8, 2025

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

Copy link
Contributor

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 ?

)

val paginationText: Option[String] =
Option.unless(totalRowCount <= 10 || pageIndex <= 0) {
Copy link
Contributor

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](
Copy link
Contributor

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

Copy link
Contributor

@avelx avelx left a 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

@ayubAz ayubAz merged commit b0e11b8 into main Dec 8, 2025
1 check passed
@ayubAz ayubAz deleted the refac-submitted-returns-to-use-generic-methods branch December 8, 2025 12:55
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.

4 participants