Skip to content

Commit

Permalink
Merge pull request #277 from xenit-eu/default-enable-legacy-page-info
Browse files Browse the repository at this point in the history
Enable legacy page info by default to maintain backwards compatibility by default
  • Loading branch information
vierbergenlars authored Sep 20, 2024
2 parents 6f05757 + 6f952fb commit f343a4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
@SpringBootTest(
classes = InvoicingApplication.class,
properties = {
"contentgrid.security.unauthenticated.allow=true"
"contentgrid.security.unauthenticated.allow=true",
"contentgrid.rest.expose-legacy-page-info=false"
}
)
public class LegacyDisabledItemCountPageResourceAssemblerTest extends AbstractItemCountPageResourceAssemblerTest{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
@SpringBootTest(
classes = InvoicingApplication.class,
properties = {
"contentgrid.security.unauthenticated.allow=true",
"contentgrid.rest.expose-legacy-page-info=true"
"contentgrid.security.unauthenticated.allow=true"
}
)
public class LegacyEnabledItemCountPageResourceAssemblerTest extends AbstractItemCountPageResourceAssemblerTest{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public class ContentGridRestProperties {
boolean fallbackToDefaultRelationController = false;
boolean useMultipartHalForms = false;
boolean exposeLegacyPageInfo = false;
boolean exposeLegacyPageInfo = true;
PaginationType pagination = PaginationType.PAGE_NUMBER;

@Getter
Expand Down

0 comments on commit f343a4d

Please sign in to comment.