-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #593 from CPSSD/n/refresh_follows
Regenerate recommendations when there are new follows or unfollows
- Loading branch information
Showing
19 changed files
with
242 additions
and
114 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ message FollowRecommendationUser { | |
} | ||
|
||
message FollowRecommendationRequest { | ||
/* Eg. "admin", "[email protected]", "@jose" */ | ||
/* The Rabble integer ID of the user. */ | ||
int64 user_id = 1; | ||
} | ||
|
||
|
@@ -32,6 +32,21 @@ message FollowRecommendationResponse { | |
repeated FollowRecommendationUser results = 3; | ||
} | ||
|
||
message UpdateFollowRecommendationsRequest { | ||
/* Rabble user_id of follower. */ | ||
int64 follower = 1; | ||
/* Rabble user_id of follower. */ | ||
int64 followed = 2; | ||
/* True if this is a new follow, false if it is an unfollow. */ | ||
bool following = 3; | ||
} | ||
|
||
message UpdateFollowRecommendationsResponse { | ||
/* Don't return any error, the caller doesn't really care. | ||
Just log it in the recommender service. */ | ||
} | ||
|
||
service FollowRecommendations { | ||
rpc GetFollowRecommendations(FollowRecommendationRequest) returns (FollowRecommendationResponse); | ||
rpc UpdateFollowRecommendations(UpdateFollowRecommendationsRequest) returns (UpdateFollowRecommendationsResponse); | ||
} |
Oops, something went wrong.