Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Since #2688945: Allow removing a module's content entities prior to module uninstallation is finally in, we need to remove our custom pre-install/delete forms added from this issue #2609782: Trouble deleting and removing Paragraphs - can't uninstall .
Proposed resolution
- remove the form and related uninstall code in the .yml files form that commit
- keep and update the test to make it to work as core does now: to safely uninstall, go first to Extend > Uninstall, there should be a link that redirect to the prepare uninstall page for Paragraphs module
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#17 | remove_paragraphs-2773401-17.patch | 4.65 KB | Ginovski |
#17 | interdiff-2773401-15-17.txt | 1.11 KB | Ginovski |
#15 | remove_paragraphs-2773401-15.patch | 4.69 KB | Ginovski |
#10 | remove_pre_uninstall-2773401-10.patch | 4.69 KB | Ginovski |
#10 | interdiff-2773401-3-10.txt | 666 bytes | Ginovski |
Comments
Comment #2
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commentedComment #3
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commentedDeleted the uninstall form and accordingly the link and routing from it.
Configured the test coverage.
Comment #4
BerdirNice, looks good.
I think we're going to postpone this on the 8.2.0 release, but nice to see that this works well.
Comment #5
johnchqueIndeed, looks nice even though we have to wait until 8.2.0
Just small leftover:
Some wrong indentation here.
Comment #6
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commentedDeleted the extra spaces.
Comment #10
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commentedIgnore comment #6, now I removed the extra spaces.
Comment #14
miro_dietikerFYI this is based on an 8.2 core feature, thus will be postponed for the 8.2 release.
Comment #15
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commentedRe-applying patch after the new core feature.
Comment #16
tduong CreditAttribution: tduong at MD Systems GmbH commentedJust tiny nitpicks:
I would move this line under the "Delete paragraphs data." block ...
... and move this line under the "Uninstall the paragraphs module." block.
Comment #17
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commentedApplied 1. and 2.
Comment #18
miro_dietikerCommitted.