[QGIS-Developer] Revert Previous Plugin, disable "Upgrade All" and "Upgrade Plugin" buttons

Catania, Luke A ERDC-RDE-GRL-VA CIV Luke.A.Catania at erdc.dren.mil
Wed Jan 11 17:55:47 PST 2023


Thanks. I did think of that but am trying to avoid hundred if not thousands of users having to deal with a manual solution.  I think I have another work around I am testing.

From: Ismail Sunni <imajimatika at gmail.com>
Sent: Tuesday, January 10, 2023 10:46 PM
To: Catania, Luke A ERDC-RDE-GRL-VA CIV <Luke.A.Catania at erdc.dren.mil>
Cc: qgis-developer <qgis-developer at lists.osgeo.org>
Subject: Re: [QGIS-Developer] Revert Previous Plugin, disable "Upgrade All" and "Upgrade Plugin" buttons

Hi Luke,

You can install the previous version of the plugin by installing it from its zip file manually.

  1.  Go to the plugin page, (e.g. Blockedhttps://plugins.qgis.org/plugins/ViewshedAnalysis/Blocked)
  2.  Click the version tab
  3.  Click the version you want to install (e.g. Blockedhttps://plugins.qgis.org/plugins/ViewshedAnalysis/version/1.7/Blocked)
  4.  Download the plugin (a zip file)
  5.  Open Plugin Manager
  6.  Uninstall the plugin
  7.  Install from Zip
One possible way to disable the Upgrade All or Upgrade Plugin is to disable all the plugin repositories (i.e. Plugins -> Settings -> disable all repositories).

Hope this helps.

On Wed, Jan 11, 2023 at 9:49 AM Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer <qgis-developer at lists.osgeo.org<mailto:qgis-developer at lists.osgeo.org>> wrote:
I had a user that may have hit the "Upgrade All" button in the plugins window. Does that automatically upgrade all installed plugins to the newest version? If so is there a way to revert back to the previous versions. He may have just hit the Upgrade Plugin button for the specific plugin.  Not sure and I did not want to test it and mess up my configuration.

We have created our own QGIS plugin that relies on the VisibilityAnalysis plugin and upgrading VisibilityAnalysis from 1.7 to 1.8 breaks our tool as I created a my own Visibility Analysis UI to run the VisibilityAnalysis tool.  I basically want to prevent a user from upgrading any plugin that we access so that this does not happen.  Is there a way to disable "Upgrade All" and "Upgrade Plugin" buttons in the plugin window through settings, interface customization, or programmatically through python on QGIS using startup.py?

Thanks,
Luke
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer at lists.osgeo.org<mailto:QGIS-Developer at lists.osgeo.org>
List info: Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked
Unsubscribe: Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked


--
Ismail Sunni
Software Engineer
ismailsunni.id<Blockedhttp://ismailsunni.idBlocked>
ismailsunni.wordpress.com<Blockedhttp://ismailsunni.wordpress.comBlocked>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230112/2e08cb45/attachment.htm>


More information about the QGIS-Developer mailing list