Problem/Motivation

After unistal mie_demo_base module all demo information still stored in data base.

Steps to reproduce

1) Uninstall mie_demo_base module
2) Install mie_demo_base module
3) Got error:
Unable to install Menu Item Extras Demo Base ... already exist in active configuration.

Proposed resolution

Create Uninstall Validator and delete Demo data.

Remaining tasks

1) Create Uninstall validator.
2) Create controller for delete data.
3) Create functions for delete data.

CommentFileSizeAuthor
#8 Error.png382.15 KBsandeep_k
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Serhii Morozov created an issue. See original summary.

serhii morozov’s picture

rollins made their first commit to this issue’s fork.

rollins’s picture

Version: 8.x-2.x-dev » 3.0.2
rollins’s picture

Assigned: serhii morozov » Unassigned
Status: Active » Needs review

I took this issue and was able to reproduce it locally.
After applying changes from Serhii Morozov I was still not able to install mie_demo_base after uninstalling the module.
Also, I saw that the maintainer of the module changed the version of the module for this issue.
So I added changes to fix the issue.
Now we can install mie_demo_base after uninstalling the module, and changes can be merged to the last module version.

taraskorpach made their first commit to this issue’s fork.

sandeep_k’s picture

StatusFileSize
new382.15 KB

@taraskorpach I've tested shared MR- MR !20 mergeable on the Drupal- 10.2 version, I was able to reproduce the issue & the patch was also applied successfully but the error was not fixed after applying the patch. Error attached.