Skip to content

Conversation

@t2d
Copy link
Contributor

@t2d t2d commented Sep 4, 2025

Add an optional note to random aliases during creation to help memorize their purpose
image

@t2d t2d force-pushed the alias-note branch 2 times, most recently from 6494877 to ce7c663 Compare September 4, 2025 19:42
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 4, 2025

@t2d t2d marked this pull request as ready for review September 4, 2025 19:50
protected ?string $destination = null;

#[ORM\Column(length: 255, nullable: true)]
#[Assert\Length(max: 255)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For whatever reason, we used to do validation directly in the entity. But that's not the typical approach. Form models are designed for that. While this is already incorrect in the existing code, it should be adjusted.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I would reduce the validation to 30-50 characters, otherwise we'll have to make adjustments to the design to accommodate a possible 255 characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants