D24422: [dolphin] Improve parsing of Baloo query searchString
Elvis Angelaccio
noreply at phabricator.kde.org
Sat Nov 9 09:35:54 GMT 2019
elvisangelaccio added a comment.
In D24422#560282 <https://phabricator.kde.org/D24422#560282>, @bruns wrote:
> The problem with the original code is it mixes the model and the view.
>
> Please do the following:
>
> 1. Split the current code to model/view, i.e. move the "rating + filename + remainder" into a separate trivial class
> 2. Populate the model class from the existing parser, populate the view from the model
> 3. Add the unit test you have written (of course, no longer testing the DolphinSearchBox, but the model) (some tests have to be marked as XFAIL).
> 4. Update the parser, update the XFAILs
>
> Splitting model/view makes it much easier to extend the searchbox later, and to e.g. reuse Baloos parser.
Not sure we have time to do all of that before the 19.12 freeze though (which is next Thursday). So I'd suggest to merge this patch and then open a refactoring task targeting dolphin 20.04. Would you be ok with that?
REPOSITORY
R318 Dolphin
REVISION DETAIL
https://phabricator.kde.org/D24422
To: iasensio, #dolphin, elvisangelaccio, meven, bruns, ngraham
Cc: adwait-thattey, coderdude, chehrlic, ngraham, bruns, kfm-devel, #baloo, pberestov, iasensio, fprice, MrPepe, fbampaloukas, alexde, Codezela, feverfew, meven, spoorun, navarromorales, firef, andrebarros, emmanuelp, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20191109/e9f3403c/attachment.htm>
More information about the kfm-devel
mailing list