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

Education Graduation Date Cannot be Set to "I'm Still Studying" #221

Open
nebilua opened this issue Jul 11, 2024 · 1 comment
Open

Education Graduation Date Cannot be Set to "I'm Still Studying" #221

nebilua opened this issue Jul 11, 2024 · 1 comment
Labels

Comments

@nebilua
Copy link

nebilua commented Jul 11, 2024

When you press the button that says "Im still studying", it doesnt work.

According to mansoor its because the database doesnt accept anything thats null. or something idk.

@itsmohmans itsmohmans added the 🛠 goal: fix Bug fix label Aug 11, 2024
@itsmohmans itsmohmans changed the title Education button not working Education Graduation Date Cannot be Set to "I'm Still Studying" Aug 11, 2024
@itsmohmans
Copy link
Member

To reproduce:

  1. Login into your community account
  2. Go to your profile and add a new entry to the Education section
  3. Check the I'm Still Studying checkbox under Graduation Date
  4. Click Add
  5. Refresh
    The new education entry won't be added.
    Open the devtools and notice the POST request sent for that entry:

REQUEST

{
  "institution_name": "TEST",
  "degree": "TEST DEGREE",
  "graduated": null
}

RESPONSE

{
  "url": "/api/member/create/education",
  "statusCode": 500,
  "statusMessage": "Internal Server Error",
  "message": "[POST] \"https://community.api.prod.josa.ngo/v2/education\": 500 Internal Server Error",
  "stack": "",
  "data": {
    "message": "EDUCATION.POST.ERROR",
    "statusCode": 500
  }
}

This is the error on the server side:

ERROR [EducationController] ERROR EDUCATION POST: null value in column "graduated" of relation "education" violates not-null constraint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants