Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updated Raven Message doctype #656

Merged
merged 2 commits into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
354 changes: 178 additions & 176 deletions raven/raven_messaging/doctype/raven_message/raven_message.json
Original file line number Diff line number Diff line change
@@ -1,178 +1,180 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "hash",
"creation": "2023-02-12 17:29:25.498988",
"default_view": "List",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"channel_id",
"text",
"json",
"message_type",
"file",
"image_width",
"image_height",
"file_thumbnail",
"thumbnail_width",
"thumbnail_height",
"message_reactions",
"is_reply",
"linked_message",
"link_doctype",
"link_document",
"is_bot_message",
"bot"
"content"
],
"fields": [
{
"fieldname": "channel_id",
"fieldtype": "Link",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Channel ID",
"options": "Raven Channel",
"reqd": 1,
"search_index": 1
},
{
"fieldname": "text",
"fieldtype": "Long Text",
"label": "Text"
},
{
"fieldname": "json",
"fieldtype": "JSON",
"label": "JSON"
},
{
"fieldname": "file",
"fieldtype": "Attach",
"label": "File"
},
{
"fieldname": "message_type",
"fieldtype": "Select",
"label": "Message Type",
"options": "Text\nImage\nFile"
},
{
"fieldname": "message_reactions",
"fieldtype": "JSON",
"label": "Message Reactions"
},
{
"default": "0",
"fieldname": "is_reply",
"fieldtype": "Check",
"label": "Is Reply"
},
{
"fieldname": "linked_message",
"fieldtype": "Link",
"label": "Linked Message",
"options": "Raven Message"
},
{
"fieldname": "file_thumbnail",
"fieldtype": "Attach",
"label": "File Thumbnail"
},
{
"fieldname": "image_width",
"fieldtype": "Data",
"label": "Image Width"
},
{
"fieldname": "image_height",
"fieldtype": "Data",
"label": "Image Height"
},
{
"fieldname": "thumbnail_width",
"fieldtype": "Data",
"label": "Thumbnail Width"
},
{
"fieldname": "thumbnail_height",
"fieldtype": "Data",
"label": "Thumbnail Height"
},
{
"fieldname": "link_doctype",
"fieldtype": "Link",
"label": "Link Doctype",
"options": "DocType"
},
{
"fieldname": "link_document",
"fieldtype": "Dynamic Link",
"label": "Link Document",
"options": "link_doctype"
},
{
"default": "0",
"fieldname": "is_bot_message",
"fieldtype": "Check",
"label": "Is Bot Message"
},
{
"depends_on": "eval: doc.is_bot_message == 1",
"fieldname": "bot",
"fieldtype": "Link",
"label": "Bot",
"mandatory_depends_on": "eval: doc.is_bot_message == 1",
"options": "Raven User"
"fieldname": "content",
"fieldtype": "Long Text",
"label": "Content",
"read_only": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-01-19 17:41:28.463058",
"modified_by": "Administrator",
"module": "Raven Messaging",
"name": "Raven Message",
"naming_rule": "Random",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"select": 1,
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"if_owner": 1,
"print": 1,
"report": 1,
"role": "Raven User",
"share": 1,
"write": 1
},
{
"read": 1,
"role": "Raven User"
}
],
"search_fields": "text",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
"actions": [],
"allow_rename": 1,
"autoname": "hash",
"creation": "2023-02-12 17:29:25.498988",
"default_view": "List",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"channel_id",
"text",
"json",
"message_type",
"file",
"image_width",
"image_height",
"file_thumbnail",
"thumbnail_width",
"thumbnail_height",
"message_reactions",
"is_reply",
"linked_message",
"link_doctype",
"link_document",
"is_bot_message",
"bot",
"content"
],
"fields": [
{
"fieldname": "channel_id",
"fieldtype": "Link",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Channel ID",
"options": "Raven Channel",
"reqd": 1,
"search_index": 1
},
{
"fieldname": "text",
"fieldtype": "Long Text",
"label": "Text"
},
{
"fieldname": "json",
"fieldtype": "JSON",
"label": "JSON"
},
{
"fieldname": "file",
"fieldtype": "Attach",
"label": "File"
},
{
"fieldname": "message_type",
"fieldtype": "Select",
"label": "Message Type",
"options": "Text\nImage\nFile"
},
{
"fieldname": "message_reactions",
"fieldtype": "JSON",
"label": "Message Reactions"
},
{
"default": "0",
"fieldname": "is_reply",
"fieldtype": "Check",
"label": "Is Reply"
},
{
"fieldname": "linked_message",
"fieldtype": "Link",
"label": "Linked Message",
"options": "Raven Message"
},
{
"fieldname": "file_thumbnail",
"fieldtype": "Attach",
"label": "File Thumbnail"
},
{
"fieldname": "image_width",
"fieldtype": "Data",
"label": "Image Width"
},
{
"fieldname": "image_height",
"fieldtype": "Data",
"label": "Image Height"
},
{
"fieldname": "thumbnail_width",
"fieldtype": "Data",
"label": "Thumbnail Width"
},
{
"fieldname": "thumbnail_height",
"fieldtype": "Data",
"label": "Thumbnail Height"
},
{
"fieldname": "link_doctype",
"fieldtype": "Link",
"label": "Link Doctype",
"options": "DocType"
},
{
"fieldname": "link_document",
"fieldtype": "Dynamic Link",
"label": "Link Document",
"options": "link_doctype"
},
{
"default": "0",
"fieldname": "is_bot_message",
"fieldtype": "Check",
"label": "Is Bot Message"
},
{
"depends_on": "eval: doc.is_bot_message == 1",
"fieldname": "bot",
"fieldtype": "Link",
"label": "Bot",
"mandatory_depends_on": "eval: doc.is_bot_message == 1",
"options": "Raven User"
},
{
"fieldname": "content",
"fieldtype": "Long Text",
"label": "Content",
"read_only": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-01-19 17:41:28.463058",
"modified_by": "Administrator",
"module": "Raven Messaging",
"name": "Raven Message",
"naming_rule": "Random",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"select": 1,
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"if_owner": 1,
"print": 1,
"report": 1,
"role": "Raven User",
"share": 1,
"write": 1
},
{
"read": 1,
"role": "Raven User"
}
],
"search_fields": "text",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
Loading