halo-dev / halo

强大易用的开源建站工具。
https://www.halo.run
GNU General Public License v3.0
33.44k stars 9.62k forks source link

Fix the problem of null type of search result #6241

Closed JohnNiang closed 3 months ago

JohnNiang commented 3 months ago

What type of PR is this?

/kind bug /area core /milestone 2.17.0

What this PR does / why we need it:

This PR adds missed type to HaloDocument while converting.

Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/6235

Does this PR introduce a user-facing change?

None
codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 57.14%. Comparing base (bc10336) to head (220a27b). Report is 48 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6241 +/- ## ============================================ + Coverage 54.51% 57.14% +2.63% - Complexity 3523 3717 +194 ============================================ Files 646 648 +2 Lines 21862 21980 +118 Branches 1528 1538 +10 ============================================ + Hits 11917 12560 +643 + Misses 9328 8809 -519 + Partials 617 611 -6 ```

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

f2c-ci-robot[bot] commented 3 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: guqing

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/halo-dev/halo/blob/main/OWNERS)~~ [guqing] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment