Alexandre Kühn
e228acb081
[REV] mail: debounce suggestion (and channel selector) searches
...
This reverts odoo#126869.
Motivation for debounce was to reduce the amount of RPCs, to
not put too much load on server.
However, this makes showing of mention slower than it should,
and the load on server is already adjusted based on duration
of ongoing `fetchSuggestion` RPC: if server can reply with mentions
immediately, then no need to debounce. If the RPC is slow, then
next `fetchSuggestion` waits for current RPC to finish before
making a new fetch.
This PR also fixes this small crash when using mentions:
```
TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at cleanTerm (format.js:244:1) (/mail/static/src/utils/format.js:244)
```
Steps to reproduce:
- type `@` then `backspace` then `@` then `backspace`, etc.
This happened because suggestion hook internal state had `term` being undefined when there is no term, but `undefined` is invalid for `cleanTerm`. `""` is a better default for no search term, and since this is a string this works with `cleanTerm`.
closes odoo/odoo#127399
Related: odoo/enterprise#43678
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com >
2023-07-05 18:46:42 +02:00
..
2023-07-05 17:33:59 +02:00
2023-06-21 20:10:01 +02:00
2023-06-27 10:42:47 +02:00
2023-06-30 23:37:50 +02:00
2023-06-16 23:01:20 +02:00
2023-06-15 17:36:14 +02:00
2023-06-28 17:41:19 +02:00
2023-07-05 09:01:10 +02:00
2023-07-04 07:55:16 +02:00
2023-06-20 19:08:56 +02:00
2023-06-22 08:35:01 +02:00
2023-06-28 17:41:19 +02:00
2023-06-21 15:53:15 +02:00
2023-06-24 14:01:40 +02:00
2023-06-28 17:41:19 +02:00
2023-06-12 22:39:26 +02:00
2023-07-04 14:02:30 +02:00
2023-07-05 14:21:28 +02:00
2023-06-19 13:35:28 +02:00
2023-06-28 17:41:19 +02:00
2023-06-22 15:40:51 +02:00
2023-07-05 14:21:28 +02:00
2023-06-28 17:41:19 +02:00
2023-06-29 11:59:46 +02:00
2023-06-20 15:58:03 +02:00
2023-07-03 21:55:48 +02:00
2023-06-21 06:57:53 +02:00
2023-07-03 21:55:48 +02:00
2023-06-29 11:59:46 +02:00
2023-07-05 14:21:28 +02:00
2023-07-05 14:21:28 +02:00
2023-07-03 21:55:48 +02:00
2023-07-05 14:21:28 +02:00
2023-07-05 14:21:28 +02:00
2023-07-05 14:21:28 +02:00
2023-07-05 14:21:28 +02:00
2023-06-28 17:41:19 +02:00
2023-06-22 18:29:50 +02:00
2023-06-28 09:59:59 +02:00
2023-06-12 22:39:26 +02:00
2023-07-05 14:21:28 +02:00
2023-06-27 17:33:02 +02:00
2023-07-05 14:21:28 +02:00
2023-06-28 17:41:19 +02:00
2023-07-03 21:55:48 +02:00
2023-06-28 17:41:19 +02:00
2023-06-22 15:41:00 +02:00
2023-07-05 18:46:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-23 16:35:35 +02:00
2023-06-27 08:24:11 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-30 00:20:45 +02:00
2023-06-30 00:21:21 +02:00
2023-06-15 17:35:42 +02:00
2023-06-26 22:15:22 +02:00
2023-06-23 16:35:35 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-14 10:54:24 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-07-01 00:51:43 +02:00
2023-06-28 20:21:40 +02:00
2023-06-21 11:50:22 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-26 20:00:21 +02:00
2023-06-19 10:40:54 +02:00
2023-06-26 13:21:03 +02:00
2023-07-04 11:35:02 +02:00
2023-06-22 15:41:03 +02:00
2023-06-19 10:40:43 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:36:14 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 07:57:03 +02:00
2023-06-15 17:35:42 +02:00
2023-06-14 10:54:24 +02:00
2023-07-04 14:02:22 +02:00
2023-06-19 10:40:43 +02:00
2023-06-16 13:41:00 +02:00
2023-06-16 13:41:00 +02:00
2023-06-15 17:35:42 +02:00
2023-06-29 09:10:44 +02:00
2023-06-14 09:39:05 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-28 17:41:19 +02:00
2023-06-28 17:41:19 +02:00
2023-06-28 17:41:19 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-14 10:54:24 +02:00
2023-06-22 18:29:58 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-12 22:39:26 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-30 01:32:47 +02:00
2023-06-15 17:35:42 +02:00
2023-06-26 21:10:28 +02:00
2023-07-03 11:02:41 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:36:15 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-24 03:35:44 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-15 17:35:42 +02:00
2023-06-26 20:00:32 +02:00
2023-06-28 17:41:19 +02:00
2023-06-28 17:41:19 +02:00
2023-07-05 18:46:42 +02:00
2023-06-28 17:41:19 +02:00
2023-06-30 00:21:03 +02:00
2023-06-28 17:41:19 +02:00
2023-06-28 23:02:37 +02:00
2023-06-22 19:37:10 +02:00
2023-07-05 17:34:13 +02:00
2023-06-23 17:59:57 +02:00
2023-06-28 17:41:19 +02:00
2023-07-04 10:16:13 +02:00
2023-06-28 17:41:19 +02:00
2023-07-04 11:35:00 +02:00
2023-07-05 15:58:31 +02:00
2023-07-05 14:34:00 +02:00
2023-06-19 10:41:00 +02:00
2023-07-03 15:37:37 +02:00
2023-07-05 17:34:06 +02:00
2023-06-29 06:48:08 +02:00
2023-06-27 16:26:45 +02:00
2023-06-19 10:40:43 +02:00
2023-06-19 10:40:43 +02:00
2023-06-19 10:40:43 +02:00
2023-07-03 19:57:49 +02:00
2023-06-19 10:40:43 +02:00
2023-07-05 14:33:58 +02:00
2023-07-03 11:02:49 +02:00
2023-07-05 15:58:26 +02:00
2023-06-19 10:40:43 +02:00
2023-07-05 11:37:06 +02:00
2023-06-27 16:26:45 +02:00
2023-06-27 16:26:45 +02:00
2023-06-28 17:41:19 +02:00
2023-06-30 15:41:52 +02:00
2023-07-05 11:37:06 +02:00
2023-06-23 17:59:57 +02:00
2023-06-22 15:40:51 +02:00
2023-06-14 13:10:49 +02:00
2023-06-21 00:13:49 +02:00
2023-06-28 17:41:19 +02:00
2023-06-22 09:50:41 +02:00
2023-06-28 17:41:53 +02:00
2023-07-04 12:47:12 +02:00
2023-06-28 17:41:19 +02:00
2023-06-30 20:13:43 +02:00
2023-06-29 22:38:49 +02:00
2023-07-05 17:33:59 +02:00
2023-06-22 15:40:51 +02:00
2023-06-28 17:41:19 +02:00
2023-06-22 15:40:51 +02:00
2023-06-30 23:37:50 +02:00
2023-06-22 08:34:58 +02:00
2023-06-22 15:40:51 +02:00
2023-06-30 10:42:22 +02:00
2023-06-23 09:20:57 +02:00
2023-06-23 18:00:05 +02:00
2023-07-03 15:37:32 +02:00
2023-06-13 19:28:59 +02:00
2023-06-28 17:41:19 +02:00
2023-07-05 17:34:10 +02:00
2023-07-05 17:34:10 +02:00
2023-07-05 10:12:48 +02:00
2023-06-15 10:44:58 +02:00
2023-06-13 14:07:27 +02:00
2023-06-13 14:07:27 +02:00
2023-07-04 09:04:52 +02:00
2023-06-29 18:20:27 +02:00
2023-07-03 12:20:58 +02:00
2023-06-21 11:50:16 +02:00
2023-06-23 10:27:38 +02:00
2023-07-04 15:18:20 +02:00
2023-06-12 22:39:26 +02:00
2023-06-28 17:41:19 +02:00
2023-07-05 11:37:16 +02:00
2023-06-21 06:57:53 +02:00
2023-07-05 14:21:28 +02:00
2023-06-12 22:39:26 +02:00
2023-06-12 22:39:26 +02:00
2023-06-26 22:15:17 +02:00
2023-06-28 17:41:19 +02:00
2023-06-28 17:41:19 +02:00
2023-06-12 22:39:26 +02:00
2023-07-05 17:33:59 +02:00
2023-07-05 11:37:06 +02:00
2023-07-05 10:12:58 +02:00
2023-07-04 14:02:25 +02:00
2023-06-19 13:35:28 +02:00
2023-06-12 22:39:26 +02:00
2023-06-30 00:21:14 +02:00
2023-06-29 11:59:46 +02:00
2023-06-19 23:17:01 +02:00
2023-06-28 17:41:35 +02:00
2023-06-28 17:41:19 +02:00
2023-07-04 11:35:11 +02:00
2023-06-26 13:20:49 +02:00
2023-07-04 00:51:54 +02:00
2023-06-26 22:15:43 +02:00
2023-06-19 23:17:01 +02:00
2023-06-30 23:37:50 +02:00
2023-06-26 21:10:01 +02:00
2023-07-04 00:51:51 +02:00
2023-06-29 09:10:54 +02:00
2023-06-30 00:21:19 +02:00
2023-06-22 15:40:51 +02:00
2023-06-30 00:21:19 +02:00
2023-07-05 11:37:06 +02:00
2023-06-30 01:32:52 +02:00