Skip to content

London | 26-Jul-SDC | Roman Sanaye | Sprint 1| Purple Forest: Extra long blooms - #264

Open
RomanSanaye wants to merge 1 commit into
CodeYourFuture:mainfrom
RomanSanaye:purple-forest-extraLongBlooms
Open

RomanSanaye wants to merge 1 commit into
CodeYourFuture:mainfrom
RomanSanaye:purple-forest-extraLongBlooms

Conversation

@RomanSanaye

Copy link
Copy Markdown

Task code : CYF-1168

What does this PR do?

  • Adds backend validation for the Bloom character limit.
  • Prevents users from submitting Blooms longer than 280 characters.
  • Keeps the existing frontend maxlength="280" validation.

Why is this change needed?

The frontend already limits Blooms to 280 characters, but the backend did not validate the length. This meant a Bloom longer than 280 characters could still be submitted directly to the backend.

How was it tested?

  • Tested a Bloom with exactly 280 characters — accepted.
  • Tested a Bloom with 288 characters — rejected with a 400 response.
  • Confirmed the existing frontend maxlength="280" remains in place.

Self-checklist

  • I have tested my changes.
  • I have checked that my changes follow the existing code style.
  • I have completed the required task.
  • I have removed unnecessary code/comments.
  • I am ready for review.

@RomanSanaye RomanSanaye added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 14, 2026
@RomanSanaye RomanSanaye changed the title London | 26-Jul-SDC | Roman Sanaye | Sprint | Purple Forest: Bug Report: Extra long blooms London | 26-Jul-SDC | Roman Sanaye | Sprint 1| Purple Forest: Bug Report: Extra long blooms Sep 14, 2026
@RomanSanaye RomanSanaye changed the title London | 26-Jul-SDC | Roman Sanaye | Sprint 1| Purple Forest: Bug Report: Extra long blooms London | 26-Jul-SDC | Roman Sanaye | Sprint 1| Purple Forest: Extra long blooms Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant