book-project icon indicating copy to clipboard operation
book-project copied to clipboard

Create statistics controller

Open knjk04 opened this issue 3 years ago • 20 comments

Describe the solution you'd like

We would like a statistics controller with endpoints to get

  • the most liked book
  • the least liked book
  • the longest read book
  • the most read genre (books that have been marked as 'read')
  • average rating given to read books
  • most liked genre
  • average page length for read boks

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

  • Be sure to read the contributing guidelines first!
  • Discuss your implementation approach with us before we assign you to it
  • Provide us with an estimate on how long you think it will take you to complete
  • Branch from main and set main as the destination branch in your pull request

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

knjk04 avatar Jan 28 '22 12:01 knjk04

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

lrvignesh avatar Mar 12 '22 12:03 lrvignesh

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

knjk04 avatar Mar 12 '22 17:03 knjk04

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

knjk04 avatar Mar 19 '22 14:03 knjk04

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

lrvignesh avatar Mar 22 '22 17:03 lrvignesh

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

knjk04 avatar Apr 01 '22 11:04 knjk04

@lrvignesh Unassigning at your private request

knjk04 avatar Apr 04 '22 18:04 knjk04

It should be one endpoint or multiple endpoints?

luisya22 avatar May 06 '22 21:05 luisya22

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

zantoichi avatar Jun 24 '22 22:06 zantoichi

I would like to give this solution a shot @knjk04

brantheeman avatar Jun 29 '22 04:06 brantheeman

Hi @knjk04,

  • I have read the requirements and believe I can make this a reality.
  • If it is available please give me a chance.

Thanks, Ravikant Pal

ravikant-pal avatar Jul 05 '22 02:07 ravikant-pal

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.

chandan13tiwari avatar Jul 11 '22 17:07 chandan13tiwari

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

N-S-H avatar Jul 30 '22 08:07 N-S-H

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

ayushdubey755 avatar Aug 02 '22 09:08 ayushdubey755

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!

rremiao avatar Aug 16 '22 22:08 rremiao

Hello @knjk04 is this issue still available for contribution ?

saket2001 avatar Aug 17 '22 05:08 saket2001

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

chojnackia avatar Aug 18 '22 16:08 chojnackia

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

AdityaMY007 avatar Aug 28 '22 04:08 AdityaMY007

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

hakimamarullah avatar Sep 02 '22 11:09 hakimamarullah

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

sharmasiddarth avatar Sep 18 '22 10:09 sharmasiddarth

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

bayotheman avatar Oct 05 '22 04:10 bayotheman

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

OkoroaforKelechiDivine avatar Oct 06 '22 07:10 OkoroaforKelechiDivine

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

SwethaTamatam avatar Nov 01 '22 11:11 SwethaTamatam

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!

sambhavk avatar Nov 12 '22 15:11 sambhavk

Is this feature still assignable?

nunzioono avatar Nov 19 '22 12:11 nunzioono

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

chavikram avatar Nov 29 '22 03:11 chavikram

I'm waiting to work on it too @knjk04

nunzioono avatar Nov 29 '22 10:11 nunzioono

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

nunzioono avatar Nov 29 '22 10:11 nunzioono

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.

stale[bot] avatar Mar 29 '23 17:03 stale[bot]

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!

knjk04 avatar Apr 10 '23 09:04 knjk04