Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused ActivityPub @context values depending on response #10378

Merged
merged 1 commit into from
Mar 27, 2019

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Mar 26, 2019

Fix #8078

Each serializer states which contexts it uses, and which context extensions. The only useful named context right now is security. As for context extensions, they are categorized by features/useful property groups.

The adapter then assembles a @context dynamically from this information.

With less stuff in the @context, it saves a little bit of bandwidth, a little bit of storage in Sidekiq queues when the JSON is used as job arguments, and the payloads become more readable (glance value).

@Gargron Gargron added performance Runtime performance activitypub Protocol-related changes, federation labels Mar 26, 2019
@Gargron Gargron force-pushed the feature-omit-unused-contexts branch from 1084867 to 6eb7c82 Compare March 26, 2019 03:20
Copy link
Member

@nightpool nightpool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still do not understand how associations are supposed to propagate but

@Gargron Gargron force-pushed the feature-omit-unused-contexts branch 2 times, most recently from 605058c to d29d0c7 Compare March 27, 2019 00:05
@nightpool nightpool self-requested a review March 27, 2019 00:15
@Gargron Gargron force-pushed the feature-omit-unused-contexts branch from d29d0c7 to f505bc9 Compare March 27, 2019 00:39
@Gargron Gargron force-pushed the feature-omit-unused-contexts branch from f505bc9 to 3dfb366 Compare March 27, 2019 01:44
@Gargron Gargron merged commit 11fe293 into master Mar 27, 2019
@ykzts ykzts deleted the feature-omit-unused-contexts branch March 28, 2019 01:00
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
messenjahofchrist pushed a commit to Origin-Creative/mastodon that referenced this pull request Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
activitypub Protocol-related changes, federation performance Runtime performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants