-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
API-enabled BookInfo sample application #693
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
Hi @ErikWittern. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Assign the PR to them by writing The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/ok-to-test |
I signed it! |
CLAs look good, thanks! |
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.
Overall, this looks great, but one problem is that when reviews-v1 is being used, the productpage now displays "no ratings available" messages, where previously it didn't show anything at all, and only showed the message in the case that the ratings service was failing (unavailable). Since we're running a version of the reviews service where the ratings feature doesn't even exists, we shouldn't be displaying the concept in the UI either.
@ErikWittern PR needs rebase |
|
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.
LGTM
All necessary tests pass again.. Phew! merging.. |
@ErikWittern: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
||
if (process.env.SERVICE_VERSION == "v2") { | ||
if (process.env.DB_TYPE == "mysql") { |
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.
please restore this ASAP
* revised source code of microservices so they communicate in JSON and expose an API * make API accessible via ingress controller * added swagger definition of new API * removed HTML status pages of microservices; aligned their health endpoints to return JSON * do not display anything when ratings data is not present to address comment by @frankbu on pull request #693 * added back support for MySQL into ratings microservice * fixed trailing line * fixed space * fixed ratings data in mongo db * fixed ratings data in mysql db
* Docker tag to be short-sha-date to ease release Updating version of jenkins library. * Using origin as remote name in Jenkins Former-commit-id: 895fd1aeadabe48e0fc598dac7bde97b1ced5c94
* revised source code of microservices so they communicate in JSON and expose an API * make API accessible via ingress controller * added swagger definition of new API * removed HTML status pages of microservices; aligned their health endpoints to return JSON * do not display anything when ratings data is not present to address comment by @frankbu on pull request #693 Former-commit-id: 2ffc8ed
* revised source code of microservices so they communicate in JSON and expose an API * make API accessible via ingress controller * added swagger definition of new API * removed HTML status pages of microservices; aligned their health endpoints to return JSON * do not display anything when ratings data is not present to address comment by @frankbu on pull request #693 * added back support for MySQL into ratings microservice * fixed trailing line * fixed space * fixed ratings data in mongo db * fixed ratings data in mysql db Former-commit-id: 584ab1b
* Docker tag to be short-sha-date to ease release Updating version of jenkins library. * Using origin as remote name in Jenkins Former-commit-id: 11845b1251fed4748530c0756d88bdcb1a701593
* revised source code of microservices so they communicate in JSON and expose an API * make API accessible via ingress controller * added swagger definition of new API * removed HTML status pages of microservices; aligned their health endpoints to return JSON * do not display anything when ratings data is not present to address comment by @frankbu on pull request istio#693 Former-commit-id: 2ffc8ed
* revised source code of microservices so they communicate in JSON and expose an API * make API accessible via ingress controller * added swagger definition of new API * removed HTML status pages of microservices; aligned their health endpoints to return JSON * do not display anything when ratings data is not present to address comment by @frankbu on pull request istio#693 * added back support for MySQL into ratings microservice * fixed trailing line * fixed space * fixed ratings data in mongo db * fixed ratings data in mysql db Former-commit-id: 584ab1b
* revised source code of microservices so they communicate in JSON and expose an API * make API accessible via ingress controller * added swagger definition of new API * removed HTML status pages of microservices; aligned their health endpoints to return JSON * do not display anything when ratings data is not present to address comment by @frankbu on pull request #693 Former-commit-id: 2ffc8ed
* revised source code of microservices so they communicate in JSON and expose an API * make API accessible via ingress controller * added swagger definition of new API * removed HTML status pages of microservices; aligned their health endpoints to return JSON * do not display anything when ratings data is not present to address comment by @frankbu on pull request #693 * added back support for MySQL into ratings microservice * fixed trailing line * fixed space * fixed ratings data in mongo db * fixed ratings data in mysql db Former-commit-id: 584ab1b
This commit adds a TcpClusterRewrite proto to be used in the upcoming TCP cluster rewrite filter on istio/proxy. Signed-off-by: Venil Noronha <veniln@vmware.com>
This pull request adds a JSON API to the BookInfo application. Changed details, ratings, and reviews microservices now return JSON responses. The productpage microservice fetches JSON responses and either renders them in HTML productpage, or exposes them via API endpoints. Added a
swagger.yaml
file documenting the API. Exposed the API via ingress controller through changes inbookinfo.yaml
.The motivations behind this pull request are to more closely follow best practices of microservices communicating in a lean, machine-understandable data format, and to allow experiments with an API as discussed with @rshriram.