Aaron Bohy
79e4a1f1b1
[FIX] web: ModelFieldSelector: add a way to clear the cache
...
The ModelFieldSelector keeps an internal cache for the fields_get.
This cache needs to be cleared in the tests environment because
a model with the same name may be defined several times accross the
tests modules, but they may contain different fields.
This could also be a problem with studio: when a field is created,
the ModelFieldSelector cache must be cleared as well (in addition
to the data_manager one).
We thus introduce a new 'clear_cache' event on core.bus. When
triggered, the ModelFieldSelector and the data_manager clear their
respective cache.
We use this event in the test environment to ensure that the cache
is cleared at the end of each test using a mockEnvironment. This
rev. also fixes an infinite loop in the override of destroy() in
the mockEnvironment, which occured when both session and config
were specified in the params.
2017-06-08 11:35:03 +02:00
..
2017-06-06 19:23:03 +02:00
2017-05-21 04:33:07 +02:00
2017-05-14 04:31:11 +02:00
2017-06-04 04:27:19 +02:00
2017-06-01 01:10:29 +02:00
2017-06-04 00:28:17 +02:00
2017-06-01 02:40:07 +02:00
2017-06-01 01:10:29 +02:00
2017-04-30 07:12:44 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-05-01 02:40:51 +02:00
2017-05-14 07:08:31 +02:00
2017-04-30 07:12:44 +02:00
2017-05-14 04:31:11 +02:00
2017-05-28 04:29:29 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 07:07:18 +02:00
2017-05-14 07:08:31 +02:00
2017-06-04 07:07:18 +02:00
2017-04-30 07:12:44 +02:00
2017-06-06 19:23:03 +02:00
2017-04-30 07:12:44 +02:00
2017-06-04 07:07:18 +02:00
2017-06-06 16:32:37 +02:00
2017-06-04 07:07:18 +02:00
2017-05-03 15:41:05 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 04:27:19 +02:00
2017-05-28 07:06:53 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 04:27:19 +02:00
2017-06-06 19:23:03 +02:00
2017-04-30 07:12:44 +02:00
2017-05-05 12:27:06 +02:00
2017-05-04 12:07:30 +02:00
2017-05-28 04:29:29 +02:00
2017-06-04 07:07:18 +02:00
2017-05-14 04:31:11 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 04:27:19 +02:00
2017-06-06 11:33:31 +02:00
2017-05-04 16:05:32 +02:00
2017-06-06 19:23:03 +02:00
2017-06-06 19:23:03 +02:00
2017-06-01 02:40:07 +02:00
2017-05-16 17:09:45 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 07:07:18 +02:00
2017-06-01 01:49:16 +02:00
2017-06-06 11:33:31 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-05-04 12:07:30 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-05-28 04:29:29 +02:00
2017-06-04 04:27:19 +02:00
2017-04-28 09:06:53 +02:00
2017-04-28 09:06:53 +02:00
2017-06-06 19:23:03 +02:00
2017-04-28 09:06:53 +02:00
2017-04-28 09:06:53 +02:00
2017-04-28 09:06:53 +02:00
2017-06-06 19:23:03 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 04:27:19 +02:00
2017-04-13 13:22:27 +02:00
2017-06-01 02:40:07 +02:00
2017-05-08 16:55:51 +02:00
2017-05-08 16:55:51 +02:00
2017-06-04 00:28:17 +02:00
2017-06-01 01:10:29 +02:00
2017-05-01 02:40:51 +02:00
2017-04-28 09:06:53 +02:00
2017-06-01 00:15:27 +02:00
2017-05-30 12:26:46 +02:00
2017-05-16 14:56:02 +02:00
2017-06-01 01:10:29 +02:00
2017-05-01 02:40:51 +02:00
2017-05-10 10:54:26 +02:00
2017-04-28 09:06:53 +02:00
2017-05-16 17:09:45 +02:00
2017-06-04 00:28:17 +02:00
2017-05-21 00:28:50 +02:00
2017-06-01 02:40:07 +02:00
2017-06-01 01:10:29 +02:00
2017-05-21 00:28:50 +02:00
2017-05-21 00:28:50 +02:00
2017-05-21 00:28:50 +02:00
2017-05-01 02:40:51 +02:00
2017-06-01 02:40:07 +02:00
2017-05-21 00:28:50 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 07:07:18 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 04:27:19 +02:00
2017-06-01 02:40:07 +02:00
2017-06-06 19:23:03 +02:00
2017-04-28 09:06:53 +02:00
2017-04-28 09:06:53 +02:00
2017-06-04 00:28:17 +02:00
2017-06-06 19:23:03 +02:00
2017-05-21 04:33:07 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 07:07:18 +02:00
2017-05-21 04:33:07 +02:00
2017-05-21 04:33:07 +02:00
2017-05-14 04:31:11 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-05-05 12:27:06 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 04:27:19 +02:00
2017-05-28 04:29:29 +02:00
2017-05-28 07:06:53 +02:00
2017-06-01 02:40:07 +02:00
2017-06-04 04:27:19 +02:00
2017-05-21 04:33:07 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 04:27:19 +02:00
2017-06-01 02:40:07 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 04:27:19 +02:00
2017-05-28 04:29:29 +02:00
2017-06-06 19:23:03 +02:00
2017-06-06 19:23:03 +02:00
2017-06-07 10:15:04 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 04:27:19 +02:00
2017-05-11 18:27:33 +02:00
2017-06-04 07:07:18 +02:00
2017-05-14 04:31:11 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-05-21 04:33:07 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 04:27:19 +02:00
2017-05-28 04:29:29 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 04:27:19 +02:00
2017-04-28 09:06:53 +02:00
2017-06-01 02:40:07 +02:00
2017-05-16 17:09:45 +02:00
2017-05-14 04:31:11 +02:00
2017-04-30 07:12:44 +02:00
2017-06-04 04:27:19 +02:00
2017-06-06 17:47:40 +02:00
2017-06-06 11:33:31 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 04:27:19 +02:00
2017-05-14 04:31:11 +02:00
2017-05-14 04:31:11 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 04:27:19 +02:00
2017-06-04 07:07:18 +02:00
2017-06-01 02:40:07 +02:00
2017-04-30 07:12:44 +02:00
2017-05-21 00:28:50 +02:00
2017-05-21 04:33:07 +02:00
2017-06-08 11:35:03 +02:00
2017-04-30 07:12:44 +02:00
2017-06-06 19:23:03 +02:00
2017-05-01 02:40:51 +02:00
2017-05-21 00:28:50 +02:00
2017-06-04 00:28:17 +02:00
2017-06-06 19:23:03 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-05-05 12:27:07 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-05-07 07:08:16 +02:00
2017-06-04 00:28:17 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 00:28:17 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 00:28:17 +02:00
2017-06-01 02:40:07 +02:00
2017-06-01 02:40:07 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-04-28 09:06:53 +02:00
2017-06-06 19:23:03 +02:00
2017-06-04 07:07:18 +02:00
2017-06-04 00:28:17 +02:00
2017-04-30 07:12:44 +02:00
2017-04-30 07:12:44 +02:00
2017-06-04 00:28:17 +02:00
2017-06-04 00:28:17 +02:00
2017-06-06 19:23:03 +02:00
2017-04-28 09:06:53 +02:00
2017-06-04 00:28:17 +02:00
2017-05-14 07:08:31 +02:00
2017-05-21 07:11:01 +02:00
2017-04-30 07:12:44 +02:00
2017-04-28 09:06:53 +02:00
2017-06-04 07:07:18 +02:00
2017-05-07 07:08:16 +02:00
2017-06-04 07:07:18 +02:00