Limit the length of the plugin name when generating a plugin #9275
Labels
answered
For when a question was asked and we referred to forum or answered it.
Help wanted
Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Milestone
Ideally we would also check the length when someone wants to publish a plugin on the marketplace but think it is not needed since we always recommend to use
generate:plugin
.Background: If the plugin name is too long we won't be able to execute UI tests or possibly even System tests. When executing the UI tests for a plugin we create a new database in the format of
$pluginName_$fixtureName
. MySQL limits the number of allowed characters for a database name to 64. So if the plugin name is already 50 characters long one doesn't have many characters left for a possible fixture name. If plugin name is >= 64 characters one cannot create UI tests at all.I'd suggest to limit plugin name to 40 characters max. At least in the plugin generator. 40 characters should be long enough to define a meaningful plugin name (such as
PageUrlReportWithoutExtractedValue
which has 35 characters)The text was updated successfully, but these errors were encountered: