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(leaderboard): add leaderboard endpoint #32

Merged
merged 1 commit into from
May 14, 2024
Merged

Conversation

luuh-oliveira
Copy link
Contributor

@luuh-oliveira luuh-oliveira commented May 14, 2024

Objetivo

Criação de endpoint para buscar pontuação de alunos por turma.

Implementação

Criação de novo endpoint e classes para busca das informações.

Screenshots

image

Exemplo de resultado da request


🚀 This description was created by Ellipsis for commit dcbb969

Summary:

This PR adds a new endpoint to fetch a classroom's leaderboard, sorted by student scores, along with necessary backend updates.

Key points:

  • Added getLeaderBoard endpoint in ClassroomController.
  • Introduced UserScoreDTO for leaderboard data transfer.
  • Updated User entity with profilePicture.
  • Added query in UserRepository to fetch students by score.
  • Implemented score retrieval in UserService.
  • Added mapping in ClassroomService to convert entities to DTOs.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to dcbb969 in 1 minute and 5 seconds

More details
  • Looked at 131 lines of code in 6 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_8prcYSvX6YHdpZYh


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

6 days left in your free trial, upgrade for $20/seat/month or contact us.

@ribgu ribgu merged commit 4047133 into main May 14, 2024
2 checks passed
@ribgu ribgu deleted the feat/leaderboard branch May 14, 2024 21:56
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