Commit graph

58 commits

Author SHA1 Message Date
Sagar Vora
17b20b22a3 Merge branch 'master' into develop 2019-02-12 16:31:54 +05:30
Faris Ansari
850e9e6d0b fix: Skip get_open_count during migrate or install 2019-02-11 18:41:11 +05:30
Sagar Vora
ef82f39f99 Merge branch 'staging' into develop 2019-01-29 18:24:11 +05:30
Chinmay Pai
3250553738 fix(notifications): ignore mysql internal error 1684 for concurrent ddl statements (#6826)
apparently this occurs when get_notifcations is called, and at the same time, a table is being modified. to fix this, we just skip the table that is currently being modified.

Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
2019-01-25 11:19:17 +05:30
Saurabh
97152b5a1e fix: return empty dict if setup wizard is not completed (#6830) 2019-01-25 10:22:13 +05:30
Saurabh
14911900c8 fix: return empty dict if site is in installation state or setup wiz not completed 2019-01-24 19:56:03 +05:30
Faris Ansari
75f8847ad4
fix: Skip get_notifications before setup_complete (#6828) 2019-01-24 19:15:49 +05:30
Saurabh
2de5dfdbb3 Merge branch 'staging' into develop 2018-12-18 10:20:24 +05:30
Saurabh
52073a2b59 [minor][fix] get_notifications_for_doctypes (#6634) 2018-12-17 16:06:56 +05:30
Saurabh
b727233948 Merge branch 'staging' into develop 2018-12-13 10:37:25 +05:30
Prateeksha Singh
0ccb159c6f Add make_records() 2018-12-11 16:10:02 +05:30
Himanshu Mishra
e53c72a627 added @read_only to a few calls and converted a few read only calls to GET (#6299) 2018-10-30 11:13:25 +05:30
Zlash65
8d6aef871a minor fix 2018-07-27 13:06:42 +05:30
Zarrar
c0b7712b04 [Enhance] Add items to dashboard through client-side scripting (#5861)
* add items in dashboard as need be
- doctypes can be added throguh js side if needed

* refresh handles open count
2018-07-27 10:47:06 +05:30
Suraj Shetty
c71c132ba2 Workflow actions (#5598)
* Init workflow actions

- WIP code
- Add hooks to create and update
workflow action on document status changes.
- Tweak listview to show host document on list view item click
- Add new doctype "Pending Workflow Action"
- Add allow_self_approval check in Workflow master

* Rename doctypes

- Rename "Workflow Action" to "Workflow Action Master"
- Rename "Pending Workflow Action" to "Workflow Action"
- Remove irrelevant files

* Clear old workflow action on docstatus change

- Add check for user permission before creating a workflow action record
- Make doctype changes to support the Workflow Action  System

* Show host document only if workflow action status is open

* Send workflow action mail notifications

* Add patch to rename `tabWorkflow Action` to `tab Workflow Master`

- Rename table to retain data in `tabWorkflow Action` as it
will be overwritten with new structure on migration

* Enqueue email

* Remove unused files

* Add hook for custom has_permission

* Optimize send_workflow_action_email method

* Add permission_query_condition hook

* Show notification based on status

* Override get_form_link in list view

* Refactor workflow action

- Add action link
- update workflow action hooks

* Avoid repeated creation of Worklow Actions

- Update hooks entry to avoid unwanted method call

* Fix error with frappe.db.count usage

* Fix ui/ux for Workflow Action

- Fix action url and improve response on action button click
- Fix workflow action template style

* Fix Codacy

* Add self approval check

* Fix codacy

* Fix test

* Fix python version confilct and a permission error

* Fix incorrect 'this' reference

* Update with requested changes

* Add next action email template option

* Fix string formatting

* Refactor workflow Action

- Make process_workflow_action smaller

* Fix bugs and errors due to refactor

* Fix workflow field caching

* Add a workflow action test

* Fix bugs with email template
2018-05-30 11:24:49 +05:30
Achilles Rasquinha
0fc518ace4 python 3 fixes 2018-03-31 18:15:43 +05:30
Faris Ansari
6a73d4024e Notifications via socketio (#5295)
- Publish realtime message when notifications are cleared
- Refresh notifications on client on clear_notifications event
- refresh_notfications will be called only once in a 1 second window
- No more 30 sec polling
2018-03-29 10:52:04 +05:30
Achilles Rasquinha
473d3eb6be Fixes for Python 3 (#4940)
* Fixed dict_keys and lists

* [FIX] config.get keys must be list

* [FIX] pickle all objects

* [FIX] get versions in unicode

* [FIX] get log versions

* debugging

* Fixed commit ID reference

* Fixed branch reference

* Fixed doc keys to list

* [LOG] test log

* [LOG] test log

* Convert iterators to list

* removed logs

* [FIX] Trial to load templates

* Fixed codacy
2018-01-31 10:51:13 +05:30
tundebabzy
f5c66a0d38 cover NoneType use case (#4375) 2017-10-25 12:28:03 +05:30
Aditya Hase
b32ce23196 Convert dict.keys() to list explicitly 2017-09-04 16:05:57 +05:30
pratu16x7
81d2edf0df Mark as done and progress updates 2017-08-29 10:03:05 +05:30
pratu16x7
c17bf0a04d [slides] setup wizard refactor 2017-08-29 10:03:04 +05:30
pratu16x7
6527a17251 [user-progress] Slides as container object, dismiss button 2017-08-29 10:03:03 +05:30
pratu16x7
5f988c3d7b [user-progress] first cut 2017-08-29 10:03:03 +05:30
Prateeksha Singh
b602a07c7a Graphs, and target notifications (#3641)
* [sales goal] in company; graph, notifs

* cleanup notifications.js, summary and specific val in graph

* Add line graph, add goal data methods in goal.py

* [tests] targets in notification config

* [minor] type of graph as argument in parent

* Update graph docs

* remove company dependent test for notification

* [fix] test

* look for monthly history in cache

* check for cached graph data in field
2017-07-17 14:51:30 +05:30
tundebabzy
6fbe20caaa Except and raise statement python 3 compatible style (#3216)
* changes exception and raise statements to python 3 style

* changes except statement to python 3 style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* adds six.reraise to fix python 3 style raise statements with traceback

* fixes indentation
2017-05-11 10:51:59 +05:30
Nabin Hait
d836d1367f Fixed merge conflict 2017-03-15 11:26:55 +05:30
Rushabh Mehta
95e6306cc0 [minor] fix for in_install 2017-03-09 18:18:13 +05:30
Rushabh Mehta
9484ea1af3 [fix] clear notifications for user 2017-03-09 18:09:42 +05:30
Rushabh Mehta
33d8db6d88 [fix] minor fixes 2017-02-03 16:42:23 +05:30
Neil Trini Lasrado
94abbce5a7 Increased notification count & open notification count indicators to 99+ from 9+ (#2514) 2017-01-05 14:47:05 +05:30
Rushabh Mehta
adb2e86a3d [fix] dashboard cleanup 2016-07-20 18:54:49 +05:30
Rushabh Mehta
90673954c7 [cleanup] dashboard automation 2016-07-07 14:02:07 +05:30
Rushabh Mehta
b5e2d2aa90 [fix] get_timeline_data 2016-07-05 14:59:01 +05:30
Rushabh Mehta
58caa7bbca [cleanup] [style] links cleanups and form-css 2016-07-04 11:38:31 +05:30
Rushabh Mehta
11f2e4293b [fix] ignore ifnull for filter queries 2016-05-25 11:17:02 +05:30
Rushabh Mehta
4bb2fce345 [enhancement] added heatmaps and item count in dashboard 2016-04-14 17:30:06 +05:30
Rushabh Mehta
5ab8a8d405 [cleanup] form links dashboard and added blocked in Desktop Icons, standard icons hidden by default 2016-04-13 17:21:15 +05:30
Rushabh Mehta
daa9c094d0 [enhancement] [wip] links menu in forms 2016-04-12 19:16:17 +05:30
Rushabh Mehta
ae0afc73df [cleanup] dashboard and default image 2016-04-11 17:35:01 +05:30
Rushabh Mehta
cb44325f39 [fix] limit open notifications to 20 2016-04-08 18:35:46 +05:30
Anand Doshi
353e8a9d1f [fix] Sanitize form_dict and doc values to prevent XSS 2016-02-23 12:11:28 +05:30
Anand Doshi
465318878e [enhancement] Merge Comment and Feed into Communication 💥 2016-02-04 17:46:53 +05:30
Anand Doshi
3241a0969f [feature] Ability to like a document, comment or communication, see notifications about it and view it on activity feed 2016-01-01 12:50:14 +05:30
Rushabh Mehta
22b828f55d [cleanup] desktop re-organization 2015-10-30 16:18:36 +05:30
Anand Doshi
755c7be7fa [fix] missing hash cache clearing and breadcrumbs fix 2015-08-11 16:19:42 +05:30
Nabin Hait
82ce69a1b9 permission traceback 2015-05-14 18:48:05 +05:30
Rushabh Mehta
4e6b6ebdb9 [cache] fix 2015-05-08 22:30:38 +05:30
Rushabh Mehta
ad100e3054 [cache] fix for website, default, meta, etc 2015-05-08 18:04:13 +05:30
Rushabh Mehta
eb21f50c0f [cleanup] frappe.get_user() 2015-05-01 10:33:23 +05:30