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

fix:Fix Null Name Constraint Violation testimonial #622

Open
4 tasks
nyainda opened this issue Feb 27, 2025 · 0 comments
Open
4 tasks

fix:Fix Null Name Constraint Violation testimonial #622

nyainda opened this issue Feb 27, 2025 · 0 comments

Comments

@nyainda
Copy link

nyainda commented Feb 27, 2025

Description

Fix the 500 Internal Server Error caused by an integrity constraint violation when creating testimonials with a null name value.

Acceptance Criteria

  • POST /testimonials succeeds even if user name is null
  • Fallback logic uses username or "Anonymous User" when name is null
  • No 500 errors occur during testimonial creation
  • Tests verify the fallback behavior

Purpose

Resolves a critical bug blocking testimonial creation when user profiles lack a name, improving system reliability.

Requirements

  • Update TestimonialController to handle null names
  • Laravel framework with MySQL

Expected Outcome

Users can create testimonials without errors, with a fallback name displayed if their profile name is missing.

Additional Context

  • Current error screenshot: testmony
  • Priority: High - Blocks core functionality
@bhimbho bhimbho self-assigned this Feb 27, 2025
@bhimbho bhimbho removed their assignment Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants