Skip to content

fixing pagination warning#116

Merged
arthurgregorio merged 3 commits into
mainfrom
100-fix-paging-warning
Apr 27, 2026
Merged

fixing pagination warning#116
arthurgregorio merged 3 commits into
mainfrom
100-fix-paging-warning

Conversation

@arthurgregorio

Copy link
Copy Markdown
Member

Objective
Fixing pagination warning

What's changed?
Jackson configuration

How can I test it?
Run the tests

Additional context
Issue #100

@arthurgregorio arthurgregorio self-assigned this Apr 27, 2026
Copilot AI review requested due to automatic review settings April 27, 2026 01:59
@arthurgregorio arthurgregorio linked an issue Apr 27, 2026 that may be closed by this pull request
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes the Spring Data warning about unstable PageImpl JSON serialization by switching Spring Data page serialization to the stable DTO-based format and updating affected controller tests accordingly.

Changes:

  • Enable Spring Data web support with pageSerializationMode = VIA_DTO to avoid the PageImpl serialization warning.
  • Update multiple controller unit/integration tests to assert pagination metadata under the new "page" JSON node (and stop asserting the removed "empty" field).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/main/kotlin/br/com/webbudget/infrastructure/config/core/JacksonConfiguration.kt Enables Spring Data’s stable page serialization mode globally.
src/test/kotlin/br/com/webbudget/controllers/registration/WalletControllerUTest.kt Adjusts pagination JSON assertions to match the new "page" structure.
src/test/kotlin/br/com/webbudget/controllers/registration/FinancialPeriodControllerUTest.kt Adjusts pagination JSON assertions to match the new "page" structure (multiple tests).
src/test/kotlin/br/com/webbudget/controllers/registration/CostCenterControllerUTest.kt Adjusts pagination JSON assertions to match the new "page" structure.
src/test/kotlin/br/com/webbudget/controllers/registration/ClassificationControllerUTest.kt Adjusts pagination JSON assertions to match the new "page" structure.
src/test/kotlin/br/com/webbudget/controllers/registration/CardControllerUTest.kt Adjusts pagination JSON assertions to match the new "page" structure.
src/test/kotlin/br/com/webbudget/controllers/administration/UserControllerUTest.kt Adjusts pagination JSON assertions to match the new "page" structure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@arthurgregorio arthurgregorio merged commit e1d3e1c into main Apr 27, 2026
3 checks passed
@arthurgregorio arthurgregorio deleted the 100-fix-paging-warning branch April 27, 2026 02:05
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.

Fix paging warning

2 participants