-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat/BILL-CPC-905_Implement_Pagination_System_For_BillHistory_Page #599
feat/BILL-CPC-905_Implement_Pagination_System_For_BillHistory_Page #599
Conversation
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.
Very useful especially if we have a lot of bills, good job!
// Add query parameters conditionally if they are not null or empty | ||
if (billId != null && !billId.isEmpty()) { | ||
builder.queryParam("billId", billId); | ||
} |
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.
Could have been done using switch or if-else statements but this works fine as well!
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 didn't think about that, it could definitely work. My usual preference are if statements so I'll stick with that
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.
Could have been done using switch or if-else statements but this works fine as well!
In this case an if-else is better since you might have more than one query param that is not provided.
Qodana for JVM419 new problems were found
☁️ View the detailed Qodana report Contact Qodana teamContact us at [email protected]
|
…m_for_BillHistory_page
JIRA: https://champlainsaintlambert.atlassian.net/browse/CPC-905?atlOrigin=eyJpIjoiNmI1ODdhOWRiM2M4NDJkMTkwZjdhN2Q4NjgyMjg0NjMiLCJwIjoiaiJ9
Context:
This ticket implements the pagination system for the Bill History page (getAllBillsByPage).
Changes
Before and After UI (Required for UI-impacting PRs)
Before implementation:
After implementation:
Dev notes (Optional)
Linked pull requests (Optional)