akkoma/test/pleroma/web
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
..
activity_pub Object: remove context_id field 2022-08-09 20:10:43 +02:00
admin_api Merge branch 'from/upstream-develop/tusooa/server-announcements' into 'develop' 2022-07-03 20:58:20 +00:00
api_spec Copyright bump for 2022 2022-02-25 23:11:42 -07:00
auth Copyright bump for 2022 2022-02-25 23:11:42 -07:00
common_api Object: remove context_id field 2022-08-09 20:10:43 +02:00
endpoint Copyright bump for 2022 2022-02-25 23:11:42 -07:00
feed Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mastodon_api Object: remove context_id field 2022-08-09 20:10:43 +02:00
media_proxy Copyright bump for 2022 2022-02-25 23:11:42 -07:00
metadata Copyright bump for 2022 2022-02-25 23:11:42 -07:00
o_auth Merge branch 'fix_test_get_user_apps' into 'develop' 2022-03-06 18:40:49 +00:00
o_status Document way to do notice compatibility routes with Nginx reverse-proxy instead 2022-07-16 23:44:37 -06:00
pleroma_api Copyright bump for 2022 2022-02-25 23:11:42 -07:00
plugs Document way to do notice compatibility routes with Nginx reverse-proxy instead 2022-07-16 23:44:37 -06:00
preload/providers Copyright bump for 2022 2022-02-25 23:11:42 -07:00
push Copyright bump for 2022 2022-02-25 23:11:42 -07:00
rich_media Copyright bump for 2022 2022-02-25 23:11:42 -07:00
static_fe Copyright bump for 2022 2022-02-25 23:11:42 -07:00
twitter_api Change test case wording 2022-07-31 21:34:23 +00:00
views Copyright bump for 2022 2022-02-25 23:11:42 -07:00
web_finger Copyright bump for 2022 2022-02-25 23:11:42 -07:00
common_api_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
fallback_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
federator_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
gettext_test.exs Fix incorrect fallback when English is set to first language 2022-04-17 22:39:52 -04:00
manifest_controller_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
media_proxy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mongoose_im_controller_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
node_info_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
rel_me_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
shout_channel_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
streamer_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
uploader_controller_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
web_finger_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00