Repository navigation
Conversation
treeland dropped the v1 implementation, so stop shipping the XML with the deprecated protocols.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deepin-wm The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's GuideAPIRemove the deprecated v1 protocol definition so the obsolete interface is no longer part of the protocol package.
ConfigurationDrop the deleted v1 XML from the deprecated protocol install list.
DocumentationUpdate the English and Chinese migration notes to clarify that the v1 XML and its no-op objects have been removed.
Correct the protocol naming example to refer to the DDM protocol.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 4 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="CMakeLists.txt" line_range="67" />
<code_context>
deprecated/treeland-personalization-manager-v1.xml
deprecated/treeland-prelaunch-splash-v1.xml
deprecated/treeland-screensaver-v1.xml
- deprecated/treeland-dde-shell-v1.xml
deprecated/treeland-show-desktop-unstable-v1.xml
deprecated/treeland-shortcut-manager-v1.xml
</code_context>
<issue_to_address>
**Removed XML remains discoverable**
When an existing prefix is upgraded with `cmake --install`, cMake’s `install(FILES ...)` copies the current list but does not remove files installed by an earlier version, so the v1 XML remains in the prefix and downstream users can still find it.
Remove the v1 XML from the install prefix during the upgrade.
</issue_to_address>
### Comment 2
<location path="CMakeLists.txt" line_range="67" />
<code_context>
deprecated/treeland-personalization-manager-v1.xml
deprecated/treeland-prelaunch-splash-v1.xml
deprecated/treeland-screensaver-v1.xml
- deprecated/treeland-dde-shell-v1.xml
deprecated/treeland-show-desktop-unstable-v1.xml
deprecated/treeland-shortcut-manager-v1.xml
</code_context>
<issue_to_address>
**Deprecated XML stops installing**
When the default install configuration is used, the removed XML is no longer in `TREELAND_PROTOCOL_DEPRECATED_XML_FILES`, so the default installation step skips it even though `TREELAND_PROTOCOLS_INSTALL_DEPRECATED` is ON. Downstream users no longer receive this deprecated protocol description.
Keep the XML in the deprecated install list, or update the knowledge-base rule to allow this removal.
</issue_to_address>
### Comment 3
<location path="public/README.md" line_range="35" />
<code_context>
+Consumers should rebind as `treeland_dde_shell_manager_v2`, recreate shell surfaces through `get_shell_surface`, switch to `set_skip_flags`, and treat `overlay` as 1 (unchanged) while `normal` (0) restores the regular window layer; window-picker consumers have no replacement and must drop the functionality. The old XML has been removed from the package.
</code_context>
<issue_to_address>
**Migration notes point to missing XML**
When readers follow the v1 migration notes, the English and Chinese migration notes direct readers to `deprecated/`, where the v1 XML no longer exists, while also saying it was removed from the package, leaving its repository location unclear.
Update both migration notes to give consistent guidance about where the v1 XML is located.
Also at `public/README.zh_CN.md:36`.
</issue_to_address>
### Comment 4
<location path="CMakeLists.txt" line_range="67" />
<code_context>
deprecated/treeland-personalization-manager-v1.xml
deprecated/treeland-prelaunch-splash-v1.xml
deprecated/treeland-screensaver-v1.xml
- deprecated/treeland-dde-shell-v1.xml
deprecated/treeland-show-desktop-unstable-v1.xml
deprecated/treeland-shortcut-manager-v1.xml
</code_context>
<issue_to_address>
**Protocol inventory update is missing**
The deprecated install list drops the v1 XML, but the promised `tests/protocols/INDEX.md` update is absent, so the stated 4-to-3 inventory change is not delivered.
Add or update the protocol index so it reflects the removal, or correct the description if no such index is maintained.
</issue_to_address>| deprecated/treeland-personalization-manager-v1.xml | ||
| deprecated/treeland-prelaunch-splash-v1.xml | ||
| deprecated/treeland-screensaver-v1.xml | ||
| deprecated/treeland-dde-shell-v1.xml |
There was a problem hiding this comment.
🟡 Medium · Removed XML remains discoverable
When an existing prefix is upgraded with cmake --install, cMake’s install(FILES ...) copies the current list but does not remove files installed by an earlier version, so the v1 XML remains in the prefix and downstream users can still find it.
Remove the v1 XML from the install prefix during the upgrade.
Prompt for AI agents
In `CMakeLists.txt` at line 67:
**Removed XML remains discoverable**
When an existing prefix is upgraded with `cmake --install`, cMake’s `install(FILES ...)` copies the current list but does not remove files installed by an earlier version, so the v1 XML remains in the prefix and downstream users can still find it.
Remove the v1 XML from the install prefix during the upgrade.| deprecated/treeland-personalization-manager-v1.xml | ||
| deprecated/treeland-prelaunch-splash-v1.xml | ||
| deprecated/treeland-screensaver-v1.xml | ||
| deprecated/treeland-dde-shell-v1.xml |
There was a problem hiding this comment.
🟡 Medium · Deprecated XML stops installing
When the default install configuration is used, the removed XML is no longer in TREELAND_PROTOCOL_DEPRECATED_XML_FILES, so the default installation step skips it even though TREELAND_PROTOCOLS_INSTALL_DEPRECATED is ON. Downstream users no longer receive this deprecated protocol description.
Keep the XML in the deprecated install list, or update the knowledge-base rule to allow this removal.
Prompt for AI agents
In `CMakeLists.txt` at line 67:
**Deprecated XML stops installing**
When the default install configuration is used, the removed XML is no longer in `TREELAND_PROTOCOL_DEPRECATED_XML_FILES`, so the default installation step skips it even though `TREELAND_PROTOCOLS_INSTALL_DEPRECATED` is ON. Downstream users no longer receive this deprecated protocol description.
Keep the XML in the deprecated install list, or update the knowledge-base rule to allow this removal.From AGENTS.md L124:
The `deprecated/` directory has no README protocol table. Deprecated files are still installed by default (`TREELAND_PROTOCOLS_INSTALL_DEPRECATED` is `ON`).| 5. The v2 globals must reject binds from non-privileged clients. | ||
|
|
||
| Consumers should rebind as `treeland_dde_shell_manager_v2`, recreate shell surfaces through `get_shell_surface`, switch to `set_skip_flags`, and treat `overlay` as 1 (unchanged) while `normal` (0) restores the regular window layer; window-picker consumers have no replacement and must drop the functionality. The old XML is kept installed during migration but must not be used in new code. | ||
| Consumers should rebind as `treeland_dde_shell_manager_v2`, recreate shell surfaces through `get_shell_surface`, switch to `set_skip_flags`, and treat `overlay` as 1 (unchanged) while `normal` (0) restores the regular window layer; window-picker consumers have no replacement and must drop the functionality. The old XML has been removed from the package. |
There was a problem hiding this comment.
⚪ Low · Migration notes point to missing XML
When readers follow the v1 migration notes, the English and Chinese migration notes direct readers to deprecated/, where the v1 XML no longer exists, while also saying it was removed from the package, leaving its repository location unclear.
Update both migration notes to give consistent guidance about where the v1 XML is located.
Also at public/README.zh_CN.md:36.
Prompt for AI agents
In `public/README.md` at line 35:
**Migration notes point to missing XML**
When readers follow the v1 migration notes, the English and Chinese migration notes direct readers to `deprecated/`, where the v1 XML no longer exists, while also saying it was removed from the package, leaving its repository location unclear.
Update both migration notes to give consistent guidance about where the v1 XML is located.
Also at `public/README.zh_CN.md:36`.| deprecated/treeland-personalization-manager-v1.xml | ||
| deprecated/treeland-prelaunch-splash-v1.xml | ||
| deprecated/treeland-screensaver-v1.xml | ||
| deprecated/treeland-dde-shell-v1.xml |
There was a problem hiding this comment.
⚪ Low · Protocol inventory update is missing
The deprecated install list drops the v1 XML, but the promised tests/protocols/INDEX.md update is absent, so the stated 4-to-3 inventory change is not delivered.
Add or update the protocol index so it reflects the removal, or correct the description if no such index is maintained.
Prompt for AI agents
In `CMakeLists.txt` at line 67:
**Protocol inventory update is missing**
The deprecated install list drops the v1 XML, but the promised `tests/protocols/INDEX.md` update is absent, so the stated 4-to-3 inventory change is not delivered.
Add or update the protocol index so it reflects the removal, or correct the description if no such index is maintained.
treeland-dde-shell-v1is deprecated and clients have moved totreeland-dde-shell-unstable-v2, so the v1 protocol description is no longer used by anything.Changes
deprecated/treeland-dde-shell-v1.xmltests/protocols/INDEX.md(4 -> 3 protocols, v1 row removed)Notes
The version is still 0.9.1; dropping a file that used to be installed is a silent change of the installed file set for downstream users, so a version bump / changelog entry may be wanted at release time.
Companion PR removing the compositor-side v1 implementation: linuxdeepin/treeland (see the linked PR).
Summary by Sourcery
Remove the deprecated treeland-dde-shell-v1 protocol from the repository and installed protocol package.
Enhancements:
Build:
Documentation: