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

Display reviews count on teams main page #313

Merged
merged 2 commits into from
Jul 16, 2023

Conversation

Poslovitch
Copy link
Contributor

@Poslovitch Poslovitch commented Jul 16, 2023

Related: #199

Would happily get some feedback on this one, before I start doing it for the user and thing pages. :)

image

Poslovitch and others added 2 commits July 16, 2023 15:43
Looking up the join directly is a bit cheaper, and we only need to do it
if we have specified that we want review data.
@eloquence
Copy link
Owner

Thanks @Poslovitch. I've pushed a commit which should preserve functionality and simplify a bit by looking up the join relationship directly. (Doing a full join on all reviews for every team instantiation is potentially a bit expensive.) Let me know if that works for you as expected (it does for me) and I can merge.

I've also changed it from reviewsCount to reviewCount to be consistent with the review count we have for review subjects (things).

@Poslovitch
Copy link
Contributor Author

Poslovitch commented Jul 16, 2023

Thanks @eloquence ! It works on my end as well.

I'm glad to see there's a .count() operator in thinky. I somehow overlooked it.
Once merged, I'll carry on with the other suggestions of #199 :)

@eloquence eloquence merged commit 3dcb6bb into eloquence:master Jul 16, 2023
@Poslovitch Poslovitch deleted the count-reviews-of-teams branch July 16, 2023 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants