User tests: Successful: Unsuccessful:
[UPDATED (8.1.2017) - see third paragraph]
Some optimization and cleanup work on the indexer part, which might improve its performance a bit.
fr.php
getStem() method (given that this part did work correctly in this state). The explanation is that the condition if (($matches[2] != '*') || ($intact))
was always true because of $intact
being always true. So this part was removed. The associated else
part was removed for the same reason.query.php
on lines 197
& 207
where previously checks were performed on the wrong options.!empty($var)
methods with a faster alternative which is (bool) $var
.!empty()
(Which basically seems to be the inversion of !empty()
, see here).The rest is some cleanup and optimizations here and there:
token
in order to not adding them dynamically, which is more expensive[Update 8.1.2017]
Since this PR, I have also submitted a few others relating to the indexer. These should best be merged before this one. After that, I can resolve the conflicts, here.
Code review should suffice
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Administration Components CLI |
Category | Administration Components CLI | ⇒ | Administration com_finder CLI Components |
I have tested this item
code review
I wonder if this one could get pushed to the top, as it provides a few optimizations, that especially in this case could make a difference in performance, because of the many loops and comparisons, etc.
@andrepereiradasilva & @Quy could you guys give a green light for this PR? You have already done the code review in the past and there were only minor changes to this PR as @Quy proposed. Thanks guys.
Bump @wilsonge would be nice if we can also get this in? @andrepereiradasilva had tested it and @Quy had a few suggestions, which I adapted afterwards. Essentially we have one successful test at the moment, with a few minor changes afterwards.
To reproduce:
Clear Index
button.Index
button.In the PHP error log:
PHP Notice: Trying to get property 'term' of non-object in \administrator\components\com_finder\helpers\indexer\indexer.php on line 523
PHP Notice: Trying to get property 'stem' of non-object in \administrator\components\com_finder\helpers\indexer\indexer.php on line 524
PHP Notice: Trying to get property 'common' of non-object in \administrator\components\com_finder\helpers\indexer\indexer.php on line 525
PHP Notice: Trying to get property 'phrase' of non-object in \administrator\components\com_finder\helpers\indexer\indexer.php on line 526
PHP Notice: Trying to get property 'weight' of non-object in \administrator\components\com_finder\helpers\indexer\indexer.php on line 527
PHP Notice: Trying to get property 'language' of non-object in \administrator\components\com_finder\helpers\indexer\indexer.php on line 529
I may have only did code review previously. Yes these notices generated with this PR.
OK, thanks, I'll take a look.
@frankmayer Can you have a look at the notices?
I have tested this item
Reviewed code. Everything fine.
@icampus
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Ready to Commit after two successful tests.
please remove RTC until the reported php notices are resolved #12253 (comment)
Status | Ready to Commit | ⇒ | Pending |
reset Status on "Pending" as stated above.
@frankmayer Can you please address the mentioned issue so we can move it forward?
Sorry for the delay people. Had lots of other stuff on my plate. Will try to resolve this ASAP. Thanks
Should be OK now. Thanks for testing and reporting the issue.
I think the drone failure is false... can someone restart that or will I have to push again?
@frankmayer The drone failure is because of this:
07 08 2018 16:58:13.155:ERROR [Firefox 59.0.0 (Ubuntu 0.0.0)]: TypeError: a.ui is undefined
at http://localhost:9876/base/media/jui/js/jquery.ui.sortable.min.js?3ebfa0c205cdb3b90e6858aea5c05607b57e93c8:17
It's the same constant false positive. Don't worry about it.
in this case we had two different wrongly failed test :-) all good now.
I have tested this item
After applying the PR I have done the following tests:
All without problems.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-21 03:57:01 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
|
I have noticed the failed checks. Working on it.