Skip to content

Conversation

ryanolee
Copy link

@ryanolee ryanolee commented Sep 7, 2025

Supersedes #1655 targeting v4.6 instead of v5
| 🎫 Issue | IBX-10375 |
|----------------|-----------|

What

This PR intruduces a new method to eZ validators called "getValidatorName" which returns a reliable stable refernce to the name of the given validator. This PR also updates to references where the validator names are pulled.

Why

In production mode only references to the validator.constructor.name are mangled into random letters.

image

In eZ 3.3 decisions about what errors to show in the page builder are predicated on the field-set these validator names rely on.

How

By moving to a hard coded string the minified JS does not effect the names of validators as given.

Copy link

sonarqubecloud bot commented Sep 7, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
16.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@dew326 dew326 requested a review from a team September 8, 2025 07:18
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.

2 participants