Skip to content
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

Only send config types on service list if controller version supports it. Fixes #601 #603

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

plorenz
Copy link
Member

@plorenz plorenz commented Jul 30, 2024

No description provided.

@plorenz plorenz requested a review from a team as a code owner July 30, 2024 19:48
@plorenz plorenz force-pushed the fix-config-types-on-svc-list branch from 4708010 to 5641135 Compare July 30, 2024 19:57
@plorenz plorenz force-pushed the fix-config-types-on-svc-list branch from 5641135 to 05db6bf Compare July 30, 2024 19:58
ziti/client.go Outdated
@@ -333,8 +338,9 @@ func (self *CtrlClient) GetServices() ([]*rest_model.ServiceDetail, error) {
for {
params.Limit = &pageLimit
params.Offset = &pageOffset
params.ConfigTypes = self.ConfigTypes

if self.supportsSetOfConfigTypesOnServiceList() {
Copy link
Member

Choose a reason for hiding this comment

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

silly nit, but why are the Limit/Offset/ConfigTypes set in the loop. they never change, right? why not pull them outside the loop?

Copy link
Member Author

Choose a reason for hiding this comment

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

offset gets changed, but the other two don't. moved those out of the loop

Copy link
Member

@dovholuknf dovholuknf left a comment

Choose a reason for hiding this comment

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

perhaps a nit comment, but lgtm

@plorenz plorenz merged commit f853cab into main Jul 31, 2024
8 checks passed
@plorenz plorenz deleted the fix-config-types-on-svc-list branch July 31, 2024 14:57
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