The following modules will be completely uninstalled from your site, and all data from these modules will be lost!

Flag

Hello ive been caught out with this a few times now and have only really got problems with it now i want to update Flag Module as i have many Views that it is wanting to delete on uninstall. If i uninstall the module it wants to delete about 40 views. I presume i can go into each view and remove the flag bits from each view to then uninstall it but when i reinstall the new flag module i will just have to go back in and put all the flag bits together again.

Is there a way to not delete all my views on uninstall of the module or is there a way i dont have to edit each and every view?

Thanks

Comments

ressa’s picture

You don't have to uninstall or delete the module to update it... Or is there some information missing?

VM’s picture

sounds like you are working from a D7 and previous mentality where one would disable (not uninstall) a module to perform an update. You've tagged this thread with Drupal 8 in which modules can't be disabled and you don't uninstall it at all. Simply delete the old folder and replace with the new to insure that you don't leave any obsoleted/deprecated files behind.

fadgadget’s picture

thanks for the replies. I will do my best tp keep up.

The Flag module has changed its API and is requesting a complete reinstall of it. Are you saying i can just delete the files and fire the new one in, run update and that will work? i will go give it a try then.

ressa’s picture

You should create an issue in the modules' issue queue: https://www.drupal.org/project/issues/flag

VM’s picture

The Flag module has changed its API and is requesting a complete reinstall of it.

Where is this information found?

Why are you ignoring best practices and using alpha modules on a production site?

worst case, export the views to code and import after reinstall.

fadgadget’s picture

Im going to post this here and then post there.
https://www.drupal.org/node/2878616

I do believe a complete reinstall is required. I dont have a production site VM. Its just the one ive always had in 7yrs of not being open.

thanks for the export views tip. I think i will do that anyhow. Sick of losing views.

So just to confirm if i DO have to uninstall a module and it wants to rip Views blocks out then this is just natural?

thanks

VM’s picture

If it's the 'only' iteration of a site you have then I'd suggest it is your production site.

The answer to your question yes. The only way that I can think of to avoid the removal is to clone any views that aren't self generated (a best practice). Cloning before alteration should protect them from removal, though if the corresponding module being removed is significantly altered it is possible that the cloned views would need to be edited after a reinstallation.