Skip to content

Commit

Permalink
chore: rename child doctypes
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Apr 19, 2024
1 parent 7a03157 commit aaded84
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"fieldname": "background_workers",
"fieldtype": "Table",
"label": "Background Workers",
"options": "System Health Workers"
"options": "System Health Report Workers"
},
{
"fieldname": "total_background_workers",
Expand All @@ -91,7 +91,7 @@
"fieldname": "queue_status",
"fieldtype": "Table",
"label": "Queue Status",
"options": "System Health Queue"
"options": "System Health Report Queue"
},
{
"fieldname": "column_break_klex",
Expand Down Expand Up @@ -194,7 +194,7 @@
{
"fieldname": "top_db_tables",
"fieldtype": "Table",
"options": "System Health DB Table"
"options": "System Health Report Tables"
},
{
"fieldname": "database_version",
Expand Down Expand Up @@ -355,7 +355,7 @@
"is_virtual": 1,
"issingle": 1,
"links": [],
"modified": "2024-04-19 14:12:44.949141",
"modified": "2024-04-19 15:48:13.172247",
"modified_by": "Administrator",
"module": "Desk",
"name": "System Health Report",
Expand Down
18 changes: 12 additions & 6 deletions frappe/desk/doctype/system_health_report/system_health_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,20 @@ class SystemHealthReport(Document):
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from frappe.desk.doctype.system_health_db_table.system_health_db_table import SystemHealthDBTable
from frappe.desk.doctype.system_health_queue.system_health_queue import SystemHealthQueue
from frappe.desk.doctype.system_health_workers.system_health_workers import SystemHealthWorkers
from frappe.desk.doctype.system_health_report_queue.system_health_report_queue import (
SystemHealthReportQueue,
)
from frappe.desk.doctype.system_health_report_tables.system_health_report_tables import (
SystemHealthReportTables,
)
from frappe.desk.doctype.system_health_report_workers.system_health_report_workers import (
SystemHealthReportWorkers,
)
from frappe.types import DF

active_sessions: DF.Int
background_jobs_check: DF.Data | None
background_workers: DF.Table[SystemHealthWorkers]
background_workers: DF.Table[SystemHealthReportWorkers]
backups_size: DF.Float
binary_logging: DF.Data | None
bufferpool_size: DF.Data | None
Expand All @@ -80,12 +86,12 @@ class SystemHealthReport(Document):
pending_emails: DF.Int
private_files_size: DF.Float
public_files_size: DF.Float
queue_status: DF.Table[SystemHealthQueue]
queue_status: DF.Table[SystemHealthReportQueue]
scheduler_status: DF.Data | None
socketio_ping_check: DF.Literal["Fail", "Pass"]
socketio_transport_mode: DF.Literal["Polling", "Websocket"]
test_job_id: DF.Data | None
top_db_tables: DF.Table[SystemHealthDBTable]
top_db_tables: DF.Table[SystemHealthReportTables]
top_errors: DF.Code | None
total_background_workers: DF.Int
total_errors: DF.Int
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2024-04-18 17:38:33.006527",
"creation": "2024-04-19 15:47:47.592170",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
Expand All @@ -27,10 +27,10 @@
"is_virtual": 1,
"istable": 1,
"links": [],
"modified": "2024-04-18 17:38:59.244386",
"modified": "2024-04-19 15:47:47.592170",
"modified_by": "Administrator",
"module": "Desk",
"name": "System Health Queue",
"name": "System Health Report Queue",
"owner": "Administrator",
"permissions": [],
"sort_field": "creation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from frappe.model.document import Document


class SystemHealthQueue(Document):
class SystemHealthReportQueue(Document):
# begin: auto-generated types
# This code is auto-generated. Do not modify anything in this block.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2024-04-18 19:28:04.020604",
"creation": "2024-04-19 15:46:57.993123",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
Expand All @@ -27,10 +27,10 @@
"is_virtual": 1,
"istable": 1,
"links": [],
"modified": "2024-04-18 19:28:52.122825",
"modified": "2024-04-19 15:46:57.993123",
"modified_by": "Administrator",
"module": "Desk",
"name": "System Health DB Table",
"name": "System Health Report Tables",
"owner": "Administrator",
"permissions": [],
"sort_field": "creation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from frappe.model.document import Document


class SystemHealthDBTable(Document):
class SystemHealthReportTables(Document):
# begin: auto-generated types
# This code is auto-generated. Do not modify anything in this block.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2024-04-18 16:53:38.962458",
"creation": "2024-04-19 15:44:52.298443",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
Expand Down Expand Up @@ -40,10 +40,10 @@
"is_virtual": 1,
"istable": 1,
"links": [],
"modified": "2024-04-18 17:24:43.721205",
"modified": "2024-04-19 15:44:52.298443",
"modified_by": "Administrator",
"module": "Desk",
"name": "System Health Workers",
"name": "System Health Report Workers",
"owner": "Administrator",
"permissions": [],
"sort_field": "creation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from frappe.model.document import Document


class SystemHealthWorkers(Document):
class SystemHealthReportWorkers(Document):
# begin: auto-generated types
# This code is auto-generated. Do not modify anything in this block.

Expand Down

0 comments on commit aaded84

Please sign in to comment.