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

feat: order contributors list on the project details page by the last activity (the latest active ones on top) gf-533 #537

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

Vitaliistf
Copy link
Collaborator

Changed retrieving of contributors list by project from backend to be ordered by date.

Screenshot 2024-09-25 at 18 09 23

@@ -125,7 +125,8 @@ class ContributorRepository implements Repository {
.where("projects.id", projectId)
.whereNull("contributors.hiddenAt")
.groupBy("contributors.id")
.withGraphFetched("gitEmails");
.withGraphFetched("gitEmails")
.orderBy("last_activity_date", "desc");
Copy link
Collaborator

Choose a reason for hiding this comment

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

use enum

Suggested change
.orderBy("last_activity_date", "desc");
.orderBy("last_activity_date", SortType.DESCENDING);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, right🤦‍♂️ Thanks!

@liza-veis liza-veis merged commit 7286b31 into main Sep 25, 2024
5 of 6 checks passed
This was referenced Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

3 participants