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

Deprecate Validators::validateEntityName() #6510

Merged
merged 1 commit into from
Oct 20, 2020

Conversation

phansys
Copy link
Member

@phansys phansys commented Oct 20, 2020

Subject

Deprecate Validators::validateEntityName().

I am targeting this branch, because this change respects BC.

Changelog

### Deprecated
- Method `Validators::validateEntityName()`.

@phansys phansys added the minor label Oct 20, 2020
@phansys phansys force-pushed the validators_entity_name branch from e0177d6 to cec6297 Compare October 20, 2020 12:05
@phansys phansys marked this pull request as ready for review October 20, 2020 12:16
@phansys phansys requested a review from a team October 20, 2020 12:16
VincentLanglet
VincentLanglet previously approved these changes Oct 20, 2020
@@ -51,6 +55,12 @@ public static function validateUsername($username)
*/
public static function validateEntityName($shortcut)
{
@trigger_error(sprintf(
Copy link
Member

Choose a reason for hiding this comment

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

Looks like there is a testcase which needs to be marked with @legacy

* NEXT_MAJOR: Remove this test.
*
* @group legacy
*
* @dataProvider getValidateEntityNamesWithExceptionTests
Copy link
Member

Choose a reason for hiding this comment

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

This getValidateEntityNamesWithExceptionTests() needs to be removed as well in the next major

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch.


### Deprecated `Sonata\AdminBundle\Command\Validators::validateEntityName()`

In version 3.77, the shortcut notation for model class names (`AppBundle:User`)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
In version 3.77, the shortcut notation for model class names (`AppBundle:User`)
In version 3.x, the shortcut notation for model class names (`AppBundle:User`)

until released? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Version 3.77 is already released.

@phansys phansys force-pushed the validators_entity_name branch from 7ab36c6 to c629c0c Compare October 20, 2020 12:53
@VincentLanglet VincentLanglet merged commit 622d7b8 into sonata-project:3.x Oct 20, 2020
@VincentLanglet
Copy link
Member

Thanks @phansys

@phansys phansys deleted the validators_entity_name branch October 20, 2020 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants