- πΉπ·Turkey emircan erkul Turkey
Can't we get some from ConfigEntityStorage::MAX_ID_LENGTH and use for machine names? 32+16=48 would be sweet spot IMO and ConfigEntityStorage::MAX_ID_LENGTH become 166-16=150
- πΊπΈUnited States seanr
I got curious as to the underlying reason for this limit and of course found it in the API docs - seems to be a file system limit:
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Config%21...
Most file systems limit a file name's length to 255 characters, so ConfigBase::MAX_NAME_LENGTH restricts the full configuration object name to 250 characters (leaving 5 for the file extension). The config prefix is limited by ConfigEntityType::PREFIX_LENGTH to 83 characters, so this leaves 166 remaining characters for the configuration entity ID, with 1 additional character needed for the joining dot.
Not going to change the issue status myself, but perhaps this should be won't fix?
- π¦πΉAustria maxilein
It is still too short to reflect a naming convention that makes sense in a broader context on a complex site...
Not even windows is fixed to 255 limt anylonger...
And what does a table field size have to do with the filesystem anyway? - πΊπΈUnited States seanr
@maxilein - the reason has to do with config being exported to files, for example:
simple_sitemap_engines.bundle_settings.taxonomy_term.leadership_filter.yml
- π¦πΉAustria maxilein
Most modern file systems have longer naming possibilities.
And why not use standardized abbreviations for common Drupal constructs: like
bundle_settings.taxonomy_term
could as well bebs.tt
then you would have much more room for an intuitive naming convention that reflects the individual aspects of a site. - πΊπΈUnited States seanr
I strongly oppose abbreviations like that, especially ones that short. You'd obviously end up with namespace collisions very easily, but even beyond that, it is extremely helpful to be able to know exactly what you're looking at in config exports. That sort of thing would completely obfuscate the system. And unnecessary obfuscation, just like ending a sentence with a preposition, is an offence up with which I shall not put! πππ