cookieY / Yearning

🐳 A most popular sql audit platform for mysql
http://next.yearning.io/
GNU Affero General Public License v3.0
8.5k stars 1.99k forks source link

[Question] 如何通过接口创建工单 #1116

Closed jami1024 closed 1 week ago

jami1024 commented 1 week ago

Please provide titles that are straightforward and concise. exp: [Question] How to use or [Feature] Add new feature

  请提供简单明了的标题。例如 [Question] 如何使用 or [Feature] 添加新功能
Issues-translate-bot commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: The database name is not displayed when creating a work order through the interface

Describe the problem In version 2.3.1 Community Edition, after successfully creating a work order through the /api/v2/sql/refer interface, the work order does not display the database name.

Recurrence Steps to reproduce the behavior:

  1. Initiate a post request through request, with the following parameters:
    params = {
        "sql": "create database testaaa;",
        "type": 0,
        "real_name": "xxx",
        "idc": "test",
        "source": "apolloportaldb",
        "data_base": "apolloportaldb",
        "table": "",
        "text": "test",
        "delay": "",
        "assigned": "zhangsan",
        "backup": 1,
        "export": 0,
        "tp": 0
    }
  2. Visit the My Work Orders page to find the work order you just created, and find that there is no database name.

image

Desired results I would like to know how to create a work order through the interface.

screenshot

Deployment method

Environment (please fill in environmental information):

Additional log information