Skip to content

Commit 0757e0a

Browse files
committed
fix: Fifth round of bug fixes for private update & update transfer & HTTP speed limit online configuration features
Fixed the following issues: [V25 2500U1][Update Management System][Enterprise Update Management System][Sixth Round Testing] When the server supports P2P and the terminal successfully connects, the transfer optimization switch in Control Center should be grayed out and non-closable [V25 2500U1][Update Management System][Control Center Update Client][Sixth Round Testing][Public Network] After checking the upload speed limit and download speed limit checkboxes of transfer optimization sub-items, unchecking them again causes the speed limit value to change to 104857 [V25 2500U1][Update Management System][Control Center Update Client][Fourth Round Testing] After modifying the status or value of transfer optimization upload/download speed limits, reopening Control Center causes the transfer optimization upload/download speed limit positions to change [V25 2500U1][Update Management System][Control Center Update Client][Sixth Round Testing][Public Network] The English translation of transfer optimization does not match requirements [V25 2500U1][Update Management System][Control Center Update Client][Sixth Round Testing][System Update][Public Network] When enabling or disabling transfer optimization settings fails, a retry dialog appears with prompt information and buttons inconsistent with requirements [V25 2500U1][Update Management System][Control Center Update Client][Sixth Round Testing][Public Network] When enabling or disabling transfer optimization sub-item settings fails, the dialog display does not match requirements [V25 2500U1][Update Management System][Control Center Update Client][Sixth Round Testing][Public Network] When enabling transfer optimization settings fails, the dialog needs to support closing with Esc key [V25 2500U1][Update Management System][Control Center Update Client][Sixth Round Testing][Public Network] When enabling or disabling transfer optimization sub-item settings fails, the dialog needs to support closing with Esc key [V25 2500U1][Update Management System][Control Center Update Client][Sixth Round Testing][System Update][Public Network] The display names of transfer optimization sub-items need to match requirements Log: As above Bug: https://pms.uniontech.com/bug-view-357875.html https://pms.uniontech.com/bug-view-358203.html https://pms.uniontech.com/bug-view-357291.html https://pms.uniontech.com/bug-view-358231.html https://pms.uniontech.com/bug-view-358257.html https://pms.uniontech.com/bug-view-358321.html https://pms.uniontech.com/bug-view-358303.html https://pms.uniontech.com/bug-view-358357.html https://pms.uniontech.com/bug-view-358365.html Influence: Affects private update & update transfer & HTTP speed limit online configuration features fix: 私有化更新&更新传递&http限速在线配置功能第五轮bug修复 修复以下问题: 【V25 2500U1】【更新管理系统】【企业级更新管理系统】【第六轮测试】服务端支持P2P,终端接入成功后,控制中心-传递优化开关应该置灰并不可关闭 【V25 2500U1】【更新管理系统】【控制中心更新客户端】【第六轮测试】【公网】勾选传递优化子配置项的上传限速和下载限速复选框,再次去勾选复选框,限速值变成了104857 【V25 2500U1】【更新管理系统】【控制中心更新客户端】【第四轮测试】修改传递优化上传下载限速的状态或者值,重新打开控制中心,传递优化上传下载限速位置发生变化 【V25 2500U1】【更新管理系统】【控制中心更新客户端】【第六轮测试】【公网】传递优化英文翻译与需求不一致 【V25 2500U1】【更新管理系统】【控制中心更新客户端】【第六轮测试】【系统更新】【公网】传递优化设置项开启或关闭失败,出现重试弹窗,提示信息和按钮与需求不一致 【V25 2500U1】【更新管理系统】【控制中心更新客户端】【第六轮测试】【公网】传递优化设置项子配置项开启或关闭失败,弹窗展示与需求不一致 【V25 2500U1】【更新管理系统】【控制中心更新客户端】【第六轮测试】【公网】传递优化设置项开启失败,弹窗需要支持Esc键关闭弹窗 【V25 2500U1】【更新管理系统】【控制中心更新客户端】【第六轮测试】【公网】传递优化设置项子配置项开启或关闭失败,弹窗需要支持esc关闭操作 【V25 2500U1】【更新管理系统】【控制中心更新客户端】【第六轮测试】【系统更新】【公网】传递优化子配置项展示名称需要与需求一致 Log:如上所述 Bug:https://pms.uniontech.com/bug-view-357875.html https://pms.uniontech.com/bug-view-358203.html https://pms.uniontech.com/bug-view-357291.html https://pms.uniontech.com/bug-view-358231.html https://pms.uniontech.com/bug-view-358257.html https://pms.uniontech.com/bug-view-358321.html https://pms.uniontech.com/bug-view-358303.html https://pms.uniontech.com/bug-view-358357.html https://pms.uniontech.com/bug-view-358365.html Influence:影响私有化更新&更新传递&http限速在线配置功能
1 parent 537e84f commit 0757e0a

5 files changed

Lines changed: 56 additions & 56 deletions

File tree

src/dcc-update-plugin/operation/updatedatastructs.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,11 @@ inline QString transferDeliveryConfigToLastoreDeliveryConfig(const QString& deli
316316
LastoreUpgradeSpeedLimitConfig lastoreDeliveryConfig;
317317
lastoreDeliveryConfig.isOnlineSpeedLimit = UpgradeSpeedLimitConfig::fromJson(deliveryConfig.toUtf8()).ifInOnlineLimit();
318318
lastoreDeliveryConfig.speedLimitEnabled = UpgradeSpeedLimitConfig::fromJson(deliveryConfig.toUtf8()).shouldLimitRate();
319-
lastoreDeliveryConfig.limitSpeed = QString::number(UpgradeSpeedLimitConfig::fromJson(deliveryConfig.toUtf8()).currentRate);
319+
if (lastoreDeliveryConfig.isOnlineSpeedLimit) {
320+
lastoreDeliveryConfig.limitSpeed = QString::number(UpgradeSpeedLimitConfig::fromJson(deliveryConfig.toUtf8()).currentRate);
321+
} else {
322+
lastoreDeliveryConfig.limitSpeed = QString::number(UpgradeSpeedLimitConfig::fromJson(deliveryConfig.toUtf8()).limitRate);
323+
}
320324
return lastoreDeliveryConfig.toJson();
321325
}
322326

src/dcc-update-plugin/qml/UpdateSetting.qml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ DccObject {
3434
Layout.fillWidth: true
3535
horizontalAlignment: Text.AlignHCenter
3636
wrapMode: Text.WordWrap
37-
text: qsTr("Failed to change Upgrade Delivery setting")
37+
text: qsTr("Failed to change Delivery Optimization setting")
3838
}
3939

4040
Item {
@@ -48,12 +48,15 @@ DccObject {
4848
spacing: 10
4949

5050
ButtonWithToolTip {
51-
text: qsTr("OK")
51+
text: qsTr("Cancel")
5252
Layout.fillWidth: true
5353
focus: upgradeDeliverySetConfigFailedDialog.visible
5454
onClicked: {
5555
upgradeDeliverySetConfigFailedDialog.close()
5656
}
57+
Keys.onEscapePressed: {
58+
upgradeDeliverySetConfigFailedDialog.close()
59+
}
5760
}
5861

5962
component ButtonWithToolTip: D.Button {
@@ -103,8 +106,7 @@ DccObject {
103106
Layout.fillWidth: true
104107
horizontalAlignment: Text.AlignHCenter
105108
wrapMode: Text.WordWrap
106-
text: root.pendingUpgradeDeliveryEnabled ? qsTr("Update Delivery Optimization service exception. Failed to enable.")
107-
: qsTr("Update Delivery Optimization service exception. Failed to disable.")
109+
text: qsTr("Update Delivery Optimization service exception")
108110
}
109111

110112
Item {
@@ -123,12 +125,16 @@ DccObject {
123125
focus: upgradeDeliverySetEnableFailedDialog.visible
124126
onClicked: {
125127
upgradeDeliverySetEnableFailedDialog.close()
126-
dccData.work().setUpgradeDeliveryEnabled(root.pendingUpgradeDeliveryEnabled, true)
128+
//dccData.work().setUpgradeDeliveryEnabled(root.pendingUpgradeDeliveryEnabled, true)
129+
dccData.work().setUpgradeDeliveryEnabled(!dccData.model().upgradeDeliveryEnable, true)
130+
}
131+
Keys.onEscapePressed: {
132+
upgradeDeliverySetEnableFailedDialog.close()
127133
}
128134
}
129135

130136
EnableFailedDialogButton {
131-
text: qsTr("OK")
137+
text: qsTr("Cancel")
132138
Layout.fillWidth: true
133139
onClicked: {
134140
upgradeDeliverySetEnableFailedDialog.close()
@@ -173,6 +179,7 @@ DccObject {
173179
parentName: "updateSettingsPage"
174180
displayName: qsTr("Update Type")
175181
weight: 10
182+
visible: !dccData.model().isPrivateUpdate
176183
}
177184

178185
DccObject {
@@ -181,6 +188,7 @@ DccObject {
181188
parentName: "updateSettingsPage"
182189
weight: 20
183190
pageType: DccObject.Item
191+
visible: !dccData.model().isPrivateUpdate
184192
page: DccGroupView {
185193
height: implicitHeight + 10
186194
spacing: 0
@@ -245,15 +253,15 @@ DccObject {
245253

246254
DccObject {
247255
id: advancedSetting
248-
property bool showDetails: false
256+
property bool showDetails: dccData.model().isPrivateUpdate
249257
name: "advancedSettingTitle"
250258
parentName: "updateSettingsPage"
251259
displayName: qsTr("Advanced Settings")
252260
weight: 30
253261
pageType: DccObject.Item
254262
page: RowLayout {
255263
Component.onDestruction: {
256-
advancedSetting.showDetails = false
264+
advancedSetting.showDetails = false || dccData.model().isPrivateUpdate
257265
}
258266
DccLabel {
259267
property D.Palette textColor: D.Palette {
@@ -335,10 +343,10 @@ DccObject {
335343
DccObject {
336344
name: "upgradeDeliverySwitch"
337345
parentName: "upgradeDeliveryGrp"
338-
displayName: qsTr("Upgrade Delivery")
346+
displayName: qsTr("Delivery Optimization")
339347
description: qsTr("When enabled, your device may share previously downloaded system updates with other devices on your local network.When you turn it off, cached files from update delivery will be cleared during the next restart.")
340348
weight: 10
341-
enabled: !dccData.model().updateProhibited
349+
enabled: !dccData.model().isPrivateUpdate
342350
pageType: DccObject.Editor
343351
page: D.Switch {
344352
id: upgradeDeliverySwitch
@@ -365,7 +373,7 @@ DccObject {
365373
id: upgradeDeliveryUploadLimitSetting
366374
name: "upgradeDeliveryUploadLimitSetting"
367375
parentName: "upgradeDeliveryGrp"
368-
displayName: qsTr("Upgrade Delivery Upload Limit Setting")
376+
displayName: qsTr("Delivery Optimization-Upload throttling")
369377
visible: dccData.model().upgradeDeliveryEnable
370378
weight: 20
371379
enabled: !dccData.model().upgradeUploadSpeedIsOnline
@@ -465,9 +473,9 @@ DccObject {
465473
id: upgradeDeliveryDownloadLimitSetting
466474
name: "upgradeDeliveryDownloadLimitSetting"
467475
parentName: "upgradeDeliveryGrp"
468-
displayName: qsTr("Upgrade Delivery Download Limit Setting")
476+
displayName: qsTr("Delivery Optimization-Limit Speed")
469477
visible: dccData.model().upgradeDeliveryEnable
470-
weight: 20
478+
weight: 30
471479
enabled: !dccData.model().upgradeDownloadSpeedIsOnline
472480
pageType: DccObject.Item
473481
Connections {

src/dcc-update-plugin/translations/update_zh_CN.ts

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -443,20 +443,20 @@
443443
<translation>提供额外添加的仓库源更新内容</translation>
444444
</message>
445445
<message>
446-
<source>Upgrade Delivery</source>
446+
<source>Delivery Optimization</source>
447447
<translation>传递优化</translation>
448448
</message>
449449
<message>
450450
<source>When enabled, your device may share previously downloaded system updates with other devices on your local network.When you turn it off, cached files from update delivery will be cleared during the next restart.</source>
451451
<translation>开启此功能,你的设备可能会将以前下载的部分系统更新发送到本地网络的设备上。关闭此功能后,将在重启时清除传递优化时缓存的文件</translation>
452452
</message>
453453
<message>
454-
<source>Upgrade Delivery Download Limit Setting</source>
455-
<translation>下载限速</translation>
454+
<source>Delivery Optimization-Limit Speed</source>
455+
<translation>传递优化-下载限速</translation>
456456
</message>
457457
<message>
458-
<source>Upgrade Delivery Upload Limit Setting</source>
459-
<translation>上传限速</translation>
458+
<source>Delivery Optimization-Upload throttling</source>
459+
<translation>传递优化-上传限速</translation>
460460
</message>
461461
<message>
462462
<source>Limit Speed</source>
@@ -531,24 +531,20 @@
531531
<translation>只允许输入10-999999</translation>
532532
</message>
533533
<message>
534-
<source>Failed to change Upgrade Delivery setting</source>
534+
<source>Failed to change Delivery Optimization setting</source>
535535
<translation>更新传递优化服务异常</translation>
536536
</message>
537537
<message>
538-
<source>Update Delivery Optimization service exception. Failed to enable.</source>
539-
<translation>更新传递优化服务异常,开启失败</translation>
540-
</message>
541-
<message>
542-
<source>Update Delivery Optimization service exception. Failed to disable.</source>
543-
<translation>更新传递优化服务异常,关闭失败</translation>
538+
<source>Update Delivery Optimization service exception</source>
539+
<translation>更新传递优化服务异常</translation>
544540
</message>
545541
<message>
546542
<source>Retry</source>
547543
<translation>再试一次</translation>
548544
</message>
549545
<message>
550-
<source>OK</source>
551-
<translation>确定</translation>
546+
<source>Cancel</source>
547+
<translation>取消</translation>
552548
</message>
553549
<message>
554550
<source>Join the internal testing channel to get deepin latest updates.</source>

src/dcc-update-plugin/translations/update_zh_HK.ts

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -443,20 +443,20 @@
443443
<translation>提供額外添加的倉庫源更新內容</translation>
444444
</message>
445445
<message>
446-
<source>Upgrade Delivery</source>
446+
<source>Delivery Optimization</source>
447447
<translation>傳遞優化</translation>
448448
</message>
449449
<message>
450450
<source>When enabled, your device may share previously downloaded system updates with other devices on your local network.When you turn it off, cached files from update delivery will be cleared during the next restart.</source>
451451
<translation>開啟此功能,你的裝置可能會將以前下載的部分系統更新傳送到本地網絡的裝置上。關閉此功能後,將在重新啟動時清除更新傳遞時快取的檔案</translation>
452452
</message>
453453
<message>
454-
<source>Upgrade Delivery Download Limit Setting</source>
455-
<translation>下載限速</translation>
454+
<source>Delivery Optimization-Limit Speed</source>
455+
<translation>傳遞優化-下載限速</translation>
456456
</message>
457457
<message>
458-
<source>Upgrade Delivery Upload Limit Setting</source>
459-
<translation>上傳限速</translation>
458+
<source>Delivery Optimization-Upload throttling</source>
459+
<translation>傳遞優化-上傳限速</translation>
460460
</message>
461461
<message>
462462
<source>Limit Speed</source>
@@ -527,24 +527,20 @@
527527
<translation>只允許輸入1-99999</translation>
528528
</message>
529529
<message>
530-
<source>Failed to change Upgrade Delivery setting</source>
530+
<source>Failed to change Delivery Optimization setting</source>
531531
<translation>更新傳遞優化服務異常</translation>
532532
</message>
533533
<message>
534-
<source>Update Delivery Optimization service exception. Failed to enable.</source>
535-
<translation>更新傳遞優化服務異常,開啓失敗</translation>
536-
</message>
537-
<message>
538-
<source>Update Delivery Optimization service exception. Failed to disable.</source>
539-
<translation>更新傳遞優化服務異常,關閉失敗</translation>
534+
<source>Update Delivery Optimization service exception</source>
535+
<translation>更新傳遞優化服務異常</translation>
540536
</message>
541537
<message>
542538
<source>Retry</source>
543539
<translation>再試一次</translation>
544540
</message>
545541
<message>
546-
<source>OK</source>
547-
<translation>確定</translation>
542+
<source>Cancel</source>
543+
<translation>取消</translation>
548544
</message>
549545
<message>
550546
<source>Join the internal testing channel to get deepin latest updates.</source>

src/dcc-update-plugin/translations/update_zh_TW.ts

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -443,20 +443,20 @@
443443
<translation>提供額外新增的倉庫源更新內容</translation>
444444
</message>
445445
<message>
446-
<source>Upgrade Delivery</source>
446+
<source>Delivery Optimization</source>
447447
<translation>傳遞優化</translation>
448448
</message>
449449
<message>
450450
<source>When enabled, your device may share previously downloaded system updates with other devices on your local network.When you turn it off, cached files from update delivery will be cleared during the next restart.</source>
451451
<translation>開啟此功能,你的裝置可能會將以前下載的部分系統更新傳送到本機網路的裝置上。關閉此功能後,將在重新啟動時清除更新傳遞時快取的檔案</translation>
452452
</message>
453453
<message>
454-
<source>Upgrade Delivery Download Limit Setting</source>
455-
<translation>下載限速</translation>
454+
<source>Delivery Optimization-Limit Speed</source>
455+
<translation>傳遞優化-下載限速</translation>
456456
</message>
457457
<message>
458-
<source>Upgrade Delivery Upload Limit Setting</source>
459-
<translation>上傳限速</translation>
458+
<source>Delivery Optimization-Upload throttling</source>
459+
<translation>傳遞優化-上傳限速</translation>
460460
</message>
461461
<message>
462462
<source>Limit Speed</source>
@@ -527,24 +527,20 @@
527527
<translation>只允許輸入1-99999</translation>
528528
</message>
529529
<message>
530-
<source>Failed to change Upgrade Delivery setting</source>
530+
<source>Failed to change Delivery Optimization setting</source>
531531
<translation>更新傳遞優化服務異常</translation>
532532
</message>
533533
<message>
534-
<source>Update Delivery Optimization service exception. Failed to enable.</source>
535-
<translation>更新傳遞優化服務異常,開啟失敗</translation>
536-
</message>
537-
<message>
538-
<source>Update Delivery Optimization service exception. Failed to disable.</source>
539-
<translation>更新傳遞優化服務異常,關閉失敗</translation>
534+
<source>Update Delivery Optimization service exception</source>
535+
<translation>更新傳遞優化服務異常</translation>
540536
</message>
541537
<message>
542538
<source>Retry</source>
543539
<translation>再試一次</translation>
544540
</message>
545541
<message>
546-
<source>OK</source>
547-
<translation>確定</translation>
542+
<source>Cancel</source>
543+
<translation>取消</translation>
548544
</message>
549545
<message>
550546
<source>Join the internal testing channel to get deepin latest updates.</source>

0 commit comments

Comments
 (0)