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

chore(clustering): cleanup redundant checkers #13017

Merged
merged 1 commit into from May 21, 2024

Conversation

samugi
Copy link
Contributor

@samugi samugi commented May 10, 2024

Summary

some logic in checkers is made redundant by the fact the same fields exist in removed_fields. This commit removes the redundant logic

Checklist

  • The Pull Request has tests (removed_fields already covered by tests)
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • (no) There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

KAG-4457

some logic in checkers is made redundant by the fact the same fields
exist in removed_fields, so it would never be reached.

This commit removes the redundant logic
@bungle
Copy link
Member

bungle commented May 21, 2024

@samugi I don't see config.response_streaming in removed fields, is it there?

@bungle
Copy link
Member

bungle commented May 21, 2024

@samugi I don't see config.response_streaming in removed fields, is it there?

Oh, got it:
https://github.com/Kong/kong/blob/master/kong/clustering/compat/removed_fields.lua#L129

@bungle bungle removed the cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee label May 21, 2024
@bungle
Copy link
Member

bungle commented May 21, 2024

Removing cherry-pick label as already cherry-picked.

@bungle bungle merged commit a11338a into master May 21, 2024
49 checks passed
@bungle bungle deleted the chore/ai-plugins-removed-fields-cleanup branch May 21, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants