-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
chore: cleanup deprecated constructor for base plugin #6243
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6243 +/- ##
============================================
+ Coverage 54.51% 58.06% +3.55%
- Complexity 3523 3749 +226
============================================
Files 646 647 +1
Lines 21862 21963 +101
Branches 1528 1536 +8
============================================
+ Hits 11917 12752 +835
+ Misses 9328 8594 -734
Partials 617 617 ☔ View full report in Codecov by Sentry. |
/milestone 2.18.x 移除改构造函数会造成很多插件无法启动。建议等 Halo 2.17.0 发布之后再合并,并通过各个渠道通知插件开发者我们将正式在 2.18 中移除过时的构造函数。 /hold |
### What this PR does? 移除对已过时的 PluginWrapper 的引用,Halo 2.18.0 版本后将不在支持从 BasePlugin 中获取 PluginWrapper ,也不再支持依赖注入 PluginWrapper,使用 PluginContext 代替 see also halo-dev/halo#6243 for more details ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用,Halo 2.18.0 版本后将不在支持从 BasePlugin 中获取 PluginWrapper ,也不再支持依赖注入 PluginWrapper,使用 PluginContext 代替 see also halo-dev/halo#6243 for more details ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用,Halo 2.18.0 版本后将不在支持从 BasePlugin 中获取 PluginWrapper ,也不再支持依赖注入 PluginWrapper,使用 PluginContext 代替 see also halo-dev/halo#6243 for more details ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 for more details ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 for more details ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 for more details ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用,Halo 2.18.0 版本后将不在支持从 BasePlugin 中获取 PluginWrapper ,也不再支持依赖注入 PluginWrapper,使用 PluginContext 代替 see also halo-dev/halo#6243 for more details ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 ```release-note None ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Halo 2.17.0 已经发布。
/unhold
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang 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 |
### What this PR does? 移除对已过时的 PluginWrapper 的引用,Halo 2.18.0 版本后将不在支持从 BasePlugin 中获取 PluginWrapper ,也不再支持依赖注入 PluginWrapper,使用 PluginContext 代替 see also halo-dev/halo#6243 for more details ```release-note None ```
application/src/main/java/run/halo/app/plugin/DefaultPluginApplicationContextFactory.java
Show resolved
Hide resolved
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 ```release-note None ```
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 ```release-note None ```
What type of PR is this?
/kind cleanup
/area plugin
/milestone 2.17.x
What this PR does / why we need it:
移除 BasePlugin 中已经过时的构造方法
在 2.6.1 版本中将
BasePlugin(PluginWrapper wrapper)
标记为过时并使用BasePlugin(PluginContext pluginContext)
代替,现在已经过了很多版本,是时候移除它了。see also #4023
Does this PR introduce a user-facing change?