Skip to content

Conversation

@tbialcz
Copy link
Contributor

@tbialcz tbialcz commented Jun 11, 2025

🎫 Issue IBX-8697

Related PRs:

Description:

This PR introduces validation rules for the Keyword field type values to ensure data integrity within content entries. Specifically:

  • Validates that each keyword is a string.
  • Enforces maximum length constraints on keywords.
  • Adds comprehensive unit tests covering valid and invalid cases for KeywordValue.
  • Improves error reporting by returning clear ValidationError instances on validation failure.

@tbialcz tbialcz changed the base branch from main to 4.6 June 11, 2025 11:50
@tbialcz tbialcz requested a review from a team June 11, 2025 11:54
@ezrobot ezrobot requested review from Steveb-p, ViniTou, adamwojs, alongosz, barw4, ciastektk, mikadamczyk and wiewiurdp and removed request for a team June 11, 2025 11:54
…ype safety and removed obsolete PHPStan baseline rules
@tbialcz tbialcz requested a review from konradoboza June 16, 2025 06:41
@barbaragr barbaragr self-assigned this Jun 24, 2025
Copy link

@barbaragr barbaragr left a comment

Choose a reason for hiding this comment

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

Error 500 does not occur anymore, but after clicking publish button there is page is reloaded, image disappears from field and nothing more happened. I can see that field validation blinks very fast. :)
https://github.com/user-attachments/assets/2552f979-8ae6-4b11-aa50-439a8681ed61

@barbaragr
Copy link

If it validates that each keyword is a string should it be possible to type those keywords?
Screenshot 2025-06-24 at 11 09 17

@sonarqubecloud
Copy link

@tbialcz tbialcz merged commit e8e73c7 into 4.6 Jun 30, 2025
26 checks passed
@tbialcz tbialcz deleted the ibx_8697 branch June 30, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants