akkoma/test
Hélène f3e061c964
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-09 20:10:43 +02:00
..
config Load an emoji.txt specific to the test env 2021-02-03 16:40:59 -06:00
credo/check/consistency Copyright bump for 2022 2022-02-25 23:11:42 -07:00
fixtures Merge branch 'develop' into 'from/develop/tusooa/emit-move' 2022-07-31 21:32:49 +00:00
instance_static support for special chars in pack name 2020-09-24 09:12:37 +03:00
mix Rename the Exiftool module 2022-07-01 12:15:02 +02:00
pleroma Object: remove context_id field 2022-08-09 20:10:43 +02:00
support Merge branch 'develop' into 'from/develop/tusooa/emit-move' 2022-07-31 21:32:49 +00:00
test_helper.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00