Inist-CNRS / lodex

Linked Open Data EXperiment
https://www.lodex.fr/
Other
53 stars 12 forks source link

Fix: Should not allow to create multiple subresources with the same path #1873

Closed slax57 closed 8 months ago

slax57 commented 8 months ago

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.

2024-01-30_18-22