craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.29k stars 638 forks source link

Reordering a structure does not change the uri on globe icon #2692

Open bartrylant opened 6 years ago

bartrylant commented 6 years ago

Description

When dragging structure items around (making children or children's children) the uri's from the globe icon don't change.

Steps to reproduce

  1. Drag an item in a structure to the right so it becomes a child of the entry above
  2. Click the globe icon on the right
  3. Still goes to the old uri, not the new uri

Additional info

brandonkelly commented 6 years ago

Yeah this is a known issue. The problem is that the URIs are updated via a queue job, rather than immediately after the reorder is complete. So unless we start polling for changes (which would be expensive), it's not really possible for us to fix it.

I'll leave the issue open, though, as it's a legit bug.

Tyrannogyna commented 5 years ago

I am not sure if it might be related, but:

We have a structure with different levels: section types (3 of them) and under one of them we have brands, which have nested year which have nested models.

All the structure is pointing to a template and we just have different entry types.

But I renamed the folder in which that template is located and after updating the section (and waiting a long while after for the queue to finish the rename), every single time I get: First two sections and child pages get correctly updated, but for the 3rd section only the first brand gets fully updated and all the other brands lose the parent and the URI is all wrong for all remaining brands and child entries.

Let me know if you want me to open a proper bug issue.

brandonkelly commented 5 years ago

@Tyrannogina Pretty hard to know where to start without that. Can you send us a ticket from your Craft Support widget on your Dashboard?