Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#3005] Add model and API for following groups
This implements everything required at the model and API level for following and unfollowing of groups, getting a group's number of followers or a list of a group's followers, and getting the number of groups that a user follows or a list of the groups that a user follows. Tests need to be added. Frontend for following groups needs to be added. + Add UserFollowingGroup model class and user_following_group_dictize(). + Add "{actor} started following {group}" activity stream activity. + Refactor user_following_user_dict_save() and user_following_dataset_dict_save(), replace with a single follower_dict_save() that can be used for UserFollowingUser, UserFollowingDataset, or UserFollowingGroup. + Add follow_group() and unfollow_group() logic action functions in create.py and delete.py. + Add group_follower_count(), group_follower_list(), am_following_group(), group_followee_count() and group_followee_list() logic action functions in get.py. Also refactor some code in logic/action/get.py to remove duplication between follower functions. + Add convert_group_name_or_id_to_id() converter function + Add default_follow_group_schema() + Add migration script
- Loading branch information
Sean Hammond
committed
Oct 23, 2012
1 parent
1311da8
commit 4145f00
Showing
12 changed files
with
360 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.