Project-Books / book-project

Book tracker web app for book lovers
https://project-books.github.io/
GNU General Public License v3.0
482 stars 457 forks source link

Create statistics controller #890

Closed knjk04 closed 1 year ago

knjk04 commented 2 years ago

Describe the solution you'd like

We would like a statistics controller with endpoints to get

If there are multiple books with the same rating or page length, take the first one

image

Tests are required. For instance, we need to verify that we are including books in our calculations that belong to the logged-in user, not other users.

See our classes in the statistics package

Additional context

If you need help with anything, we'll be happy to help you over a GitHub Q&A discussion or our Slack workspace

lrvignesh commented 2 years ago

Hi @knjk04 - I would like to work on this!

knjk04 commented 2 years ago

Thanks, @lrvignesh! I'll assign it to you

knjk04 commented 2 years ago

Hi @lrvignesh, how are you getting on with this?

lrvignesh commented 2 years ago

Hi @knjk04, Apologies - Something came up at work. I should be able to make progress on this in this week.

knjk04 commented 2 years ago

Hi @lrvignesh. do you have an update on this? Is there anything we can help with?

knjk04 commented 2 years ago

@lrvignesh Unassigning at your private request

luisya22 commented 2 years ago

It should be one endpoint or multiple endpoints?

zantoichi commented 2 years ago

Hello! If this is still available @knjk04 I would love working on it.

brantheeman commented 2 years ago

I would like to give this solution a shot @knjk04

ravikant-pal commented 2 years ago

Hi @knjk04,

Thanks, Ravikant Pal

chandan13tiwari commented 2 years ago

Hi @knjk04 , I would like to work on this. I've read the code, I can make this StatisticsController to cover all the requirements. Please let me know if you want me to assign this issue. We'll discuss the approach then.

N-S-H commented 2 years ago

Hi @knjk04 , I would like to work on this. Please let me know if you want to assign this issue to me

ayushdubey755 commented 2 years ago

Hi @knjk04 Finally I found a project of my domain, can I contribute for Statistics controller. I usually work on springboot for more than a year this will be my great start in terms of open source contribution that will add some value to your project. Assign me if you are ok so that i can start analysing the code workflow

rremiao commented 2 years ago

Hi @knjk04 me and a couple other fellow colleagues will be working on this issue in the next few months! Hope our final implementation suits your needs when we eventually make the merge request!

saket2001 commented 2 years ago

Hello @knjk04 is this issue still available for contribution ?

chojnackia commented 2 years ago

Hi guys, i see some of you already wanted to start or even started to work on this, so let me know if you would abandon this :D

AdityaMY007 commented 2 years ago

Hi @knjk04, @chojnackia I will be happy to work on this issue, please let me know if this issue still available for contribution ?

hakimamarullah commented 2 years ago

Hi @knjk04, I would like to work on this. Is this issue still open for contribution? Thank you

sharmasiddarth commented 2 years ago

Is this issue still open ? I would like to work on this. Please let me know.

bayotheman commented 2 years ago

Hi @knjk04, I would like to work on this issue if it's still available for contribution, Thanks.

OkoroaforKelechiDivine commented 2 years ago

If this issue is still open, please I will like to take up on everything.

SwethaTamatam commented 1 year ago

Hi @knjk04, I would like to work on this issue. Please let me know if it is available. Thank you

sambhavk commented 1 year ago

Hi @knjk04 , I have done the backend changes commit.

PFB one of the curl req and resp -

Req: curl --location --request GET 'localhost:5000/books/most-liked' \ --header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1c2VyQHVzZXIudXNlciIsImF1dGhvcml0aWVzIjpbeyJhdXRob3JpdHkiOiJVU0VSIn1dLCJpYXQiOjE2NjgyNDI2NzQsImV4cCI6MTY2ODgxNjAwMH0.ssh4HQcN3sK0bVOKt-jVwJIBuWlFdOjJvTFj0LmcxgnNb6NdI6fpf5518MfC4GNWqVeygdC-_xH9v_-hkl2Q0g'

Resp: { "title": "Harry Potter and the Order of Phoenix", "numberOfPages": 612, "pagesRead": 773, "bookGenre": [ "Fairy tale" ], "bookFormat": null, "seriesPosition": 8, "edition": null, "bookRecommendedBy": "Thomas", "isbn": null, "yearOfPublication": 2001, "author": { "fullName": "Robert Galbraith" }, "predefinedShelf": { "shelfName": "Read" }, "userCreatedShelf": null, "tags": [ { "name": "Adventure" } ], "publishers": [ { "name": "Scholastic Corporation" } ], "rating": "9.5/10", "dateStartedReading": "2022-11-10", "dateFinishedReading": "2022-11-12", "bookReview": "Must Read Book. Really Enjoyed it" }

I would like to complete the remaining frontend work as well. You can assign it to me if it is available. Thank you!

nunzioono commented 1 year ago

Is this feature still assignable?

chavikram commented 1 year ago

Hii @knjk04 I would like to work on this issue . Is this still open ?

nunzioono commented 1 year ago

I'm waiting to work on it too @knjk04

nunzioono commented 1 year ago

However seems someone maybe solved it before us, at least in the comments that's what is written

stale[bot] commented 1 year ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

knjk04 commented 1 year ago

Hi all, apologies for the very late response in getting back to all of you.

It's great to see that so many of you were interested in working on this!

Unfortunately, I will be archiving this project as I no longer have the time to maintain it. Thank you so much for offering to work on this!