Merge the standard packages into the core
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by mapping the four package repositories and their build setups, then trace how package installation metadata records ownership, especially wcf1_package_installation_sql_log. Plan the migration to transfer registered resources into the core while retaining empty stub packages for existing dependencies. Done means the core owns the listed resources, existing installations upgrade without reinstalling them, and the proposal's optional feature behavior remains available.
由索引模型根据 Issue 内容生成。
描述
The four "standard" packages are installed on almost every WoltLab Suite installation, but they still live in separate packages:
- com.woltlab.wcf.conversation (Conversations)
- com.woltlab.wcf.infraction (Infractions)
- com.woltlab.wcf.legalNotice (Legal Notice)
- com.woltlab.wcf.moderatedUserGroup (Moderated User Groups)
- com.woltlab.wcf.exporter
Every app ships conversations and infractions as required packages, and moderated user groups and the legal notice as optional packages. Infractions also depend on conversations. A setup without these packages exists in theory, but we hardly see it in practice, and the
split costs more than it gains:
- Four extra repositories, each with its own build setup (PHPStan, TypeScript, npm, Composer), version bumps and update instructions for every release.
- Every app has to bundle the archives in requirements/ and optionals/.
- The core cannot reference these features directly. It needs workarounds such as event listeners, template listeners or package lookups by identifier, and some core code already knows about them anyway (e.g. the GDPR export references wcf1_conversation_message).
- Third-party developers have to declare dependencies on the packages and cannot rely on them being present.
Proposal
Merge the four packages into com.woltlab.wcf. The features remain optional where it makes sense:
- Conversations: MODULE_CONVERSATION
- Infractions: MODULE_USER_INFRACTION
- Legal notice: the page and its menu item can be disabled
- Moderated user groups: only active for groups that are set up as moderated
Database tables, object type names, language item names, options and permissions keep their names. Only the owning package changes.
Migration
Existing installations have the packages installed, so the update must take over their data instead of reinstalling it:
- Transfer ownership of everything the old packages registered to the core: database tables/columns (wcf1_package_installation_sql_log), files, templates, ACP templates, language items, options, user group options, user options, pages, menu items, object
types/definitions, event/template listeners, cronjobs, clipboard actions, notification events, ACP menu items, user menu/profile menu items. - Keep the packages initially as a stub version, that contains nothing, so the upgrade don't break and third party dependencies still work.
- 主要语言
- PHP
- 星标
- 248
- 派生
- 147
- 平均合并
- 17 分钟
- 30 天内合并 PR
- 21
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
WoltLab/WCF 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 58/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 30/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
维护者通常 1 天内回复
-
Replace `UserAction::getSearchResultList()` with an RPC endpoint and modernize the user search JS未关闭
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
HE-Arc/le-panier-du-coin#49 ·
维护者通常 1 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 65/100
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
LinkNacional/woo-rede#367 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Lazyload SVG placeholder runs uncached attachment lookups with JSON-escaped URLs on REST responses未关闭customer report
难度 2/5 1-3 小时 新手友好度 72/100
Codeinwp/optimole-wp#1253 ·
维护者通常 1 天内回复