Skip to content

refactor: remove use of a custom pagination structure#484

Merged
EtienneM merged 2 commits intomasterfrom
fix/429/use_pagination
Mar 4, 2026
Merged

refactor: remove use of a custom pagination structure#484
EtienneM merged 2 commits intomasterfrom
fix/429/use_pagination

Conversation

@EtienneM
Copy link
Member

@EtienneM EtienneM commented Mar 3, 2026

I tested this PR by updating the CLI: Scalingo/cli#1195

Fix #429

@EtienneM EtienneM self-assigned this Mar 3, 2026
@EtienneM EtienneM force-pushed the fix/429/use_pagination branch from 10b0e25 to d7fefb1 Compare March 3, 2026 07:43
@EtienneM EtienneM changed the base branch from master to refactor/golangci-lint_autofix March 3, 2026 07:43
@EtienneM EtienneM force-pushed the fix/429/use_pagination branch 4 times, most recently from 86885c9 to 0154a57 Compare March 3, 2026 08:26
@EtienneM EtienneM marked this pull request as ready for review March 3, 2026 08:30
@EtienneM EtienneM requested a review from a team as a code owner March 3, 2026 08:30
@EtienneM EtienneM requested review from matthieu526-scalingo and removed request for a team March 3, 2026 08:30
@EtienneM EtienneM marked this pull request as draft March 3, 2026 08:31
Base automatically changed from refactor/golangci-lint_autofix to master March 3, 2026 10:25
@EtienneM EtienneM marked this pull request as ready for review March 3, 2026 10:26
@EtienneM EtienneM force-pushed the fix/429/use_pagination branch from 0154a57 to 46de730 Compare March 3, 2026 10:26
@EtienneM EtienneM force-pushed the fix/429/use_pagination branch from 46de730 to 30b3625 Compare March 3, 2026 15:40
Copy link
Contributor

@matthieu526-scalingo matthieu526-scalingo left a comment

Choose a reason for hiding this comment

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

One question, but approving already.

pagination.go Outdated
"github.com/Scalingo/go-utils/pagination"
)

func paginationRequestToMap(paginationReq pagination.Request) map[string]string {
Copy link
Contributor

Choose a reason for hiding this comment

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

question: shouldn't this be provided by the library? It looks rather generic.

Copy link
Member Author

Choose a reason for hiding this comment

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

I hesitated... but you are right. I'll suggest a new PR with this included

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in ffc429b using the PR Scalingo/go-utils#1494. I'm pausing this PR waiting for the approval of the go-utils PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Update to the last go-utils/pagination version is done in 1e8bc5f. Tested in Scalingo/cli#1195.

@EtienneM EtienneM force-pushed the fix/429/use_pagination branch from ffc429b to 1e8bc5f Compare March 4, 2026 15:41
Copy link
Contributor

@matthieu526-scalingo matthieu526-scalingo left a comment

Choose a reason for hiding this comment

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

praise: Thanks for making the change.

@EtienneM EtienneM merged commit 2b0f471 into master Mar 4, 2026
5 checks passed
@EtienneM EtienneM deleted the fix/429/use_pagination branch March 4, 2026 15:49
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.

Use github.com/Scalingo/go-utils/pagination for pagination

2 participants