zesty-io / manager-ui

Content platform powering enterprise websites and applications
https://www.zesty.io
Other
37 stars 5 forks source link

Schema: Able to select child models as it's model parent. #2580

Open kharljhon14 opened 4 months ago

kharljhon14 commented 4 months ago

Describe the bug Was able to select child models as it's model parent. When setting the model parent to it's own child model it would freeze the website.

To Reproduce Steps to reproduce the behavior:

  1. Select Dataset model parent to Invoicepage
  2. Select Single page model parent to Invoices
  3. Click Save

Expected behavior Should not be able to select child models as it's parent model

Screenshots image image

giseleblair commented 3 months ago

@kharljhon14 please clarify further what the issue is. There is not a clear understanding of what the problem is here.

kharljhon14 commented 3 months ago

@giseleblair when setting the model parent in relation to each other, it causes the website to freeze. Even after reloading the website, the freeze persists. Let me know if you need further clarification.

https://github.com/zesty-io/manager-ui/assets/44658751/313a9c98-befd-4c1e-bb15-7e919a136cd5

zcolah commented 3 months ago

@glespinosa We have got @giseleblair's permission to move forward with the following solution: In the Model parent dropdown, please hide a model that is child to the parent in the dropdown for selecting a model parent.

glespinosa commented 3 months ago

@glespinosa We have got @giseleblair's permission to move forward with the following solution: In the Model parent dropdown, please hide a model that is child to the parent in the dropdown for selecting a model parent.

Alright @zosh thanks for letting me know. Will check on this