LiteSun opened a new issue #1573:
URL: https://github.com/apache/apisix-dashboard/issues/1573


   ## Background.
   Currently the Dashboard UI is not aligned with the manage API fields, making 
it impossible to cover some business scenarios when users operate with the 
Dashboard UI they are using. So I would like to discuss here how to support Raw 
Data Editor **editing mode** and the problems that may be encountered.
   
   ## Implementation
   - Create
   Add the create with editor button next to the create button at the top of 
the corresponding list page, and when clicked, open the code editor for the 
user to edit and create.
   
   - Edit
   
![image](https://user-images.githubusercontent.com/31329157/110610239-ffcd0280-81c8-11eb-9e52-3c9b233e88d3.png)
   
![image](https://user-images.githubusercontent.com/31329157/110610360-1c693a80-81c9-11eb-8788-b0660b58a66c.png)
   
   Send the data edited by the user directly to the manager API, but it needs 
to be verified by the front-end or back-end.
   
   - Supported formats for the code editor
        - json
        - yaml
   
   ## Possible problems
   1. when the user uses raw data editor to edit and then interact with the 
Dashboard UI, there may be missing fields, resulting in front-end page crashes. 
   2. The backend should support filtering of illegal fields to avoid ETCD from 
storing dirty data.
   
   
   Welcome your valuable suggestions on the implementation or possible problems.
   
   cc @liuxiran @juzhiyuan @guoqqqi 
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to