[GitHub] [apisix-dashboard] juzhiyuan commented on issue #786: bug: when created route by adminAPI, "upstream" can not be modify by dashboard

2020-11-18 Thread GitBox


juzhiyuan commented on issue #786:
URL: 
https://github.com/apache/apisix-dashboard/issues/786#issuecomment-729542997


   > @juzhiyuan
   > there two apis in this case
   > click edit
   > 
   > ```
   > Request URL: http://127.0.0.1:8080/apisix/admin/routes/1
   > 
{"code":0,"message":"","data":{"id":"1","create_time":0,"update_time":0,"uri":"/name","name":"test_route","methods":["GET","POST"],"upstream":{"nodes":{"127.0.0.1:9797":1},"type":"roundrobin","hash_on":"vars","pass_host":"pass"}},"request_id":"dd826fd2-5739-4f56-88a4-7659892a38c8"}
   > ```
   > 
   > click next to upstream
   > 
   > ```
   > Request URL: http://127.0.0.1:8080/apisix/admin/upstreams
   > 
{"code":0,"message":"","data":{"rows":[],"total_size":0},"request_id":"e0f6114b-68a4-4019-968f-54dc30f5f678"}
   > ```
   
   Ya, from the first response, we can see `nodes`'s format is in the hash, and 
the frontend only supports Array.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix-dashboard] juzhiyuan commented on issue #786: bug: when created route by adminAPI, "upstream" can not be modify by dashboard

2020-11-14 Thread GitBox


juzhiyuan commented on issue #786:
URL: 
https://github.com/apache/apisix-dashboard/issues/786#issuecomment-727435472


   I mean could @idbeta please check and paste the response from that page 
here? 
   
   https://github.com/apache/apisix-dashboard/issues/786#issuecomment-725315724 
this is valid for the frontend.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix-dashboard] juzhiyuan commented on issue #786: bug: when created route by adminAPI, "upstream" can not be modify by dashboard

2020-11-11 Thread GitBox


juzhiyuan commented on issue #786:
URL: 
https://github.com/apache/apisix-dashboard/issues/786#issuecomment-725315724


   
![image](https://user-images.githubusercontent.com/2106987/98794814-72f58080-2444-11eb-83d3-fac145f0b542.png)
   
   May need API to check if the response data is valid.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix-dashboard] juzhiyuan commented on issue #786: bug: when created route by adminAPI, "upstream" can not be modify by dashboard

2020-11-11 Thread GitBox


juzhiyuan commented on issue #786:
URL: 
https://github.com/apache/apisix-dashboard/issues/786#issuecomment-725315877


   The snapshot above is taken from the manager-api



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org