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

Mock rep v2 in author profile #1635

Merged
merged 4 commits into from
Jun 18, 2024
Merged

Mock rep v2 in author profile #1635

merged 4 commits into from
Jun 18, 2024

Conversation

koutst
Copy link
Contributor

@koutst koutst commented Jun 17, 2024

No description provided.

@koutst koutst requested a review from a team as a code owner June 17, 2024 19:23
@@ -1050,6 +1050,7 @@ def get_coauthor(self, coauthor):
class DynamicAuthorProfileSerializer(DynamicModelFieldSerializer):
institutions = SerializerMethodField()
coauthors = SerializerMethodField()
reputations = SerializerMethodField()
Copy link
Contributor

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)

"hub_id": 1,
"hub_name": "Cell Biology",
"hub_slug": "slug-1",
"score": 1982000,
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nvm, updated.

@koutst koutst merged commit 60ed22e into master Jun 18, 2024
1 check passed
@koutst koutst deleted the mock-rep-v2-in-author-profile branch June 18, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants