- Issue created by @mayur-sose
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
The API response already is a 409, which conveys "conflict". That happened in π ApiConfigControllers::post() should detect a conflicting ID and throw a 409 exception Active , to address @balintbrews' #3503547-2: Display validation errors in dialogs that create XB config entities (code component, section) β .
This is a subset of π Add (validation) error handling to AddCodeComponentDialog and friends Active . I'm tempted to mark this a duplicate, but actually, this probably deserves its own UX, so keeping it separate makes sense?
- πΊπΈUnited States hooroomoo
Hm I'm not sure how you got the error for giving an existing name of a standard/dynamic component to a jS component, because the machine name/ID for a JS component gets appended with a "js" so if you named a JS component Breadcrumbs, then its id would be "js.breadcrumbs" therefore avoiding any conflicts.
It is by design for js components to not be allowed to have the same name. I am therefore marking this issue closed (works as designed).
https://www.drupal.org/project/experience_builder/issues/3520071#comment... β¨ Show human readable error messages when creating component fails Active will add the "js_component' entity with ID 'image' already exists." to render in the dialog, so the user will also see it right away now.