? Failure

User tests: Successful: Unsuccessful:

avatar frankmayer
frankmayer
8 Jan 2017

Summary of Changes

  • Pulled methods, of common functionality in at least two drivers, up to abstract class. These are overridden in inheriting drivers to provide a different functionality, where needed.
  • Save a few cycles by introducing a query template for addTokensToDb() to clone instead of constantly instantiating and creating columns, which would result in unnecessary expensive calls to query construction and quoteName
  • Save a few cycles by instantiating and using a db property. No need to constantly calling JFactory->getDbo() to determine if a database is created.

Testing Instructions

No change of behavior is expected.

  • Code Review (best using the w=1 parameter in the url), since also whitespaces were corrected
  • Test functionality of indexer. It would be good if someone could also test with PostgeSQL and MSSQL besides MySQL.

Documentation Changes Required

None

avatar frankmayer frankmayer - open - 8 Jan 2017
avatar frankmayer frankmayer - change - 8 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jan 2017
Category Administration com_finder
avatar frankmayer frankmayer - change - 8 Jan 2017
The description was changed
avatar frankmayer frankmayer - edited - 8 Jan 2017
avatar frankmayer frankmayer - change - 8 Jan 2017
The description was changed
avatar frankmayer frankmayer - edited - 8 Jan 2017
avatar frankmayer frankmayer - change - 8 Jan 2017
Labels Added: ?
avatar waader
waader - comment - 8 Jan 2017

Indexing with mssql is currently broken.

When applying your patch I get:
[Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'term_id', table 'joomla35.dbo.#__finder_tokens_aggregate'; column does not allow nulls. INSERT fails.

avatar andrepereiradasilva
andrepereiradasilva - comment - 8 Jan 2017

@waader i think that is the same issue as #13509

avatar frankmayer
frankmayer - comment - 8 Jan 2017

@waader thanks for testing! It shouldn't have to do anything with this patch, and I assume it is what @andrepereiradasilva commented. Just to be sure, does it work without the patch?

avatar waader
waader - comment - 8 Jan 2017

It has nothing to do with your patch but this is untestable at the moment with mssql. Adding a default value for term_id does not the trick as it is the key value.

avatar frankmayer frankmayer - change - 8 Jan 2017
The description was changed
avatar frankmayer frankmayer - edited - 8 Jan 2017
avatar frankmayer frankmayer - change - 8 Jan 2017
The description was changed
avatar frankmayer frankmayer - edited - 8 Jan 2017
avatar frankmayer
frankmayer - comment - 8 Jan 2017

@mbabker OK, got it, thanks.

avatar frankmayer
frankmayer - comment - 26 Apr 2017

Conflicts resolved. Pls check and merge.

avatar frankmayer frankmayer - change - 11 Jun 2017
The description was changed
avatar frankmayer frankmayer - edited - 11 Jun 2017
avatar frankmayer
frankmayer - comment - 11 Jun 2017

Code review and test please. Thank you

Note: as stated in @waader 's #13511 (comment), MSSQL is untestable at the moment.

avatar frankmayer
frankmayer - comment - 13 Jun 2017

Conflicts resolved. Please test

avatar frankmayer
frankmayer - comment - 28 Jun 2017

@andrepereiradasilva & @Quy
Could you review and test this one?

avatar andrepereiradasilva
andrepereiradasilva - comment - 28 Jun 2017

this one i'm not confartable to review it all. i can review only what i can so will not consider tested.

avatar frankmayer
frankmayer - comment - 28 Jun 2017

No problem, I know it's a complex one.

58575fd 29 Jun 2017 avatar frankmayer cs
avatar andrepereiradasilva
andrepereiradasilva - comment - 29 Jun 2017

the part that i reviewed seems fine now

avatar frankmayer
frankmayer - comment - 29 Jun 2017

@andrepereiradasilva Travis didn't like the quoteName(array), I think. Will check

avatar andrepereiradasilva
andrepereiradasilva - comment - 29 Jun 2017

at least in select you can use it. see https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_banners/models/tracks.php#L99
probably an explode in needed in the columns case, maybe not worth it sorry. if not sorry

avatar Quy
Quy - comment - 29 Jun 2017

this one i'm not confartable to review it all. i can review only what i can so will not consider tested.

Same here

8fbfab0 29 Jun 2017 avatar frankmayer cs
avatar frankmayer
frankmayer - comment - 29 Jun 2017

CI tests are passing now. Testers welcome! ;)
Thanks @andrepereiradasilva and @Quy for reviewing and suggestions.

avatar frankmayer frankmayer - change - 30 Jun 2017
The description was changed
avatar frankmayer frankmayer - edited - 30 Jun 2017
avatar frankmayer
frankmayer - comment - 13 Jul 2017

There are some performance improvements in regards to indexing in this PR.
However, it needs testing to get to RTC. Anyone?

avatar frankmayer
frankmayer - comment - 25 Jul 2017

@mbabker Any chance this can get into 3.8? I don't see this getting into 3.7 and no one wants to test it ?
This would then allow #12253 to finally get in as well...

avatar mbabker
mbabker - comment - 26 Jul 2017

On a read seems fine. It'd be good if someone would actually help with testing (install Joomla with testing sample data, install patch, and run Smart Search indexer; pretty simple).

avatar frankmayer
frankmayer - comment - 26 Jul 2017

Yes, but no one wants to do it...
BTW, Fixed the CS that you pointed out

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Jul 2017

if Test is 3.8-dev + Sample Data + run Smart Search-Index on MySQLi i will test.

@frankmayer Test Instructions wasn't clear for me.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 26 Jul 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Jul 2017

I have tested this item successfully on 5b5376e

System information

3.8-dev
Multilanguage Site
macOS Sierra, 10.12.5
Firefox 54 (64-bit)

MAMP 4.1.1

avatar frankmayer
frankmayer - comment - 26 Jul 2017

Thank you @franz-wohlkoenig for giving it a shot ?

avatar frankmayer
frankmayer - comment - 26 Jul 2017

@mbabker Is @franz-wohlkoenig 's test enough for you to merge? Should I move this PR against the 3.8 branch?
Also, should I move the other one (#12253) to the 3.8 branch?

avatar mbabker mbabker - change - 28 Jul 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-07-28 13:18:48
Closed_By mbabker
avatar mbabker mbabker - close - 28 Jul 2017
avatar mbabker mbabker - merge - 28 Jul 2017
avatar mbabker
mbabker - comment - 28 Jul 2017

Also, should I move the other one (#12253) to the 3.8 branch?

No, trying to phase out that branch now that it's merged to staging.

avatar frankmayer
frankmayer - comment - 28 Jul 2017

@zero-24 This one is merged, I think you wanted to add #12253 to the Joomla 3.8.0 milestone ? ;)

avatar zero-24
zero-24 - comment - 28 Jul 2017

@frankmayer i don't get your point? Everything that is merged should have a milestone. That is the reason i added the 3.8.0 one. The other PR is not merged yet nor did somone took the final release decision on that so this have no milestone yet ?

avatar frankmayer
frankmayer - comment - 28 Jul 2017

Oh, I see. Sorry, my bad. I was under the impression that milestones were only set prior to merging. Didn't know that you also set them afterwards. ?

avatar zero-24
zero-24 - comment - 28 Jul 2017

It allows you to track all the changes / PRs included per release x ;)

avatar frankmayer
frankmayer - comment - 28 Jul 2017

Ah, thanks, nice to learn new things :)

Add a Comment

Login with GitHub to post a comment