Extend own capabilities fetching & caching to other feed own data #158
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Goal
AND-927
In #154 we introduced fetching & caching of feed own capabilities, to remedy the fact that they're empty in
ActivityData.currentFeedon the activity added event. Now the backend allows us to fetch also other own data, i.e. follows & membership, so we're extending the logic to handle those too.Implementation
Basically, wherever we were dealing with capabilities in #154, we now deal with
FeedOwnValuesinstead. The logic is otherwise the same.Testing
You can add some logging to log the own properties of
ActivityData.currentFeed, then add an activity (thus triggering the activity.added event) and verifying that those own properties are enriched correctlyChecklist