-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Model Parent value is not displayed in the "Update Model Parent" schema settings #1935
Comments
@b-estevez How did this happen? This is an erroneous state. A model should not have a 7- parentZuid. |
@agalin920 , those 3 headless models I was trying to remove the current parent model of each headless model but the current value of the parent model is "None". I also tried to save it with "none" as a parent model value but those 3 headless models are still under "Homepage" content item. |
@b-estevez try setting another model as a parent to get it out of that bad state and then select none. Its would also be great if you cam provide more information on how this instance got into that state and how to reproduce it |
We can take this ticket to better handle what we show there for invalid model zuids |
@agalin920 I also tried changing the parent model field to another single page model but it doesn't work. You can see how I did it from loom video link below: I don't know if the mechanics in changing a parent model value between new and old schema UI are different, but that is the only difference that I can capture. |
Right but i believe that is the expectation because there is a specific headless model section where they appear. Also this case is not a case schema will cause so you cannot select a 7- as a parent |
@agalin920 according to the API we should be allowed to select a 7- item (so long as that's a single page model) https://www.loom.com/share/bbd3d2241b0c417baccaa5a96cd65032 |
@giseleblair So then in the model parent dropdown select we also need to list all the single page model items? Im guessing env/nav endpoint can be leveraged to reduce api call count |
@agalin920 yes, that sounds like a good approach |
@theofficialnar I know discussed this the other day. Let's move forward with it |
@agalin920 gotcha, I'll change the dropdown options of the parent zuid to the values from |
Hey @giseleblair, just wanted to confirm something as I have stumbled on this while testing out the fix. I noticed that updating the parent model of an already existing single page model doesn't change where it is nested in the content nav tree, it just stays on where it was originally on the content nav, it doesn't matter what the selected parent model's type is. I had to manually change that single page item's path under seo & meta for it to be nested correctly on the content nav. It's also worth noting that I'm already using the correct parentZUIDs from I tried on both new and old schema and it behaves the same way for single page models, changing the model parent doesn't change where that single page model is on the content nav tree. Recording.2023-03-27.141123.mp4 |
@theofficialnar |
@theofficialnar please also test with multi-lang enabled |
@giseleblair Here's what happens to the item's location in the content nav tree on both old and new schema after the model's parent has been changed. Old Schema: New Schema So it seems like Single Page items really just stay where they are on the content app's nav tree even after changing its model's parent schema since it behaves the same way on both old and new schema. I'm not exactly sure if that's the expected behavior but after checking old schema it's behaving exactly the same way for Single Page. |
Instance Zuid: 8-ac91ad86e9-txcblw
As we can see in the image below, all headless models are all under of "Homepage" single page model:

also looking from the api, those headless models have a parentZUID value: "7-c8fbcdd3a1-wrn5jp"which is the item zuid of the Homepage



But in the schema settings under Info, those headless models have no parent model (sample image below):
Because of this, the user cannot update the parent model of a specific model.
Please feel free to reach out for more details in regards to this.
The text was updated successfully, but these errors were encountered: