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

[BUG] Null Values Returned for Book and Member When Borrowing a Book #23

Open
1 task done
ajaynegi45 opened this issue Sep 5, 2024 · 8 comments
Open
1 task done
Assignees
Labels
bug Something isn't working good first issue Good for newcomers gssoc GirlScript Summer Of Code gssoc-ext hacktoberfest hacktoberfest-accepted level1 GirlScript Summer Of Code - 15 points status: ready for dev You can asked for this issue to be assigned (if not already assigned)

Comments

@ajaynegi45
Copy link
Owner

ajaynegi45 commented Sep 5, 2024

Is this a new issue?

  • I have searched "open" and "closed" issues, and this is not a duplicate.

Bug Description

When borrowing a book via the POST request to http://localhost:8080/api/borrowings, the response contains null values for both the book and member details. The expected behavior is to return the complete details of the book and member, but instead, the following response is received:

{
    "borrowingId": 1,
    "book": {
        "bookId": 2,
        "title": null,
        "author": null,
        "isbn": null,
        "publisher": null,
        "publishedYear": 0,
        "genre": null,
        "copiesAvailable": 0
    },
    "fine": null,
    "member": {
        "memberId": 2,
        "name": null,
        "email": null,
        "password": null,
        "role": null,
        "membershipDate": null
    },
    "borrowDate": "2024-09-05T17:37:49.623+00:00",
    "dueDate": "2024-09-20T17:37:49.623+00:00",
    "returnDate": null
}

Steps to Reproduce

  1. Borrow a book by sending a POST request to http://localhost:8080/api/borrowings with valid book and member data.
  2. Check the response body for book and member details.

Expected Behavior

  • The response should contain the correct book and member details, such as title, author, ISBN, and member name, email, etc.
@ajaynegi45 ajaynegi45 added status: awaiting triage Waiting for maintainers to verify (please do not start work on this yet) status: ready for dev You can asked for this issue to be assigned (if not already assigned) bug Something isn't working good first issue Good for newcomers hacktoberfest-accepted hacktoberfest and removed status: awaiting triage Waiting for maintainers to verify (please do not start work on this yet) labels Sep 5, 2024
@ajaynegi45 ajaynegi45 pinned this issue Sep 5, 2024
@shreyamaheshwari1
Copy link
Contributor

shreyamaheshwari1 commented Oct 1, 2024

I want to work on this issue with the label gssoc. Could you please assign me this .

@ajaynegi45
Copy link
Owner Author

I want to work on this issue with the label gssoc. Could you please assign me this .

Hi @shreyamaheshwari1,

Thank you for expressing your interest in working on the "Null Values Returned for Book and Member When Borrowing a Book" issue. I'm delighted to inform you that I have assigned this issue to you. Your willingness to contribute to our project is much appreciated.

Feel free to start working, and if you have any questions or need assistance during the process, please don't hesitate to reach out.

@ajaynegi45 ajaynegi45 added the gssoc GirlScript Summer Of Code label Oct 1, 2024
@Shetu003
Copy link

Shetu003 commented Oct 1, 2024

Hello Sir, Could you please assign me this issue.

@ajaynegi45
Copy link
Owner Author

Hello Sir, Could you please assign me this issue.

Hi @Shetu003,

Thank you for expressing your interest in working on the "Null Values Returned for Book and Member When Borrowing a Book" issue. However, this issue is currently being worked on by another contributor, shreyamaheshwari1 . You can explore other issues in our repository or check out our other projects under the GirlScript Summer of Code and Hacktoberfest.

Here are the links to explore:
https://bento.me/ajaynegi

Feel free to reach out if you have any questions or need guidance on where to start. We're excited to have your contributions!

@jiwansh
Copy link

jiwansh commented Oct 2, 2024

Hi Sir ,I would love to work on this issue with the GSSoC label. Could you kindly assign it to me, please?

@shreyamaheshwari1
Copy link
Contributor

shreyamaheshwari1 commented Oct 6, 2024

Hello @ajaynegi45 sir ,
Sir can this be considered as Level1 the pr has been merged already ?

@ajaynegi45 ajaynegi45 added the level1 GirlScript Summer Of Code - 15 points label Oct 7, 2024
@ajaynegi45
Copy link
Owner Author

ajaynegi45 commented Oct 7, 2024

Hello @ajaynegi45 sir , Sir can this be considered as Level1 the pr has been merged already ?
@shreyamaheshwari1
No the pr is not merged

@Swathireddy-22
Copy link

@ajaynegi45 kindly assign work to me sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers gssoc GirlScript Summer Of Code gssoc-ext hacktoberfest hacktoberfest-accepted level1 GirlScript Summer Of Code - 15 points status: ready for dev You can asked for this issue to be assigned (if not already assigned)
Projects
None yet
Development

No branches or pull requests

6 participants
@ajaynegi45 @shreyamaheshwari1 @jiwansh @Shetu003 @Swathireddy-22 and others