Closed elrrrrrrr closed 1 week ago
The recent changes introduce new event types PACKAGE_BLOCKED
and PACKAGE_UNBLOCKED
in the event handling system, particularly in SyncESPackage.ts
. Additionally, PackageSearchService
now includes a repository to manage package version blocks. Testing has also been enhanced to ensure blocked packages can be handled appropriately through the new services.
Files / Paths | Change Summary |
---|---|
app/core/event/SyncESPackage.ts |
Added new event types PACKAGE_BLOCKED , PACKAGE_UNBLOCKED , updated event decorations for PackageUnpublished , PackageVersionAdded classes. |
app/core/service/PackageSearchService.ts |
Injected PackageVersionBlockRepository , added logic to handle package blocks before syncing. |
test/repository/SearchRepository.test.ts |
Included PackageManagerService , TestUtil , PackageSearchService , added test case for clearing a blocked package. |
In the realm of codes, where bytes do speak,
Packages blocked and unblocked, a brand new tweak,
Events now dance to a different beat,
Searching is smarter, challenges we meet,
With tests in place, our paths align,
Ever forward, in brilliance we'll shine! ✨🐰
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 96.81%. Comparing base (
753e519
) to head (69f800a
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit
New Features
PACKAGE_BLOCKED
andPACKAGE_UNBLOCKED
for better package management.Bug Fixes
Tests