Skip to content

feat: [Update Delivery] Merge update delivery related functionality into Control Center update client#263

Merged
xionglinlin merged 1 commit into
linuxdeepin:develop/dcc-update-plugin-privatefrom
ut005973:develop/dcc-update-plugin-private
Apr 1, 2026
Merged

feat: [Update Delivery] Merge update delivery related functionality into Control Center update client#263
xionglinlin merged 1 commit into
linuxdeepin:develop/dcc-update-plugin-privatefrom
ut005973:develop/dcc-update-plugin-private

Conversation

@ut005973
Copy link
Copy Markdown
Contributor

@ut005973 ut005973 commented Apr 1, 2026

…nto Control Center update client

Integrate the update delivery logic from v20 into the v25 Control Center update module:

Add an update delivery master switch in the Control Center update advanced settings interface. When the switch is enabled, the interface displays two sub-items: Update Delivery - Upload Speed Limit and Update Delivery - Download Speed Limit. Each sub-item has its own control switch and speed limit input field. Simultaneously, call the relevant SetP2pEnable interface of lastore-daemon, which will attempt to start the upgrade-delivery system service during the next update check of lastore.

The switches and input fields for Update Delivery - Upload Speed Limit and Update Delivery - Download Speed Limit independently control the enabling/disabling of upload/download speed limits and their specific values. These values are set by calling the SetDeliveryUploadSpeedLimit and SetDeliveryDownloadSpeedLimit interfaces of lastore-daemon, which are then applied by lastore.

The update delivery speed limit configuration supports backend-driven busy/idle time speed limit policies via the update platform. When such policies are active, the Control Center will gray out the Update Delivery - Upload Speed Limit and Update Delivery - Download Speed Limit sub-items accordingly, preventing user modifications.

Each operation on the master switch triggers a refresh of the status values for various sub-items. The status values are read from the upgrade-delivery service.

Log: Integrate v20 update delivery functionality into v25
Task: https://pms.uniontech.com/task-view-387713.html
Influence: New update delivery logic added to the Control Center update module

feat: 【更新传递】控制中心更新客户端合入更新传递相关功能

v20的更新传递逻辑合入v25控制中心更新模块
1.添加更新传递总开关在控制中心更新高级设置界面。当开关打开时,界面展示更新传递-上传限速、更新传递-下载限速两个子项,每个子项有各自的控制开关和限速值输入框,同时调用lastore-daemon的SetP2pEnable相关接口,在lastore的下次检查更新时尝试拉起upgrade-delivery系统服务 2.更新传递-上传限速、更新传递-下载限速两个子项的开关和输入框各自控制上传、下载限速的开启和关闭以及具体数值,具体通过调用lastore-daemon的SetDeliveryUploadSpeedLimit和SetDeliveryDownloadSpeedLimit接口交由lastore来实际设置值。 3.更新传递的限速配置支持通过更新平台后端下发忙闲时的限速策略,此时控制中心会根据这一策略适时置灰更新传递-上传限速、更新传递-下载限速两个子项,禁止用户修改 4.每次操作总开关时会适时的刷新各种子项的状态值,具体是从upgrade-delivery服务中读取对应的属性值

Log: v20更新传递功能合入v25
Task: https://pms.uniontech.com/task-view-387713.html
Influence: 控制中心更新模块新增更新传递逻辑

@deepin-ci-robot
Copy link
Copy Markdown

Hi @ut005973. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ut005973 ut005973 force-pushed the develop/dcc-update-plugin-private branch from a14c2f6 to af118fd Compare April 1, 2026 07:09
@ut005973 ut005973 changed the title 1 feat: [Update Delivery] Merge update delivery related functionality into Control Center update client Apr 1, 2026
@ut005973 ut005973 force-pushed the develop/dcc-update-plugin-private branch 4 times, most recently from 46afbab to f1bd3aa Compare April 1, 2026 07:25
…nto Control Center update client

Integrate the update delivery logic from v20 into the v25 Control Center update module:

Add an update delivery master switch in the Control Center update advanced settings interface. When the switch is enabled, the interface displays two sub-items: Update Delivery - Upload Speed Limit and Update Delivery - Download Speed Limit. Each sub-item has its own control switch and speed limit input field. Simultaneously, call the relevant SetP2pEnable interface of lastore-daemon, which will attempt to start the upgrade-delivery system service during the next update check of lastore.

The switches and input fields for Update Delivery - Upload Speed Limit and Update Delivery - Download Speed Limit independently control the enabling/disabling of upload/download speed limits and their specific values. These values are set by calling the SetDeliveryUploadSpeedLimit and SetDeliveryDownloadSpeedLimit interfaces of lastore-daemon, which are then applied by lastore.

The update delivery speed limit configuration supports backend-driven busy/idle time speed limit policies via the update platform. When such policies are active, the Control Center will gray out the Update Delivery - Upload Speed Limit and Update Delivery - Download Speed Limit sub-items accordingly, preventing user modifications.

Each operation on the master switch triggers a refresh of the status values for various sub-items. The status values are read from the upgrade-delivery service.

Log: Integrate v20 update delivery functionality into v25
Task: https://pms.uniontech.com/task-view-387713.html
Influence: New update delivery logic added to the Control Center update module

feat: 【更新传递】控制中心更新客户端合入更新传递相关功能

v20的更新传递逻辑合入v25控制中心更新模块
1.添加更新传递总开关在控制中心更新高级设置界面。当开关打开时,界面展示更新传递-上传限速、更新传递-下载限速两个子项,每个子项有各自的控制开关和限速值输入框,同时调用lastore-daemon的SetP2pEnable相关接口,在lastore的下次检查更新时尝试拉起upgrade-delivery系统服务
2.更新传递-上传限速、更新传递-下载限速两个子项的开关和输入框各自控制上传、下载限速的开启和关闭以及具体数值,具体通过调用lastore-daemon的SetDeliveryUploadSpeedLimit和SetDeliveryDownloadSpeedLimit接口交由lastore来实际设置值。
3.更新传递的限速配置支持通过更新平台后端下发忙闲时的限速策略,此时控制中心会根据这一策略适时置灰更新传递-上传限速、更新传递-下载限速两个子项,禁止用户修改
4.每次操作总开关时会适时的刷新各种子项的状态值,具体是从upgrade-delivery服务中读取对应的属性值

Log: v20更新传递功能合入v25
Task: https://pms.uniontech.com/task-view-387713.html
Influence: 控制中心更新模块新增更新传递逻辑
@ut005973 ut005973 force-pushed the develop/dcc-update-plugin-private branch from f1bd3aa to 9cd59b7 Compare April 1, 2026 07:47
@deepin-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ut005973, xionglinlin

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

Details 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

@xionglinlin xionglinlin merged commit 3759b1d into linuxdeepin:develop/dcc-update-plugin-private Apr 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants