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

Correct machine name maximum length for workflows, states, and transitions #25

Closed
dangur opened this issue Sep 13, 2018 · 3 comments
Closed
Labels

Comments

@dangur
Copy link

dangur commented Sep 13, 2018

Machine names can only be a maximum of 26 characters. Add validation to machine name columns with the custom formula =LEN($E:$E)<=26.

@TravisCarden
Copy link
Contributor

Hello, @dangur. The maximum length for all machine names that I know of is, in fact, 32. Machine names for fields created via the UI, however, include a prefix of "field_", which reduces their available length to 26. Is that what you're referring to? If so, be sure to include "field_" in the spreadsheet. Unfortunately, I can't just assume that all field machine names begin that way, because not all do. The out-of-the-box Body field, for example, has a machine name of "body".

@dangur
Copy link
Author

dangur commented Sep 13, 2018

I see @TravisCarden , so the formulas would need to be =LEN($E:$E)<=32 for fields and =LEN($C:$C)<=32 for bundles, menus, views, image styles, migrations, workflows, and user roles. The formulas for views displays, workflow states, and workflow transitions would be =LEN($D:$D)<=32.

@TravisCarden
Copy link
Contributor

I double checked, @dangur, and it turns out that Workflows, Workflow states, and Workflow transitions machine names (oddly enough) have a maximum length of 64 characters, so I updated those in the upstream sheet. Migrations aren't created via the UI, so their IDs don't have an obvious maximum length. (I'm sure there's a technical limit imposed somewhere deeper than I care to look at the moment. If you can turn one up and point me to it, I'll gladly add validation.) I think everything is correct now. Thanks!

@TravisCarden TravisCarden changed the title Machine Name Length Validation Correct machine name maximum length for workflows, states, and transitions Sep 19, 2018
@TravisCarden TravisCarden added the bug Something isn't working label Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants