Creating multiple subresources with the same path causes a bug later, when selecting the subresource in a subresource field, because they are identified by their path, and hence multiple items will appear as selected.
Solution
Long term: probably rethink the subresource model, and use a unique identifier to identify them and store them.
Short term: prevent creation of subresources with the same path by adding a client-side validation.
This is what this PR does.
Problem
Creating multiple subresources with the same path causes a bug later, when selecting the subresource in a subresource field, because they are identified by their
path
, and hence multiple items will appear as selected.Solution
Long term: probably rethink the subresource model, and use a unique identifier to identify them and store them.
Short term: prevent creation of subresources with the same path by adding a client-side validation. This is what this PR does.