cnpm / cnpmcore

Private NPM Registry for Enterprise
https://npmmirror.com
MIT License
622 stars 84 forks source link

fix: should search default packages when text is empty #623

Closed Beace closed 11 months ago

Beace commented 11 months ago

当搜索关键词为空时,不进行 ES 关键词搜索拼接,返回一个默认的全量数据排名。 close #622

codecov[bot] commented 11 months ago

Codecov Report

Attention: 167 lines in your changes are missing coverage. Please review.

Comparison is base (6624a36) 97.45% compared to head (244c06a) 96.83%. Report is 145 commits behind head on master.

Files Patch % Lines
config/config.default.ts 53.03% 31 Missing :warning:
.../port/controller/admin/PaddingVersionController.ts 48.83% 22 Missing :warning:
app/core/service/FixNoPaddingVersionService.ts 54.54% 15 Missing :warning:
app/core/service/PackageSearchService.ts 93.72% 15 Missing :warning:
app/core/service/PackageSyncerService.ts 85.84% 15 Missing :warning:
app/port/schedule/SyncBinaryWorker.ts 21.42% 11 Missing :warning:
app/repository/PackageVersionRepository.ts 87.95% 10 Missing :warning:
app/core/service/PackageVersionFileService.ts 91.48% 8 Missing :warning:
app/core/entity/PaddingSemVer.ts 88.00% 6 Missing :warning:
app/core/service/PackageVersionService.ts 94.91% 6 Missing :warning:
... and 11 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #623 +/- ## ========================================== - Coverage 97.45% 96.83% -0.62% ========================================== Files 168 180 +12 Lines 15691 17551 +1860 Branches 2018 2285 +267 ========================================== + Hits 15291 16996 +1705 - Misses 400 555 +155 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.