D24422: [dolphin] Improve parsing of Baloo query searchString
    Stefan BrĂ¼ns 
    noreply at phabricator.kde.org
       
    Fri Nov  8 18:45:27 GMT 2019
    
    
  
bruns requested changes to this revision.
bruns added a comment.
This revision now requires changes to proceed.
  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.
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/20191108/ef1a5c59/attachment.htm>
    
    
More information about the kfm-devel
mailing list