feat(updateplatform): Add Helper support for machineID retrieval and policy check interval configuration#291
Conversation
f326a30 to
e65a45e
Compare
and policy check interval configuration - Added CheckPolicyInterval and GetHardwareIdByHelper fields to the configuration structure; - Added SetCheckPolicyInterval and SetStartCheckRange methods to support dynamic adjustment of policy check configurations; - Updated UpdatePlatformManager to support retrieving the machineID via Helper, and added task ID management and event reporting capabilities; - Implemented the UpdateSourceList method for maintaining private repository source files; - Modified the hardware ID retrieval logic to add functionality for obtaining the hardware ID via the DBus sync helper; - Updated the Token configuration file generation logic to support the new hardware ID retrieval method; - Synchronized Token generation updates in the GatherInfo and CheckPolicy tools to ensure authentication consistency; - Added read/write methods for the cached task ID file to ensure task information persistence and reading accuracy. Task: https://pms.uniontech.com/task-view-385321.html
e65a45e to
8b6d390
Compare
deepin pr auto review这份代码主要增加了通过DBus从helper服务获取硬件ID的功能,引入了策略检查时间间隔的配置,并增加了任务ID和事件上报的相关逻辑。以下是我的审查意见: 1. 语法与逻辑
2. 代码质量
3. 代码性能
4. 代码安全
5. 其他建议
总结代码整体逻辑清晰,功能扩展合理。主要改进点在于:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: electricface, zhaohuiw42 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 |
f93d14c
into
linuxdeepin:intranet_update
the configuration structure;
support dynamic adjustment of policy check configurations;
via Helper, and added task ID management and event reporting
capabilities;
repository source files;
for obtaining the hardware ID via the DBus sync helper;
the new hardware ID retrieval method;
CheckPolicy tools to ensure authentication consistency;
task information persistence and reading accuracy.
Task: https://pms.uniontech.com/task-view-385321.html