-
Notifications
You must be signed in to change notification settings - Fork 390
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
Adding support for Kong 0.12. Upgrading version to 3.1.0 #149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! Thanks!
I just have two small comments, I'll wait for them to be addressed before merging.
README.md
Outdated
|-----------|------------------------------|--------------| | ||
| 1.x.x | 0.6.x, 0.7.x, 0.8.x, 0.9.x | | | ||
| 2.x.x | 0.10.x | | | ||
| 3.x.x | 0.9.x, 0.10.x, 0.11.x, 0.12.x| >= 6.0.0 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.0.x should have it's own row because it will never be compatible with Kong 0.12.
| 3.0.x | 0.9.x, 0.10.x, 0.11.x | >= 6.0.0 |
| 3.x.x | 0.9.x, 0.10.x, 0.11.x, 0.12.x | >= 6.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay.
src/js/controllers/targets.js
Outdated
// For Kong versions other than 0.12 | ||
if ($scope.active) { | ||
page += "/active"; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem with this logic is that when a new minor version of Kong will be available, kong dashboard will use the /active
endpoint back again. I doubt that Kong 0.13 will go back to Kong 0.11 behavior for this endpoint.
How about this kind of logic?
if (["0.9.", "0.10", "0.11"].includes(env.kong_version.substring(0,4)) {
page += $scope.active ? "/active" : "";
} else {
page += !$scope.active ? "/all" : "";
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. Make sense.
@PGBI I have updated the code based on your feedback. |
Hi @PGBI ,
As per the discussion #148, I have created a new pull request to add support for Kong 0.12.
Please review and let me know if this change can be merged.
I ran all the tests and they passed.
Best,
Peeyush