-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[TT-15507] Reverting /hello endpoint to always return 200 status code #7281
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
Conversation
💔 The detected issue is not in one of the allowed statuses 💔
Please ensure your jira story is in one of the allowed statuses |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
API Changes --- prev.txt 2025-08-11 13:26:46.243721410 +0000
+++ current.txt 2025-08-11 13:26:37.087665824 +0000
@@ -4736,7 +4736,7 @@
// Negate is a boolean negation operator. Setting it to true inverts the matching behaviour
// such that the rewrite will be triggered if the value does not match the `pattern` for this rule.
- Negate bool `bson:"negate,omitempty" json:"negate,omitempty"`
+ Negate bool `bson:"negate" json:"negate"`
}
URLRewriteRule represents a rewrite
matching rules. Tyk classic API definition: |
Code Review: Reverting /hello endpoint to always return 200 status codeThis PR makes several changes to the health check functionality in Tyk Gateway: Key Changes
AssessmentThis change is appropriate for Kubernetes environments where:
The PR maintains the same health check logic but changes how the status code is reported, making it more aligned with Kubernetes best practices. The error handling improvement for JSON encoding is also a good defensive programming practice. No issues were found that would prevent merging this PR. The changes are focused, well-documented, and maintain backward compatibility in terms of the API response structure while changing only the HTTP status code behavior. Tip: Mention me again using |
This commit modifies multiple test functions to prevent variable shadowing by reassigning the test case variable within the loop. This change enhances code clarity and ensures that each test case operates on its own instance of the variable, improving test reliability.
|
TT-15507
User description