neos-development-collection icon indicating copy to clipboard operation
neos-development-collection copied to clipboard

FEATURE: More flexible id for NodeAggregate

Open dfeyer opened this issue 1 year ago • 6 comments

Is there an existing issue for this topic?

  • [X] I have searched the existing issues

Description

This issue is a follow-up on https://discuss.neos.io/t/rfc-non-uuid-node-identifiers/1997/16

It should be possible to use a more flexible ID for nodes. In many cases, Neos collaborate with external systems, which requires data synchronization. Being able to use arbitrary IDs can help a lot with this process.

Possible Solution

An acceptable solution can be to loosen a bit the current regexp used in NodeAggregateId with the following one:

/^[a-zA-Z0-9-_.]{1,64}$/

  • the limit of 64 can be discussed regarding index performance
  • capital letters allow the support of base58 or nanoid
  • dot and underscore are pretty common, by ex. ContentFull

dfeyer avatar Jun 02 '24 10:06 dfeyer