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

Nyall Dawson nyall.dawson at gmail.com
Wed Jan 11 16:14:10 PST 2023


On Wed, 11 Jan 2023 at 12:49, Catania, Luke A ERDC-RDE-GRL-VA CIV via
QGIS-Developer <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?

I'd suggest in this situation that you should instead be either
working with the VisibilityAnalysis maintainers to get the latest
version compatible with your needs, or alternatively fork parts of the
1.7 code into your plugin so that you aren't dependent on another
maintainer's work.

Trying to workaround this by blocking plugin updates is going to be a
fragile path, likely taking much longer than either of the above
suggestions.

Nyall



>
> Thanks,
> Luke
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the QGIS-Developer mailing list