Commit 86f6b0f
committed
feat: Private Update & Update Delivery & HTTP Download Rate Limit Online Configuration – Feature Merged into Mainline
Includes the following three features:
I. Private Update
The private update feature is controlled by the intranet-update configuration option under lastore-daemon. When disabled, the public network update module interface in the Control Center is displayed. When enabled, the interface switches to the private update interface.
Differences between the private update interface and the public network interface:
a. The update settings entry is hidden. Enterprise-level update users are not allowed to modify update-related configurations.
b. The process from checking for updates to downloading in private update mode is atomic. Enterprise update users cannot refuse to download, and the download process cannot be canceled.
c. After the download is complete, a re-check button is added.
d. For non-mandatory update tasks, after the download is complete, users can choose the update method themselves: update immediately or update after shutdown.
e. A dedicated private update tray is added to provide more detailed download/update status. The tray is loaded only when the private update switch is enabled.
Story: https://pms.uniontech.com/story-view-40191.html
II. Update Delivery
A master switch for update delivery is added to the Advanced Settings page of the Control Center for updates. When the switch is turned on, the interface displays two sub-items: "Update Delivery – Upload Rate Limit" and "Update Delivery – Download Rate Limit". Each sub-item has its own control switch and speed limit input box, and calls the corresponding interfaces in lastore-daemon.
The switches and input boxes for the upload and download rate limit sub-items control the enabling/disabling and specific values of the upload and download rate limits respectively, by calling SetDeliveryUploadSpeedLimit and SetDeliveryDownloadSpeedLimit in lastore-daemon.
The rate limit configuration for update delivery supports policies issued by the update platform backend for peak/off-peak hours. When such policies are active, the Control Center grays out the upload and download rate limit sub-items accordingly, preventing users from making modifications.
Each time the master switch is operated, the status values of the various sub-items are refreshed accordingly by reading the corresponding attributes from the upgrade-delivery service.
Task: https://pms.uniontech.com/task-view-387713.html
III. HTTP Download Rate Limit Online Configuration
The HTTP download rate limit feature supports online configuration. Once the online configuration takes effect, the interface controls are grayed out and disabled for user operations.
Story: https://pms.uniontech.com/story-view-40191.html
feat: 私有化更新&更新传递&http下载限速在线配置 功能合入主线
包含以下三部分功能
一.私有化更新
1.通过lastore-daemon下面的intranet-update配置项决定功能私有化功能是否开启,未开启时仍为控制中心公网更新模块界面,开启后切换为私有化更新界面 2.私有化更新界面与公网界面大致相同,主要有以下区别点:
a.屏蔽更新设置入口,企业级更新的用户不允许私自修改更新相关配置
b.私有化更新的检查更新到下载流程为原子化操作,企业及更新用户无拒绝下载的权利,下载过程中不允许取消 c.下载完成后添加重复检查按钮
d.若为非强制更新类型的任务,下载完成后允许用户自行决定更新方式,立即更新or关机后更新
e.添加私有化专属托盘,提供更详细的下载更新状态,仅在私有化开关开启时加载托盘
Story: https://pms.uniontech.com/story-view-40191.html
二.更新传递
1.添加更新传递总开关在控制中心更新高级设置界面。当开关打开时,界面展示更新传递-上传限速、更新传递-下载限速两个子项,每个子项有各自的控制开关和限速值输入框,同时调用lastore-daemon的SetP2pEnable相关接口,在lastore的下次检查更新时尝试拉起upgrade-delivery系统服务
2.更新传递-上传限速、更新传递-下载限速两个子项的开关和输入框各自控制上传、下载限速的开启和关闭以及具体数值,具体通过调用lastore-daemon的SetDeliveryUploadSpeedLimit和SetDeliveryDownloadSpeedLimit接口交由lastore来实际设置值。
3.更新传递的限速配置支持通过更新平台后端下发忙闲时的限速策略,此时控制中心会根据这一策略适时置灰更新传递-上传限速、更新传递-下载限速两个子项,禁止用户修改
4.每次操作总开关时会适时的刷新各种子项的状态值,具体是从upgrade-delivery服务中读取对应的属性值
Task: https://pms.uniontech.com/task-view-387713.html
三.http下载限速在线配置
http下载限速功能支持在线配置,在线配置生效后界面置灰,禁止用户操作
Story: https://pms.uniontech.com/story-view-40191.html49 files changed
Lines changed: 2059 additions & 1823 deletions
File tree
- .reuse
- debian
- src
- dcc-update-plugin
- operation
- qml
- translations
- dde-update
- misc
- translations
- ddock-update-plugin/translations
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
1 | 29 | | |
2 | 30 | | |
3 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
| 131 | + | |
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
| 321 | + | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
330 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
331 | 332 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
339 | 347 | | |
340 | | - | |
341 | | - | |
| 348 | + | |
| 349 | + | |
342 | 350 | | |
343 | 351 | | |
344 | 352 | | |
| |||
352 | 360 | | |
353 | 361 | | |
354 | 362 | | |
355 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
356 | 366 | | |
357 | 367 | | |
358 | 368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
0 commit comments