-
Notifications
You must be signed in to change notification settings - Fork 20
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
Mock rep v2 in author profile #1635
Conversation
src/user/serializers.py
Outdated
@@ -1050,6 +1050,7 @@ def get_coauthor(self, coauthor): | |||
class DynamicAuthorProfileSerializer(DynamicModelFieldSerializer): | |||
institutions = SerializerMethodField() | |||
coauthors = SerializerMethodField() | |||
reputations = SerializerMethodField() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we change name to reputation_list
or a different name? I'm thinking we will also need a field called reputation
to indicate what the user's rep is (atm it is decided it will be the highest value in that list: max_val(reputations)
src/user/serializers.py
Outdated
"hub_id": 1, | ||
"hub_name": "Cell Biology", | ||
"hub_slug": "slug-1", | ||
"score": 1982000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This value is greater than the top bin value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update the bins in the next PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvm, updated.
No description provided.