feat: add event streaming to automation module page
This commit is contained in:
parent
8147fa45dd
commit
fff17ef87a
5 changed files with 71 additions and 49 deletions
59
frappe/config/automation.py
Normal file
59
frappe/config/automation.py
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
data = [
|
||||
{
|
||||
"label": _("Automation"),
|
||||
"icon": "fa fa-random",
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Assignment Rule",
|
||||
"description": _("Set up rules for user assignments.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Milestone",
|
||||
"description": _("Tracks milestones on the lifecycle of a document if it undergoes multiple stages.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Auto Repeat",
|
||||
"description": _("Automatically generates recurring documents.")
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": _("Event Streaming"),
|
||||
"icon": "fa fa-random",
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Event Producer",
|
||||
"description": _("The site you want to subscribe to for consuming events.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Event Consumer",
|
||||
"description": _("The site which is consuming your events.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Event Update Log",
|
||||
"description": _("Maintains a Log of all inserts, updates and deletions on Event Producer site for documents that have consumers.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Event Sync Log",
|
||||
"description": _("Maintains a log of every event consumed along with the status of the sync and a Resync button in case sync fails.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Document Type Mapping",
|
||||
"description": _("The mapping configuration between two doctypes.")
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
return data
|
||||
|
|
@ -25,6 +25,16 @@ def get_data():
|
|||
"type": "module",
|
||||
"description": "Data import, printing, email and workflows."
|
||||
},
|
||||
{
|
||||
"module_name": "Automation",
|
||||
"category": "Administration",
|
||||
"label": _("Automation"),
|
||||
"color": "#bdc3c7",
|
||||
"reverse": 1,
|
||||
"icon": "octicon octicon-gist",
|
||||
"type": "module",
|
||||
"description": "Auto Repeat, Assignment Rule, Milestone Tracking and Event Streaming."
|
||||
},
|
||||
{
|
||||
"module_name": "Users and Permissions",
|
||||
"category": "Administration",
|
||||
|
|
|
|||
|
|
@ -74,32 +74,6 @@ def get_data():
|
|||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": _("Event Streaming"),
|
||||
"icon": "fa fa-random",
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Event Producer",
|
||||
"description": _("The site you want to subscribe to for consuming events.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Event Consumer",
|
||||
"description": _("The site which is consuming your events.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Event Update Log",
|
||||
"description": _("Maintains a Log of all inserts, updates and deletions on Event Producer site for documents that have consumers.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Event Sync Log",
|
||||
"description": _("Maintains a log of every event consumed along with the status of the sync and a Resync button in case sync fails.")
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": _("Webhook"),
|
||||
"items": [
|
||||
|
|
|
|||
|
|
@ -177,28 +177,7 @@ def get_data():
|
|||
"description": _("Actions for workflow (e.g. Approve, Cancel).")
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": _("Automation"),
|
||||
"icon": "fa fa-random",
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Assignment Rule",
|
||||
"description": _("Set up rules for user assignments.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Milestone",
|
||||
"description": _("Tracks milestones on the lifecycle of a document if it undergoes multiple stages.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Auto Repeat",
|
||||
"description": _("Automatically generates recurring documents.")
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
]
|
||||
add_setup_section(data, "frappe", "website", _("Website"), "fa fa-globe")
|
||||
return data
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ frappe.breadcrumbs = {
|
|||
'Custom': 'Settings',
|
||||
'Workflow': 'Settings',
|
||||
'Printing': 'Settings',
|
||||
'Automation': 'Settings',
|
||||
'Setup': 'Settings',
|
||||
'Event Streaming': 'Automation'
|
||||
},
|
||||
|
||||
set_doctype_module: function(doctype, module) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue