feat: add html fields for stack trace and sql explain
This commit is contained in:
parent
379b90550d
commit
6fc9cbcdcd
3 changed files with 44 additions and 12 deletions
|
|
@ -10,7 +10,13 @@
|
|||
"exact_copies",
|
||||
"column_break_qmju",
|
||||
"normalized_query",
|
||||
"normalized_copies"
|
||||
"normalized_copies",
|
||||
"section_break_dygy",
|
||||
"stack_html",
|
||||
"stack",
|
||||
"section_break_kvkb",
|
||||
"sql_explain_html",
|
||||
"explain_result"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
|
|
@ -48,13 +54,43 @@
|
|||
{
|
||||
"fieldname": "column_break_qmju",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"fieldname": "section_break_dygy",
|
||||
"fieldtype": "Section Break"
|
||||
},
|
||||
{
|
||||
"fieldname": "stack",
|
||||
"fieldtype": "Text",
|
||||
"hidden": 1,
|
||||
"print_hide": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "stack_html",
|
||||
"fieldtype": "HTML",
|
||||
"label": "Stack Trace"
|
||||
},
|
||||
{
|
||||
"fieldname": "section_break_kvkb",
|
||||
"fieldtype": "Section Break"
|
||||
},
|
||||
{
|
||||
"fieldname": "explain_result",
|
||||
"fieldtype": "Text",
|
||||
"hidden": 1,
|
||||
"print_hide": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "sql_explain_html",
|
||||
"fieldtype": "HTML",
|
||||
"label": "SQL Explain"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"is_virtual": 1,
|
||||
"istable": 1,
|
||||
"links": [],
|
||||
"modified": "2023-08-02 17:23:43.670793",
|
||||
"modified": "2023-08-05 14:25:34.794204",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Recorder Query",
|
||||
|
|
|
|||
|
|
@ -16,12 +16,14 @@ class RecorderQuery(Document):
|
|||
|
||||
duration: DF.Float
|
||||
exact_copies: DF.Int
|
||||
explain_result: DF.Text | None
|
||||
normalized_copies: DF.Int
|
||||
normalized_query: DF.Data | None
|
||||
parent: DF.Data
|
||||
parentfield: DF.Data
|
||||
parenttype: DF.Data
|
||||
query: DF.Data
|
||||
stack: DF.Text | None
|
||||
# end: auto-generated types
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
"request_headers",
|
||||
"section_break_sgro",
|
||||
"form_dict",
|
||||
"section_break_4umr",
|
||||
"sql_queries"
|
||||
],
|
||||
"fields": [
|
||||
|
|
@ -79,20 +78,15 @@
|
|||
"label": "Form Dict"
|
||||
},
|
||||
{
|
||||
"fieldname": "section_break_4umr",
|
||||
"fieldtype": "Section Break"
|
||||
"fieldname": "method",
|
||||
"fieldtype": "Data",
|
||||
"label": "Method"
|
||||
},
|
||||
{
|
||||
"fieldname": "sql_queries",
|
||||
"fieldtype": "Table",
|
||||
"label": "SQL Queries",
|
||||
"options": "Recorder Query"
|
||||
},
|
||||
{
|
||||
"fieldname": "method",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Method"
|
||||
}
|
||||
],
|
||||
"hide_toolbar": 1,
|
||||
|
|
@ -100,7 +94,7 @@
|
|||
"index_web_pages_for_search": 1,
|
||||
"is_virtual": 1,
|
||||
"links": [],
|
||||
"modified": "2023-08-02 20:36:12.191767",
|
||||
"modified": "2023-08-05 14:45:04.358260",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Recorder Request",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue