summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/notification.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-03-01 14:51:48 +0100
committerThibault Delavallée <tde@odoo.com>2018-03-01 16:00:36 +0100
commita01933c9b4dc6ff4e1a0b73822df9097025c0e1c (patch)
treeeafc8ad4f736275d5aa2fa0102047f5129e2ec7d /addons/web/static/src/js/widgets/notification.js
parent561db474e000ce2907308e5fd9bc24346fbeaa0c (diff)
[IMP] test_mail: add unit and performance tests about adding followers
Purpose of this commit is to test existing behavior of followers subscription as well as adding some query count tests about message_subscribe method. As followers subscription technical implementation may change in a near future in order to be optimized it is a good idea to have current behavior and query count validated. This commit adds * test for followers update using message_subscribe API. Tests are added with forced and unforced subtypes to ensure behavior will not change or will be changed while knowing it; * performance test about message_subscribe, about adding new followers, and subscribing already-existing followers in force mode or not; Query count performance test shows that message_subscribe could probably be improved. It does several things that require queries (check of access rights, check for existing subscriptions, ensure customers have no access to internal subtypes, ...). However we feel it could be improved in order to speed-up the subscription of followers. This is linked to task 49265; it is only the first steps of it.
Diffstat (limited to 'addons/web/static/src/js/widgets/notification.js')
0 files changed, 0 insertions, 0 deletions