Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various plugin fixes #5577

Merged
merged 9 commits into from Jan 18, 2024
Merged

Conversation

Kukks
Copy link
Member

@Kukks Kukks commented Dec 21, 2023

This will:

  • fix plugin updates only causing an uninstall
  • Clear any previous pending actions of a plugin if you click uninstall
  • Show the plugin version that was disabled
  • Show an update button on disabled plugins instead of install
  • if a plugin is scheduled to be installed/updated, it will show which version was scheduled to be updated. If a newer version if available than the scheduled one, it will show an option to switch to that

This will:
* Clear any previous pending actions of a plugin if you click uninstall
* Show the plugin version that was disabled
* Show an update button on disabled plugins instead of install
* if a plugin is scheduled to be installed/updated, it will show which version was scheduled to be updated. If a newer version if available than the scheduled one, it will show an option to switch to that
@Kukks Kukks marked this pull request as ready for review December 22, 2023 10:15
@Kukks Kukks changed the title Offer install on disabled plugins when different version Various plugin fixes Dec 22, 2023
@Kukks
Copy link
Member Author

Kukks commented Dec 22, 2023

Note: While we should get this out in the next release, I need to redo how we build this plugin page as it's been constantly added on as complex version features were added to plugins. cc @pavlenex

@Kukks Kukks added this to the 1.12.x milestone Dec 22, 2023
@Kukks Kukks added Bug Enhancement Improvements to an existing feature labels Dec 22, 2023
@@ -108,6 +108,7 @@ public async Task UploadPlugin(IFormFile plugin)
public void UninstallPlugin(string plugin)
{
var dest = _dataDirectories.Value.PluginDir;
PluginManager.CancelCommands(dest, plugin);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually a bugfix where you could end up in a situation of scheduling installs/updates and then scheduling a delete, causing the UI to look unintuitive on what's going to happen until they execute

@NicolasDorier NicolasDorier merged commit a753698 into btcpayserver:master Jan 18, 2024
3 checks passed
@Kukks Kukks deleted the offer-update-on-disabled branch January 18, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Enhancement Improvements to an existing feature
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants