Steve Howell
45d806d9aa
refactor: Extract message_helper.process_new_message.
...
We move the message_store.add_message_metadata function
(and all its dependencies) into a new module called
message_helper and rename the function to process_new_message.
(It does a bit more than adding message metadata, such
as updating our message store.)
We also have a "protected" interface now in message_store,
so that message_helper can access the message store:
update_message_cache
get_cached_message
Because update_message_cache is identical to
the former create_mock_message, we just renamed it
in the tests.
Most callers should use these functions:
message_helper.process_new_message (setting)
message_store.get (getting)
It's slightly annoying that the setter interface
is in a different module than the getter interface,
but that's how you break a bunch of dependencies.
We also extract the tiny message_user_ids class:
user_ids()
add_user_ids()
All the code moves here are pretty trivial, and
the code that was moved maintains 100% line
coverage.
The module name `message_helper` is not ideal, but it's a single
function and it'll save time to just do the topology change now and
leave thinking through the right name to later.
2021-03-29 14:53:57 -07:00
..
2021-03-28 16:18:09 -07:00
2021-03-23 10:46:04 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-08 10:45:17 -05:00
2021-03-26 10:17:56 -07:00
2021-03-13 11:48:50 -05:00
2020-12-01 07:14:00 -05:00
2021-03-22 19:40:06 -07:00
2021-03-22 13:29:32 -07:00
2021-03-26 10:17:56 -07:00
2021-03-18 16:37:20 -04:00
2021-03-20 11:00:48 -04:00
2021-02-28 14:23:00 -08:00
2021-02-10 07:40:22 -08:00
2021-03-13 11:48:50 -05:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-21 20:16:08 -07:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:06:30 -08:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-28 15:55:55 -07:00
2021-03-29 14:53:57 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-29 14:53:57 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-28 15:55:55 -07:00
2021-03-06 11:10:57 -05:00
2021-03-06 11:10:57 -05:00
2021-03-15 10:46:00 -04:00
2021-03-29 14:53:57 -07:00
2021-03-26 10:17:56 -07:00
2021-03-15 10:46:00 -04:00
2021-03-15 10:46:00 -04:00
2021-03-15 10:46:00 -04:00
2021-03-15 10:46:00 -04:00
2021-03-12 11:18:44 -05:00
2021-03-12 10:06:30 -08:00
2021-03-26 10:17:56 -07:00
2020-12-01 07:14:00 -05:00
2021-03-12 10:08:25 -08:00
2021-03-22 13:29:32 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-17 08:47:15 -04:00
2021-02-21 17:34:55 -05:00
2021-03-17 08:47:15 -04:00
2021-03-14 10:46:45 -04:00
2021-03-17 08:47:15 -04:00
2021-03-17 08:47:15 -04:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-29 14:53:57 -07:00
2021-03-29 14:53:57 -07:00
2021-03-12 10:06:30 -08:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-29 14:53:57 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-12 10:06:30 -08:00
2021-03-26 10:17:56 -07:00
2021-03-29 14:53:57 -07:00
2021-03-28 15:55:55 -07:00
2021-03-26 10:17:56 -07:00
2021-03-12 04:42:37 -05:00
2021-03-26 10:17:56 -07:00
2021-03-17 08:47:15 -04:00
2021-03-29 14:53:57 -07:00
2021-03-18 16:37:20 -04:00
2021-03-18 16:37:20 -04:00
2021-03-17 08:47:15 -04:00
2021-03-26 10:17:56 -07:00
2021-03-23 14:08:39 -04:00
2021-03-26 10:17:56 -07:00
2021-03-12 10:06:30 -08:00
2021-03-26 16:32:25 -07:00
2021-03-22 15:11:28 -04:00
2021-03-26 10:17:56 -07:00
2021-03-05 12:57:20 -05:00
2021-02-10 07:40:22 -08:00
2021-03-12 10:06:30 -08:00
2021-03-26 10:17:56 -07:00
2021-03-07 11:19:33 -05:00
2021-03-29 14:53:57 -07:00
2021-03-29 14:53:57 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-12 10:08:25 -08:00
2021-03-14 10:46:45 -04:00
2021-03-26 10:17:56 -07:00
2021-03-26 11:49:11 -07:00
2021-03-28 16:18:09 -07:00
2021-03-12 10:08:25 -08:00
2021-03-29 14:53:57 -07:00
2021-03-28 15:55:55 -07:00
2021-03-26 10:17:56 -07:00
2021-03-17 08:47:15 -04:00
2021-03-26 16:32:25 -07:00
2021-02-10 07:40:22 -08:00
2021-03-12 10:08:25 -08:00
2021-03-13 11:48:50 -05:00
2021-03-13 11:48:50 -05:00
2021-03-12 10:06:30 -08:00
2021-03-26 10:17:56 -07:00
2021-03-13 11:48:50 -05:00
2021-03-23 10:46:04 -07:00
2021-03-26 10:17:56 -07:00
2021-03-12 10:08:25 -08:00
2021-03-07 11:19:33 -05:00
2021-03-12 17:52:04 -05:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-25 02:08:51 -07:00
2021-03-15 13:05:49 -04:00
2021-03-15 13:05:49 -04:00
2021-02-26 07:55:53 -08:00
2021-03-29 14:53:57 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-26 10:17:56 -07:00
2021-03-17 08:47:15 -04:00
2021-03-26 10:17:56 -07:00
2021-03-17 08:47:15 -04:00
2021-03-12 04:42:37 -05:00
2021-03-17 08:47:15 -04:00
2021-03-23 14:08:39 -04:00
2021-03-17 08:47:15 -04:00
2021-03-17 08:47:15 -04:00
2021-02-22 10:04:29 -05:00