![Announcement icon Announcement icon](https://cdn.statically.io/img/www.drupal.org/files/styles/grid-2-2x-square/public/announcements/drupal-evergreen-logo-280X280px%20%281%29_0.jpg?itok=PHpn6rCb)
Problem/Motivation
menu_link_content_uninstall() tries to delete all content menu links when it is uninstalled.
We now have validation in place that will never allow you to get that far, you have to delete the content first. There's still a problem with deleting content there, but we need a solution for other entity types as well and it will need to scale from the start.
Proposed resolution
Remove the file.
Remaining tasks
User interface changes
API changes
Original report by @catch
Follow-up from #2301317: MenuLinkNG part4: Conversion. This won't scale once you get past a couple of thousand menu links.
Comment | File | Size | Author |
---|---|---|---|
#6 | drupal8-remove-menu_link_content_uninstall-2312389-6.patch | 1.07 KB | er.pushpinderrana |
![Tag1 logo](https://cdn.statically.io/img/www.drupal.org/files/ads/tag1-issue-sponsorship.png)
Comments
Comment #1
tim.plunkettComment #2
BerdirThese are content entities. With the uninstall protection, is it even still possible for this to be doing anything?
Maybe we can just remove this function now? If so, then that's a trivial novice task.
I'll ask in #2278017: When a content entity type providing module is uninstalled, the entities are not fully deleted, leaving broken reference for someone to confirm this.
Comment #3
fagoyes, the uninstall validator will prevent this to run, so it can be removed. We'll need generic entity field purging (in a batch) if we want that to work again.
Comment #4
BerdirGreat, updated title and issue summary.
Comment #5
BerdirThis also makes it a normal bug I think.
Comment #6
er.pushpinderrana CreditAttribution: er.pushpinderrana commentedRemoved the file.
Comment #7
dawehnerJust ensured and we indeed have no tests for that.
Comment #10
Palashvijay4O CreditAttribution: Palashvijay4O commentedThe #6 patch applies cleanly and doesn't break anything . RTBC++ !! :)
Comment #11
webchickGreat catch!
Committed and pushed to 8.0.x. Thanks!