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: add max length validation for description field with user feedback in NewLesson form #427

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

typeWolffo
Copy link
Member

Overview

  • added validation for lesson content to match with DB limits
    Sentry

Screenshots

Before

image

After

image

@typeWolffo typeWolffo added the review me 👀 PR is ready to be reviewed label Mar 7, 2025
@typeWolffo typeWolffo self-assigned this Mar 7, 2025
…ck in NewLesson form
@typeWolffo typeWolffo force-pushed the jw_fix_text_lesson_validation branch from d342370 to cb170a3 Compare March 7, 2025 10:25
@typeWolffo typeWolffo marked this pull request as ready for review March 7, 2025 10:26
@mateuszszczecina
Copy link
Collaborator

I think we should also implement validation on backend side

@typeWolffo
Copy link
Member Author

@mateuszszczecina there was only BE validation so thats why the error occurs

@mateuszszczecina
Copy link
Collaborator

mateuszszczecina commented Mar 7, 2025

@typeWolffo I mean we should return a more descriptive error from the backend and a different error code than 500

@typeWolffo typeWolffo merged commit ea4c6af into main Mar 7, 2025
4 checks passed
@typeWolffo typeWolffo deleted the jw_fix_text_lesson_validation branch March 7, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review me 👀 PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants