akkoma/test
Hélène 662a9e7518 Object: remove context_id field
30 to 70% of the objects in the object table are simple JSON objects
containing a single field, 'id', being the context's ID. The reason for
the creation of an object per context seems to be an old relic from the
StatusNet era, and has only been used nowadays as an helper for threads
in Pleroma-FE via the `pleroma.conversation_id` field in status views.
An object per context was created, and its numerical ID (table column)
was used and stored as 'context_id' in the object and activity along
with the full 'context' URI/string.

This commit removes this field and stops creation of objects for each
context, which will also allow incoming activities to use activity IDs
as contexts, something which was not possible before, or would have been
very broken under most circumstances.

The `pleroma.conversation_id` field has been reimplemented in a way to
maintain backwards-compatibility by calculating a CRC32 of the full
context URI/string in the object, instead of relying on the row ID for
the created context object.
2022-08-06 02:47:33 +01:00
..
config Load an emoji.txt specific to the test env 2021-02-03 16:40:59 -06:00
credo/check/consistency Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
fixtures Transmogrifier: fix reply context fixing 2022-08-04 12:57:48 +01:00
instance_static support for special chars in pack name 2020-09-24 09:12:37 +03:00
mix purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
pleroma Object: remove context_id field 2022-08-06 02:47:33 +01:00
support Transmogrifier: fix reply context fixing 2022-08-04 12:57:48 +01:00
test_helper.exs Use finch everywhere (#33) 2022-07-04 16:30:38 +00:00