7396 Commits

Author SHA1 Message Date
openharmony_ci 0b0163890b !5002 merge master into master
输入不足告警整改-问题-SA发通知失败

Created-by: lx180327070811
Commit-by: g00586423
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!5002
2026-08-23 19:24:28 +08:00
g00586423 ffe2be4520 输入不足告警整改-问题-SA发通知失败
Co-Authored-By: Agent
Signed-off-by: g00586423 <guxiang11@huawei.com>
2026-08-23 18:20:03 +08:00
openharmony_ci 511aa556b6 !4924 merge master into master
输入不足告警整改

Created-by: lx180327070811
Commit-by: g00586423
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4924
2026-08-23 11:33:29 +08:00
g00586423 641224f6db 输入不足告警整改
Signed-off-by: g00586423 <guxiang11@huawei.com>
2026-08-23 10:13:05 +08:00
openharmony_ci fcb54ae4f9 !4997 merge master into master
AI检视意见修复 Co-Authored-By:Agent

Created-by: xdongs2009
Commit-by: xdongs2009
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4997
2026-08-22 17:43:50 +08:00
xdongs2009 4b25f48f6e Merge branch 'master' of https://gitcode.com/xdongs2009/notification_distributed_notification_service
resolve
2026-08-22 11:08:48 +08:00
xdongs2009 99b66ae400 AI检视意见修复 Co-Authored-By:Agent
Signed-off-by: xdongs2009 <xdongs@163.com>
2026-08-22 10:06:32 +08:00
openharmony_ci 1d8f58784d !4959 merge feature/remove-unused-rdb-data-mgr into master
Remove unused NotificationDataMgr and related dead code

Created-by: stepend98
Commit-by: stepend98
Merged-by: openharmony_ci
Description: ## 变更说明

通知偏好设置持久化已迁移至 `Infra::NotificationRdbMgr`(`Domain::GetAnsNotificationRdbMgrInstance()`),遗留的 `NotificationDataMgr` 类已无任何业务代码引用。本 PR 清理该死代码,并已 rebase 到最新 upstream/master(解决 `services/ans/test/unittest/BUILD.gn` 冲突,保留上游 `ans_service_sources_test` 依赖调整)。

### 删除
- `services/ans/include/notification_rdb_data_mgr.h` / `services/ans/src/notification_rdb_data_mgr.cpp`(NotificationDataMgr 类)
- `services/ans/test/unittest/notification_rdb_data_mgr_test/` 下 4 个单测源文件及对应 BUILD.gn 目标

### 修改
- `advanced_notification_event_service.cpp`:移除死掉的 `NotificationDataMgr` 成员函数(SendUserDataSizeHisysevent / GetFileOrFolderSize / GetRemainPartitionSize)
- `notification_preferences_database.h`:移除失效 include
- `notification_preferences_database.cpp`:补充 `rdb_errno.h` include
- `mock_notification_rdb_data_mgr.cpp`:移除 `NotificationDataMgr` mock 实现(保留 `Infra::NotificationRdbMgr` mock 与 Mock* 工具函数)
- `AGENTS.md`:更新偏好设置/持久化代码路由指向 `services/infrastructure/external_adapter/rdb/` + `services/domain/settings/rdb_mgr_repo/`

### 影响面
纯死代码清理,无行为变更,不影响任何公共 API / IPC 接口 / 权限行为。

Fixes #4306

See merge request: openharmony/notification_distributed_notification_service!4959
2026-08-21 15:30:11 +08:00
openharmony_ci 390c6f4381 !4994 merge master into master
Add notification disable condition to determine if ringing is required.

Created-by: let_it_rot
Commit-by: let_it_rot
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4994
2026-08-21 12:40:02 +08:00
let_it_rot 35b4906d36 Add notification disable condition to determine if ringing is required.
Signed-off-by: let_it_rot <gaojiaqi7@h-partners.com>

Co-Authored-By: Agent
2026-08-20 16:20:53 +08:00
openharmony_ci cd1420725b !4996 merge master into master
extendInfo增加createTime Co-Authored-By:Agent

Created-by: xdongs2009
Commit-by: xdongs2009
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4996
2026-08-19 18:20:54 +08:00
openharmony_ci 3947c75def !4991 merge master into master
处理异回调资源

Created-by: yi-zihan1
Commit-by: yizihan
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4991
2026-08-19 18:00:17 +08:00
stepend98 5cc10d58fd Remove unused NotificationDataMgr and related dead code
The notification preferences database has migrated to
Infra::NotificationRdbMgr via Domain::GetAnsNotificationRdbMgrInstance().
Remove the legacy NotificationDataMgr class, its unit tests and mock
implementations, and update BUILD.gn files and AGENTS.md accordingly.

Co-Authored-By: Agent
Signed-off-by: stepend98 <yangjun273@huawei.com>
Change-Id: Ie7cb8a875e8d33fe662a45485824175ca22a355f
2026-08-19 17:23:53 +08:00
xdongs2009 010b93b538 extendInfo增加createTime Co-Authored-By:Agent
Signed-off-by: xdongs2009 <xdongs@163.com>
2026-08-19 16:50:03 +08:00
openharmony_ci e2489e0d83 !4976 merge fix/mst-rdb-isolation-v2 into master
fix(test): auto-isolate all test RDB via ans_service_sources_test wrapper

Created-by: cheerful_ricky
Commit-by: CheerfulRicky
Merged-by: openharmony_ci
Description: ## 背景

测试套(含新增)若未显式引入 RDB mock,会经 `NotificationRdbMgr` 连到真实 `notificationdb.db`,运行后文件属主变 `root`,导致 ANS 服务无法加载数据库。`ClearNotificationInRestoreFactorySettings` 相关测试已修(PR #4928),但其他测试/新增测试仍需手动加 mock,易遗漏。

## 方案

新增 `ans_service_sources_test`(`ohos_static_library`,`testonly`),包装 `ans_service_sources` 并自动提供 `mock_ans_rdb_mgr_builder` 强符号 override(隔离临时库)。所有测试目标改依赖 `ans_service_sources_test` 而非 `ans_service_sources`,**新增测试套自动获得 RDB 隔离,无需手动改动**。

`ans_service_sources_test_config` 向测试目标传播全部所需 include 路径(ans/rdb/mock 头)。mock 源编译进静态库一次,规避 source_set 在每个依赖者上下文重编译导致的 include 路径传播问题。

## 变更

- `services/ans/BUILD.gn`:新增 `ans_service_sources_test_config` + `ans_service_sources_test`(testonly 静态库)
- 全部测试 BUILD.gn(services/ans/test/unittest、aggregation/badge/advanced_notification_service_test、services/test/moduletest、frameworks/test/moduletest、services/domain、tools、bechmarktest、fuzztest、.gni):依赖 `ans_service_sources` → `ans_service_sources_test`

## 验证

- `distributed_notification_service_unit_test` 编译通过
- 设备全量 unittest 通过率 99.5%(3255/3273),18 失败均在我未改的二进制(预存)
- 真实 `notificationdb.db` 未被破坏

Co-Authored-By: Agent

See merge request: openharmony/notification_distributed_notification_service!4976
2026-08-19 15:11:48 +08:00
openharmony_ci 136470a5b3 !4988 merge master into master
gn adapt

Created-by: let_it_rot
Commit-by: let_it_rot
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4988
2026-08-19 14:36:27 +08:00
openharmony_ci 9a00f3bf96 !4992 merge fix/test-health-whitelist-isolation into master
fix(ans): clean up HEALTH_BUNDLE_WHITE_LIST in test TearDown to prevent DB residue

Created-by: stepend98
Commit-by: stepend98
Merged-by: openharmony_ci
Description: ## 问题

`CheckHealthWhiteList_300` 在 `9023b1a0` 提交后失败,之前一直通过。

## 根因

两步叠加导致的测试间 DB 残留:

1. **`health_white_list_util_test` 写入未清理**:`ParseDbDate_300` / `CheckInLiveViewList_300` / `CheckInLiveViewList_400` 等用例向 RDB 写入 `HEALTH_BUNDLE_WHITE_LIST_KEY = ["testBundleName"]`,`TearDown` 为空,数据残留到设备 RDB。

2. **`9023b1a0` 移除了 `SyncSubmit` 保护**:`RemoveAllNotificationsByBundleName`(通过 `notificationSvrQueue_.SyncSubmit` 执行)改为 `ExcuteRemoveAllNotificationsByBundleName`(直接执行)。之前 `SyncSubmit` 在 `queue_` 为 nullptr 时短路返回错误,`ProcForDeleteNotificationFromDb` 不执行,不触碰 `NotificationPreferences`,RDB 保持未初始化;`CheckHealthWhiteList_300` 中 `CheckRdbStore()` 返回 false,`GetKvFromDb` 返回空,`ParseDbDate` 返回 false,`CheckInLiveViewList` 返回 true,**测试通过**。

   改为直接执行后,`ProcForDeleteNotificationFromDb` → `DoubleDeleteNotificationFromDb` → `NotificationPreferences::DeleteKvFromDb` → `CheckRdbStore()` → `rdbDataManager_->Init()` 成功,RDB 被初始化。后续 `smart_reminder_center_test` 中 `CheckRdbStore()` 返回 true,`GetKvFromDb` 读到残留 `["testBundleName"]`,`testBundleName1` 不在列表中,返回 false,**测试失败**。

## 修复

| 文件 | 改动 | 目的 |
|---|---|---|
| `health_white_list_util_test.cpp` | `TearDown` 中 `SetKvToDb(HEALTH_BUNDLE_WHITE_LIST_KEY, "", -1)` | 根因:清除每个用例写入的残留 |
| `smart_reminder_center_test.cpp` | `CheckHealthWhiteList_300` 开头 `SetKvToDb("HEALTH_BUNDLE_WHITE_LIST", "", -1)` | 防御:使测试自包含,不依赖运行顺序和设备状态 |

## 验证

```
./build.sh --product-name rk3568 --build-target distributed_notification_service_unit_test
```

Fixes #4337

See merge request: openharmony/notification_distributed_notification_service!4992
2026-08-19 09:28:15 +08:00
openharmony_ci 0473fffaec !4985 merge fix/remove-notifications-queue-concurrency into master
fix(ans): execute removeAllNotifications in queue task for concurrency safety

Created-by: stepend98
Commit-by: stepend98
Merged-by: openharmony_ci
Description: ## 变更说明

修复 `DisableNotificationFeature` 禁用通知特性流程中清空通知列表操作未在服务端串行队列内执行的并发风险。

### 主要变更

1. **`advanced_notification_service.cpp`**:将 `ExcuteRemoveAllNotificationsByBundleName` 和 `RemoveAllFromSnoozeDelayListByUser` 调用从队列任务外移入 `notificationSvrQueue_` 任务内,确保对 `notificationList_` 的所有访问在统一队列串行化。

2. **`advanced_notification_publish_service.cpp`**:将原 `RemoveAllNotificationsByBundleName`(public,含队列提交与错误处理)重构为私有方法 `ExcuteRemoveAllNotificationsByBundleName`,仅执行实际的清空逻辑,避免在已被队列任务调用时重复提交队列。

3. **`advanced_notification_service.h`**:将方法声明从 public 移至 private 区域并重命名。

4. **`clone/*_bundle_service.cpp`**:将 `std::unique_lock lock(lock_)` 获取前移至日志输出前,避免日志读取 `bundlesInfo_.size()` 时的潜在数据竞争。

5. **`advanced_notification_geofence_service.cpp`**:移除冗余调试日志。

6. 同步更新单元测试与模糊测试用例调用。

### 验证

- 单元测试 `RemoveAllNotificationsByBundleName_*` 已同步更新为新方法签名
- 模糊测试 `service_private_utils_a` 已同步更新

Fixes #4332

See merge request: openharmony/notification_distributed_notification_service!4985
2026-08-19 09:20:41 +08:00
openharmony_ci 9276bea52e !4990 merge master into master
c_util整改test中的依赖传递问题,test增加bounds_checking_function

Created-by: hanwenhui
Commit-by: hanwenhui
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4990
2026-08-18 20:29:14 +08:00
stepend98 4f1a8d3cb3 fix(ans): clean up HEALTH_BUNDLE_WHITE_LIST in test TearDown to prevent DB residue
CheckHealthWhiteList_300 fails when health_white_list_util_test leaves
HEALTH_BUNDLE_WHITE_LIST_KEY data in RDB without cleanup, and a subsequent
test (advanced_notification_publish_service_test after 9023b1a0 switched
to direct ExcuteRemoveAllNotificationsByBundleName) initializes RDB via
ProcForDeleteNotificationFromDb -> CheckRdbStore. The residual data
["testBundleName"] causes CheckInLiveViewList("testBundleName1") to
return false.

Fix:
1. health_white_list_util_test: add TearDown to clear DB key after each case
2. smart_reminder_center_test: clear DB at start of CheckHealthWhiteList_300
   for self-contained test isolation

Co-Authored-By: Agent
Signed-off-by: stepend98 <yangjun273@huawei.com>
Change-Id: I5815d209635ea7d815a93075f411106a80e1c670
2026-08-18 20:00:15 +08:00
hanwenhui ac3233f14d update: 更新文件 bundle.json
Signed-off-by: hanwenhui <hanwenhui2@h-partners.com>
2026-08-18 16:53:44 +08:00
hanwenhui 9b0cd02617 Merge https://gitcode.com/hanwenhui/notification_distributed_notification_service
Signed-off-by: hanwenhui <hanwenhui2@h-partners.com>
2026-08-18 16:46:09 +08:00
hanwenhui f4cecc4f05 Co-Authored-By: hanwenhui
Signed-off-by: hanwenhui <hanwenhui2@h-partners.com>
2026-08-18 16:40:29 +08:00
openharmony_ci 0f2a3a37d9 !4986 merge master into master
翻译更新0813 Co-Authored-By:xdongs2009

Created-by: xdongs2009
Commit-by: xdongs2009
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4986
2026-08-18 16:35:54 +08:00
yizihan c003455997 处理异回调资源
Signed-off-by: yizihan <yizihan@huawei.com>
Co-Authored-By: Agent
2026-08-18 16:22:56 +08:00
let_it_rot 79d36a43b0 gn adapt
Signed-off-by: let_it_rot <gaojiaqi7@h-partners.com>
2026-08-18 14:55:09 +08:00
hanwenhui 179195860c Co-Authored-By: hanwenhui
Signed-off-by: hanwenhui <hanwenhui2@h-partners.com>
2026-08-18 11:47:47 +08:00
xdongs2009 1a14086505 翻译更新0813 Co-Authored-By:xdongs2009
Signed-off-by: xdongs2009 <xdongs@163.com>
2026-08-18 11:01:31 +08:00
stepend98 9023b1a025 fix(ans): execute removeAllNotifications in queue task for concurrency safety
Co-Authored-By: Agent
Signed-off-by: stepend98 <yangjun273@huawei.com>
Change-Id: Ib0f993a145bbb0faddd5f7fc4b748d8168dda4c1
2026-08-17 20:43:54 +08:00
openharmony_ci fb455e5b18 !4984 merge master into master
处理静态告警

Created-by: yi-zihan1
Commit-by: yizihan
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4984
2026-08-15 17:15:33 +08:00
yizihan 56bc361a00 处理静态告警
Signed-off-by: yizihan <yizihan@huawei.com>
Co-Authored-By: Agent
2026-08-15 11:35:15 +08:00
openharmony_ci a175392373 !4975 merge master into master
Group the boolean behavior flags previously scattered across function signatures into the...

Created-by: let_it_rot
Commit-by: let_it_rot
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)

Group the boolean behavior flags previously scattered across function signatures into the ShowLimit struct, and use a new isUpdateDeliveryTime flag to control whether the notification delivery time is refreshed when showing a reminder.

- Add isPlaySound/isSysTimeChanged/isCloseDefaultSound/isSlienceNotification fields to ShowLimit in reminder_data_manager.h
- Add isUpdateDeliveryTime field (default true) to ShowLimit
- ShowReminder: signature changes to (reminder, const ShowLimit& limits); pass limits.isUpdateDeliveryTime through to ReminderRequest::UpdateNotificationRequest
- HandleImmediatelyShow: signature changes to (vector, ShowLimit&, size_t index = 0); OnShow and the recursive ffrt callback now read isSysTimeChanged/isSlienceNotification from limits
- Update all call sites (OnLanguageChanged, LoadShareReminders, UpdateShareReminders, OnDataShareInsertOrDelete, InitShareReminders, boot complete, system time change, ShowActiveReminder) to populate the relevant flags on a local ShowLimit before invoking
- isUpdateDeliveryTime is true only for normal timer trigger (ShowActiveReminder) and system time change trigger; false for all other cases (boot, init, data share, language change)
- Update unit test and both fuzz harnesses to the new signatures
![image.png](https://raw.gitcode.com/user-images/assets/4402302/9b4a97eb-5751-40f6-b5ba-96744735226b/image.png 'image.png')
### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4975
2026-08-14 18:56:39 +08:00
CheerfulRicky fe8ae95ff0 fix(test): auto-isolate all test RDB via ans_service_sources_test wrapper
Add ans_service_sources_test (ohos_static_library, testonly) that wraps ans_service_sources and automatically provides the mock_ans_rdb_mgr_builder strong override (isolated temp DB). All test targets now depend on ans_service_sources_test instead of ans_service_sources, so new test suites automatically get RDB isolation without manual changes.

ans_service_sources_test_config propagates all needed include paths (ans headers, rdb headers, mock headers) to test targets. The mock source (mock_ans_rdb_mgr_builder.cpp) is compiled once into the static lib, avoiding include-path propagation issues with source_set recompilation.

Co-Authored-By: Agent
Signed-off-by: CheerfulRicky <yuegang7@h-partners.com>
Change-Id: Ieafd58f9f1e1433e3381c89a8c105f7191662986
Signed-off-by: CheerfulRicky <yuegang7@h-partners.com>
2026-08-14 16:24:58 +08:00
openharmony_ci 9eefa404f8 !4983 merge fix/bundle-slots-userid-from-caller into master
fix(ans): set appName and appIndex in missing publish flows

Created-by: cheerful_ricky
Commit-by: CheerfulRicky
Merged-by: openharmony_ci
Description: ## 变更说明

修复 `PublishNotificationForIndirectProxy` 和 `PrepareContinuousTaskNotificationRequest` 两个发布流程未设置 `appName` 和 `appIndex` 的问题。

## 问题背景

通知发布时需要往 `NotificationRequest` 中设置 `appName` 和 `appIndex`,当前已有两条主路径正确设置:
- `PrepareNotificationRequest()`(HAP 应用发布)
- `PrePublishNotificationBySa()`(SA 系统服务发布)

但以下发布流程遗漏了设置:
1. **PublishNotificationForIndirectProxy** — 间接代理发布(ANCO)
2. **PrepareContinuousTaskNotificationRequest** — 连续任务通知发布

这导致订阅者通过 `notificationRequest->GetAppName()` / `GetAppIndex()` 获取到空值。

## 修改内容

### 1. `advanced_notification_publish.cpp` — PublishNotificationForIndirectProxy
在 `SetOwnerBundleName` 之后添加 `SetAppName` / `SetAppIndex`,使用 `ownerBundleName` 和 `ownerUid`(均已在上文设置)。
此修改同时覆盖子路径 `SaPublishSystemLiveViewAsBundle`。

### 2. `advanced_notification_utils.cpp` — PrepareContinuousTaskNotificationRequest
在 `CheckPictureSize` 成功后添加 `SetAppName` / `SetAppIndex`。appName 使用 `ownerBundleName`(已由调用方设置为 `FOUNDATION_BUNDLE_NAME`),appIndex 使用函数参数 `uid`(SA calling uid)。

## 验证

```bash
./build.sh --product-name rk3568 --build-target distributed_notification_service
./build.sh --product-name rk3568 --build-target distributed_notification_service_unit_test
```

Co-Authored-By: Agent

See merge request: openharmony/notification_distributed_notification_service!4983
2026-08-14 15:40:26 +08:00
CheerfulRicky fd9e051b4f fix(ans): set appName and appIndex in missing publish flows
PublishNotificationForIndirectProxy and PrepareContinuousTaskNotificationRequest
were not setting appName/appIndex on NotificationRequest, causing subscribers
to receive empty values. Add the standard SetAppName/SetAppIndex calls using
BundleManagerHelper, consistent with PrepareNotificationRequest and
PrePublishNotificationBySa.

Co-Authored-By: Agent
Signed-off-by: CheerfulRicky <yuegang7@h-partners.com>
Change-Id: I7714abda9278dd584d5d772157838929822209ec
2026-08-14 14:21:33 +08:00
openharmony_ci 7b8a2b53c4 !4980 merge master into master
ace_napi整改,独立增加libuv和node依赖和ans子领域整改

Created-by: hanwenhui
Commit-by: hanwenhui
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4980
2026-08-14 11:00:03 +08:00
hanwenhui 36699a8655 Co-Authored-By: hanwenhui
Signed-off-by: hanwenhui <hanwenhui2@h-partners.com>
2026-08-13 11:29:23 +08:00
hanwenhui 38fcba8182 Co-Authored-By:hanwenhui
Signed-off-by: hanwenhui <hanwenhui2@h-partners.com>
2026-08-12 19:17:21 +08:00
openharmony_ci f6fbcceeaf !4977 merge master into master
isShared按照number类型解析 Co-Authored-By:Agent

Created-by: xdongs2009
Commit-by: xdongs2009
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4977
2026-08-12 18:53:49 +08:00
xdongs2009 e4690bcda3 isShared按照number类型解析 Co-Authored-By:Agent
Signed-off-by: xdongs2009 <xdongs@163.com>
2026-08-12 15:36:30 +08:00
let_it_rot c190dd678e Group the boolean behavior flags previously scattered across function
signatures into the ShowLimit struct, and use a new isUpdateDeliveryTime
flag to control whether the notification delivery time is refreshed when
showing a reminder.
- Add isPlaySound/isSysTimeChanged/isCloseDefaultSound/isSlienceNotification
  fields to ShowLimit in reminder_data_manager.h
- Add isUpdateDeliveryTime field (default true) to ShowLimit
- ShowReminder: signature changes to (reminder, const ShowLimit& limits);
  pass limits.isUpdateDeliveryTime through to ReminderRequest::
  UpdateNotificationRequest
- HandleImmediatelyShow: signature changes to (vector, ShowLimit&,
  size_t index = 0); OnShow and the recursive ffrt callback now read
  isSysTimeChanged/isSlienceNotification from limits
- Update all call sites (OnLanguageChanged, LoadShareReminders,
  UpdateShareReminders, OnDataShareInsertOrDelete, InitShareReminders,
  boot complete, system time change, ShowActiveReminder) to populate the
  relevant flags on a local ShowLimit before invoking
- isUpdateDeliveryTime is true only for normal timer trigger
  (ShowActiveReminder) and system time change trigger; false for all
  other cases (boot, init, data share, language change)
- Update unit test and both fuzz harnesses to the new signatures

Signed-off-by: let_it_rot <gaojiaqi7@h-partners.com>

Co-Authored-By: Agent
2026-08-12 15:27:22 +08:00
openharmony_ci 5dc876e8cc !4967 merge master into master
Refactoring calendar reminder with repeated triggering of time calculation for month and day, and fixing multiple defects

Created-by: let_it_rot
Commit-by: let_it_rot
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)

Refactoring calendar reminder with repeated triggering of time calculation for month and day, and fixing multiple defects

Abandoning the old GetNextDay+monthly jump algorithm and replacing it with a single-layer monthly jump scheme based on absolute month numbers,
Year=absMonth/12 automatically crosses years, eliminating the hidden danger of manual setYear accumulation. Fix the following defects:

1. Multiple accumulations of setYear after the New Year result in a delay of 1 to N years in the next cycle
2. The candidate trigger time is earlier than the start date of firstDesignate
3. When firstDesignate exceeds the coverage range of the loop, it is misjudged as expired
4. setDay=255 is incorrectly normalized by mktime (such as invalid configuration for Hb 30)

Scan range expanded to 5 years, correctly handling the leap year cycle on February 29th.
Add 10 regression tests covering all reachable branches, constructed based on relative time to ensure future feasibility.
![image.png](https://raw.gitcode.com/user-images/assets/4402302/c7bede8b-01be-4b6a-84b0-2063c52a1edf/image.png 'image.png')
### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4967
2026-08-11 21:37:58 +08:00
openharmony_ci 06bf340333 !4970 merge master into master
图标标题按钮不滚动 Co-Authored-By:Agent

Created-by: xdongs2009
Commit-by: xdongs2009
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4970
2026-08-11 15:08:32 +08:00
openharmony_ci d73a6bff82 !4969 merge master into master
修改新材质形变问题

Created-by: yi-zihan1
Commit-by: yizihan
Merged-by: openharmony_ci
Description: 回退新材质

See merge request: openharmony/notification_distributed_notification_service!4969
2026-08-11 14:44:31 +08:00
openharmony_ci 748cb7c4e3 !4965 merge fix/4312-soundhelper-exit-uaf into master
fix(ans): fix exit-time UAF in SystemSoundHelper and NotificationTimerInfo

Created-by: cheerful_ricky
Commit-by: CheerfulRicky
Merged-by: openharmony_ci
Description: ## 修复内容

修复 `ServicePrivateUtilsBFuzzTest` 中发现的 3 个 heap-use-after-free 问题(Closes #4312)。

### UAF 1(Issue 正文):Uri::Marshalling 退出时 UAF

**根因**:`SystemSoundHelper` 的 2s 延迟任务在 `soundHelperQueue` 上堆积,`SelfClean(false)` 不排空该队列,导致进程 `exit()` 时 `atexit` 析构全局 `Uri` 对象后,FFRT worker 仍在执行延迟任务并访问已释放内存。

**修复**:
- 移除 `TASK_DELAY`(2s 延迟),任务立即执行
- 新增 `WaitForFfrtQueue()` 方法,在 `SelfClean(false)` 中排空 `soundHelperQueue`

### UAF 2(Comment 0):GetInstance() ffrt::mutex 死锁检测 UAF

**根因**:`NotificationTimerInfo::OnTrigger()` 调用 `GetInstance()` 获取 `ffrt::mutex` 锁,触发 `ets_utils` 死锁检测机制访问已被 `atexit` 析构的全局 `std::function`。

**修复**:
- `NotificationTimerInfo` 构造函数接收 `wptr<AdvancedNotificationService>`,`OnTrigger()` 用 `promote()` 替代 `GetInstance()`,避免获取锁
- 清理 `OnTrigger` 代码风格:`std::bind` → lambda,`GetCallBack()`/`SetCallbackInfo()` 加锁访问

### UAF 3(Comment 1):graphics_effect 全局字符串 dlopen 时 UAF

**根因**:与 1 相同——延迟任务在退出时仍在执行 `dlopen`,触发 `libgraphics_effect` 全局构造函数访问已析构的全局 string。由 1 的修复一并解决。

### 额外优化

整合 `ResetQueue`/`WaitForFfrtQueue` 为单个 `WaitForFfrtQueue(bool reset = false)` 方法,减少符号数量。

## 变更文件

| 文件 | 变更 |
|---|---|
| `notification_timer_info.h` | 构造函数加 `wptr<service>` 参数,删 `SetService` |
| `notification_timer_info.cpp` | `OnTrigger` 用 `promote()` + lambda + 加锁访问 |
| `system_sound_helper.h` | `ResetQueue` → `WaitForFfrtQueue(bool reset = false)` |
| `system_sound_helper.cpp` | 移除 `TASK_DELAY`,合并 `ResetQueue`/`WaitForFfrtQueue` |
| `advanced_notification_service.cpp` | `SelfClean` 两个分支更新调用 |
| `advanced_notification_utils.cpp` | `make_shared<NotificationTimerInfo>(wThis)` |
| `advanced_notification_live_view_service.cpp` | 同上 |
| `snooze_delay_manager.cpp` | 调整 wThis 顺序 + 构造传入 |
| `system_sound_helper_test.cpp` | 更新测试用例 |

## 构建验证

-  `distributed_notification_service`(生产代码)
-  `distributed_notification_service_unit_test`(单元测试)
-  `distributed_notification_service_fuzz_test`(模糊测试)

Co-Authored-By: Agent

See merge request: openharmony/notification_distributed_notification_service!4965
2026-08-11 14:15:29 +08:00
xdongs2009 0356909ebd 图标标题按钮不滚动 Co-Authored-By:Agent
Signed-off-by: xdongs2009 <xdongs@163.com>
2026-08-11 11:41:30 +08:00
yizihan 6a33ebb4af 回退新材质
Signed-off-by: yizihan <yizihan@huawei.com>
Co-Authored-By: yizihan
2026-08-11 11:37:38 +08:00
let_it_rot 08870ddb32 Refactoring calendar reminder with repeated triggering of time calculation for month and day, and fixing multiple defects
Abandoning the old GetNextDay+monthly jump algorithm and replacing it with a single-layer monthly jump scheme based on absolute month numbers,
Year=absMonth/12 automatically crosses years, eliminating the hidden danger of manual setYear accumulation. Fix the following defects:

1. Multiple accumulations of setYear after the New Year result in a delay of 1 to N years in the next cycle
2. The candidate trigger time is earlier than the start date of firstDesignate
3. When firstDesignate exceeds the coverage range of the loop, it is misjudged as expired
4. setDay=255 is incorrectly normalized by mktime (such as invalid configuration for Hb 30)

Scan range expanded to 5 years, correctly handling the leap year cycle on February 29th.
Add 10 regression tests covering all reachable branches, constructed based on relative time to ensure future feasibility.

Signed-off-by: let_it_rot <gaojiaqi7@h-partners.com>

Co-Authored-By: Agent
2026-08-11 11:18:10 +08:00
openharmony_ci ca2c436298 !4966 merge master into master
修改新材质形变问题

Created-by: yi-zihan1
Commit-by: yizihan
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)



### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/notification_distributed_notification_service!4966
2026-08-11 10:03:10 +08:00
yizihan 1d25fa0d0b 修改新材质形变问题
Signed-off-by: yizihan <yizihan@huawei.com>
Co-Authored-By: yizihan
2026-08-10 21:05:26 +08:00