When I was starting out my project I used UID field to play around and later, I removed it.
Unfortunately it stays in the fetched page data for some reason. I need to get rid of it from single page types as it interferes with my dynamic sitemap generation.
How can I make sure that UID is gone from the page data? For master locale AND for alternate languages? I have no use for it but it stops me from doing certain things with my code.
Example on 'home_page', the UID field does not exist on this type in my model as I'm not using it for anything.
@dmakos the issue has now been resolved. However, to ensure it is working correctly, the user must update and save the page to ensure the UID is removed from the API.
@guy.proops
Hey, I had some time today to look at this - I saved the pages and republished them but I still get non-existing UIDs in 'alternate_languages' from the API:
The uid on the page document is showing as 'null' now though - just need to get alternate_languages sorted now please - this is causing me a lot of headaches for single page types!
Hi @dmakos , to fix this for alternate_languages is more complex than initially anticipated.
It will introduce the following breaking change to the API. Before: If you had at some point in time a UID in your custom type and then removed it, the document will keep its UID forever. After: The UID is removed from the document.
The breaking change is that some users may have written code assuming that the UID is always there even if it should always have been considered optional.
As a first step, we need to study the impact to see how many users this affects. Once we have more data, we'll be able to update you with what the next steps are.