-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: auto remove blocked package on sync process (#700)
> remove es index when the target pkg has been blocked or deleted. 1. ⚓ update `SyncESPackage` logic for event register 2. ♻️ do the block check when `syncPackage` --------- > 包删除或被 block 时,es 索引同步删除 1. ⚓ 修改 `SyncESPackage` 逻辑,更新事件注册 2. ♻️ `syncPackage` 时,重新判断包是否被 block,用于清理 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced event types `PACKAGE_BLOCKED` and `PACKAGE_UNBLOCKED` for better package management. - **Bug Fixes** - Improved logic to handle package blocks before syncing, ensuring smoother operations. - **Tests** - Added test scenarios to cover new package blocking and unblocking features, enhancing reliability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
3 changed files
with
87 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters