Skip to content

fix(privatenetworks): PrivateNetworksDomainsList must take a pagination.Request in argument#486

Merged
EtienneM merged 1 commit intomasterfrom
fix/cli/1147/private_networks_pagination
Mar 11, 2026
Merged

fix(privatenetworks): PrivateNetworksDomainsList must take a pagination.Request in argument#486
EtienneM merged 1 commit intomasterfrom
fix/cli/1147/private_networks_pagination

Conversation

@EtienneM
Copy link
Member

@EtienneM EtienneM commented Mar 11, 2026

This the convention in the other functions using the pagination.

Related to Scalingo/cli#1147

Tested in Scalingo/cli#1203

@EtienneM EtienneM self-assigned this Mar 11, 2026
@EtienneM EtienneM force-pushed the fix/cli/1147/private_networks_pagination branch from a1cb63f to 5accba7 Compare March 11, 2026 10:28
@EtienneM EtienneM marked this pull request as ready for review March 11, 2026 10:39
Endpoint: "/apps/" + app + "/private_network_domain_names?" + params.Encode(),
}
var domainRes PrivateNetworkDomainsRes
err = c.ScalingoAPI().DoRequest(ctx, req, &domainRes)
Copy link
Member Author

Choose a reason for hiding this comment

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

We should not use DoRequest if the use of the functions in the http.Client interface are possible. Here we can easily use SubresourceList.

@EtienneM EtienneM requested review from a team, matthieu526-scalingo and sc-david-voisin and removed request for a team and matthieu526-scalingo March 11, 2026 10:39
@EtienneM EtienneM merged commit 27a8743 into master Mar 11, 2026
5 checks passed
@EtienneM EtienneM deleted the fix/cli/1147/private_networks_pagination branch March 11, 2026 13:34
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.

2 participants