CSA-AI / CSA_AI_Backend

The backend spring portfolio for the CSA_AI project
1 stars 0 forks source link

LeaderBoard For Users Performance Database #30

Open Krishiv111 opened 5 months ago

Krishiv111 commented 5 months ago

Creating a leaderboard for the users performance based on rating

Krishiv111 commented 4 months ago

LeaderBoard Key Features


Backend

Working Feature

USE OF SORTING IN THE ITTERATOR

Screenshot 2024-05-29 at 8 44 12 AM

SQL IMPLEMENTATION

Screenshot 2024-05-29 at 8 43 33 AM

POSTMAN REQUESTS

FRONTEND FETCH AND WORKING TABLE!

fe

ERRORS THAT WERE FACED!

  1. POM.XML; with working on different versions, since everyones codebase was constantly changing using wrong headers and imports often left dependencies to fail and build not working in the front-end, however this was fixed through better communication and better branch management. Screenshot 2024-05-28 at 7 02 04 PM

Image 5-28-24 at 7 00 PM

  1. Being able to have test data: every time we tried to make a postman request to post new data and later on make a get request so that it sorted the list by a specified attribute, we would get some sort of error, such as a 405 Not Allowed error or even an Internal Server Error. Later on, however, we found that this was because we were missing PostMapping in our API controller for the performance leaderboard, so we added that along with a new endpoint so that it could create new users. Now we are able to add users to the list along with their other attributes.

image (used the wrong endpoint and format when adding the data)