E52A Fix search total for short terms by jonasdekeukelaere · Pull Request #3441 · forkcms/forkcms · GitHub
[go: up one dir, main page]

Skip to content

Fix search total for short terms#3441

Merged
carakas merged 1 commit intoforkcms:masterfrom
jonasdekeukelaere:fix-search-total-for-short-terms
Aug 6, 2021
Merged

Fix search total for short terms#3441
carakas merged 1 commit intoforkcms:masterfrom
jonasdekeukelaere:fix-search-total-for-short-terms

Conversation

@jonasdekeukelaere
Copy link
Member

Type

  • Non critical bugfix

Pull request description

Just like we use a simple SQL query for the short terms for searching for results: https://github.com/forkcms/forkcms/blob/master/src/Frontend/Modules/Search/Engine/Model.php#L126 - we need this for the getTotal call, otherwise it might give the wrong total (0 in my case).

@codecov
Copy link
codecov bot commented Aug 5, 2021

Codecov Report

Merging #3441 (5eeaec8) into master (4b60c18) will increase coverage by 0.32%.
The diff coverage is 13.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3441      +/-   ##
============================================
+ Coverage     27.61%   27.94%   +0.32%     
- Complexity     8115     8131      +16     
============================================
  Files           572      573       +1     
  Lines         30975    30628     -347     
============================================
+ Hits           8553     8558       +5     
+ Misses        22422    22070     -352     
Flag Coverage Δ
functional 23.84% <28.57%> (+0.24%) ⬆️
installer 3.85% <0.00%> (+0.04%) ⬆️
unit 7.65% <28.57%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Frontend/Modules/Search/Engine/Model.php 34.05% <13.33%> (-1.18%) ⬇️
src/Backend/Modules/Pages/Engine/Model.php 19.08% <0.00%> (-0.50%) ⬇️
src/Common/Core/Cookie.php 64.28% <0.00%> (ø)
src/Common/Form/FileType.php 0.00% <0.00%> (ø)
src/Common/Form/ImageType.php 0.00% <0.00%> (ø)
src/Backend/Form/Type/MetaType.php 0.00% <0.00%> (ø)
src/ForkCMS/Utility/Geolocation.php 0.00% <0.00%> (ø)
src/ForkCMS/Google/TagManager/DataLayer.php 0.00% <0.00%> (ø)
src/ForkCMS/Google/TagManager/TagManager.php 0.00% <0.00%> (ø)
...ckend/Modules/MediaLibrary/Manager/TreeManager.php 0.00% <0.00%> (ø)
... and 38 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88b5830...5eeaec8. Read the comment docs.

@carakas carakas added this to the 5.11.0 milestone Aug 6, 2021
@carakas carakas merged commit 79d8054 into forkcms:master Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0