-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
145 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
wiki/wiki/doctype/wiki_feedback/patches/delete_wiki_feedback_item.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import frappe | ||
|
||
def execute(): | ||
for d in frappe.db.sql("select * from `tabWiki Feedback Item`"): | ||
frappe.get_doc(dict( | ||
doctype = "Wiki Feedback", | ||
status = "Open", | ||
rating = d.rating, | ||
feedback = d.feedback, | ||
email_id = d.email_id | ||
)).insert() | ||
|
||
frappe.db.sql("update `tabWiki Feedback` set creation = %s, modified = %s" % (d.creation, d.modified)) | ||
|
||
# delete old | ||
frappe.db.sql("delete from `tabWiki Feedback` where name = %s" % d.parent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
44 changes: 0 additions & 44 deletions
44
wiki/wiki/doctype/wiki_feedback_item/wiki_feedback_item.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,76 @@ | ||
{ | ||
"charts": [], | ||
"content": "[{\"id\":\"f6laZQUa0x\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\">Wiki</span>\",\"col\":12}},{\"id\":\"ir8Llemis5\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Pages\",\"col\":4}},{\"id\":\"tZQ_AtqABm\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Space\",\"col\":3}},{\"id\":\"z4qT3yMggL\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Settings\",\"col\":4}},{\"id\":\"cTIBC0weUT\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Page Patches\",\"col\":4}},{\"id\":\"BsC6YwujPn\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Page Revisions\",\"col\":4}}]", | ||
"creation": "2022-09-25 16:45:20.547072", | ||
"custom_blocks": [], | ||
"docstatus": 0, | ||
"doctype": "Workspace", | ||
"for_user": "", | ||
"hide_custom": 0, | ||
"icon": "education", | ||
"idx": 0, | ||
"is_hidden": 0, | ||
"label": "Wiki", | ||
"links": [], | ||
"modified": "2023-07-23 13:03:07.200464", | ||
"modified_by": "Administrator", | ||
"module": "Wiki", | ||
"name": "Wiki", | ||
"number_cards": [], | ||
"owner": "Administrator", | ||
"parent_page": "", | ||
"public": 1, | ||
"quick_lists": [], | ||
"roles": [], | ||
"sequence_id": 31.0, | ||
"shortcuts": [ | ||
{ | ||
"color": "Blue", | ||
"doc_view": "List", | ||
"format": "{} Published", | ||
"label": "Wiki Pages", | ||
"link_to": "Wiki Page", | ||
"stats_filter": "{\"published\":[\"=\",1]}", | ||
"type": "DocType" | ||
}, | ||
{ | ||
"color": "Grey", | ||
"doc_view": "List", | ||
"label": "Wiki Space", | ||
"link_to": "Wiki Space", | ||
"type": "DocType" | ||
}, | ||
{ | ||
"color": "Yellow", | ||
"doc_view": "List", | ||
"format": "{} Under Review", | ||
"label": "Wiki Page Patches", | ||
"link_to": "Wiki Page Patch", | ||
"stats_filter": "{\"status\":[\"=\",\"Under Review\"]}", | ||
"type": "DocType" | ||
}, | ||
{ | ||
"color": "Grey", | ||
"doc_view": "List", | ||
"label": "Wiki Settings", | ||
"link_to": "Wiki Settings", | ||
"type": "DocType" | ||
}, | ||
{ | ||
"color": "Grey", | ||
"doc_view": "List", | ||
"label": "Wiki Page Revisions", | ||
"link_to": "Wiki Page Revision", | ||
"type": "DocType" | ||
} | ||
], | ||
"title": "Wiki" | ||
} | ||
"charts": [], | ||
"content": "[{\"id\":\"f6laZQUa0x\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\">Wiki</span>\",\"col\":12}},{\"id\":\"ir8Llemis5\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Pages\",\"col\":4}},{\"id\":\"tZQ_AtqABm\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Space\",\"col\":4}},{\"id\":\"z4qT3yMggL\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Settings\",\"col\":4}},{\"id\":\"cTIBC0weUT\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Page Patches\",\"col\":4}},{\"id\":\"IfrRKY62Tc\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Feedback\",\"col\":4}},{\"id\":\"BsC6YwujPn\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Wiki Page Revisions\",\"col\":4}}]", | ||
"creation": "2022-09-25 16:45:20.547072", | ||
"custom_blocks": [], | ||
"docstatus": 0, | ||
"doctype": "Workspace", | ||
"for_user": "", | ||
"hide_custom": 0, | ||
"icon": "education", | ||
"idx": 0, | ||
"is_hidden": 0, | ||
"label": "Wiki", | ||
"links": [], | ||
"modified": "2024-06-03 16:10:59.630080", | ||
"modified_by": "Administrator", | ||
"module": "Wiki", | ||
"name": "Wiki", | ||
"number_cards": [], | ||
"owner": "Administrator", | ||
"parent_page": "", | ||
"public": 1, | ||
"quick_lists": [], | ||
"roles": [], | ||
"sequence_id": 31.0, | ||
"shortcuts": [ | ||
{ | ||
"color": "Blue", | ||
"doc_view": "List", | ||
"format": "{} Published", | ||
"label": "Wiki Pages", | ||
"link_to": "Wiki Page", | ||
"stats_filter": "{\"published\":[\"=\",1]}", | ||
"type": "DocType" | ||
}, | ||
{ | ||
"color": "Grey", | ||
"doc_view": "List", | ||
"label": "Wiki Feedback", | ||
"link_to": "Wiki Feedback", | ||
"stats_filter": "[]", | ||
"type": "DocType" | ||
}, | ||
{ | ||
"color": "Grey", | ||
"doc_view": "List", | ||
"label": "Wiki Space", | ||
"link_to": "Wiki Space", | ||
"type": "DocType" | ||
}, | ||
{ | ||
"color": "Yellow", | ||
"doc_view": "List", | ||
"format": "{} Under Review", | ||
"label": "Wiki Page Patches", | ||
"link_to": "Wiki Page Patch", | ||
"stats_filter": "{\"status\":[\"=\",\"Under Review\"]}", | ||
"type": "DocType" | ||
}, | ||
{ | ||
"color": "Grey", | ||
"doc_view": "List", | ||
"label": "Wiki Settings", | ||
"link_to": "Wiki Settings", | ||
"type": "DocType" | ||
}, | ||
{ | ||
"color": "Grey", | ||
"doc_view": "List", | ||
"label": "Wiki Page Revisions", | ||
"link_to": "Wiki Page Revision", | ||
"type": "DocType" | ||
} | ||
], | ||
"title": "Wiki" | ||
} |