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

[release-2.17] Fix the problem that plugins without jar file may not be deleted #6374

Conversation

JohnNiang
Copy link
Member

This is an automated cherry-pick of #6334

/assign JohnNiang

修复在没有插件文件的情况下可能无法删除插件的问题

…o-dev#6334)

/kind bug
/area core
/area plugin
/milestone 2.18.x

This PR checks if the plugin is already unloaded while getting dependents to fix the problem that plugins without jar file may not be deleted or not be enabled or disabled.

Fixes halo-dev#6072

1. Try to move plugins folder to another folder
2. Restart Halo
3. Try to change state of plugins or delete plugins directly
4. See the result

```release-note
修复在没有插件文件的情况下可能无法删除插件的问题
```
@JohnNiang JohnNiang added this to the 2.17.x milestone Jul 25, 2024
@f2c-ci-robot f2c-ci-robot bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Jul 25, 2024
@f2c-ci-robot f2c-ci-robot bot requested review from LIlGG and wan92hen July 25, 2024 02:44
Copy link

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (release-2.17@19e45e0). Learn more about missing BASE report.

Files Patch % Lines
...in/java/run/halo/app/plugin/HaloPluginManager.java 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##             release-2.17    #6374   +/-   ##
===============================================
  Coverage                ?   58.07%           
  Complexity              ?     3759           
===============================================
  Files                   ?      649           
  Lines                   ?    22037           
  Branches                ?     1551           
===============================================
  Hits                    ?    12798           
  Misses                  ?     8613           
  Partials                ?      626           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ruibaby ruibaby left a comment

Choose a reason for hiding this comment

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

/lgtm

@f2c-ci-robot f2c-ci-robot bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 25, 2024
Copy link
Member

@guqing guqing left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

f2c-ci-robot bot commented Jul 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: guqing, ruibaby

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot merged commit 8ff1bc4 into halo-dev:release-2.17 Jul 25, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants