[Nepomuk] Review Request: Disable SHA1 Strigi analyzer

Sebastian Trueg sebastian at trueg.de
Sun Aug 12 18:56:11 UTC 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105986/#review17263
-----------------------------------------------------------


Very nice. Besides from my nitpicking comments this is a good way to implement the feature.


services/fileindexer/fileindexerconfig.cpp
<http://git.reviewboard.kde.org/r/105986/#comment13442>

    How about 
    
    QSet<QString> filters = cfg.readEntry( "exclude plugins", QStringList() << "DigestEventAnalyzer" ).toSet();



services/fileindexer/indexer/indexer.h
<http://git.reviewboard.kde.org/r/105986/#comment13444>

    Nitpicking: code formatting: 
    - spaces surrounding the "="
    - no space before the "&"



services/fileindexer/indexer/indexer.cpp
<http://git.reviewboard.kde.org/r/105986/#comment13445>

    code formatting: spaces again



services/fileindexer/indexer/indexer.cpp
<http://git.reviewboard.kde.org/r/105986/#comment13446>

    spaces again



services/fileindexer/indexer/main.cpp
<http://git.reviewboard.kde.org/r/105986/#comment13447>

    How about simply specifying --skip multiple times instead. Then you do not need to care about any parsing and let KCmdLineArgs do all the work. KCmdLineArgs::getOptionList would be the way to go here.



services/fileindexer/nepomukindexer.cpp
<http://git.reviewboard.kde.org/r/105986/#comment13443>

    Always use QLatin1String in these cases, ie. something like
    
    QString skip = QLatin1String("--skip");


- Sebastian Trueg


On Aug. 11, 2012, 10:11 p.m., Simeon Bird wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/105986/
> -----------------------------------------------------------
> 
> (Updated Aug. 11, 2012, 10:11 p.m.)
> 
> 
> Review request for Nepomuk, Vishesh Handa and Sebastian Trueg.
> 
> 
> Description
> -------
> 
> This fixes https://bugs.kde.org/show_bug.cgi?id=303670 by disabling the SHA1 analyzer in strigi. 
> I added an extra argument to nepomukindexer, --skip, which takes a comma-separated list of analyzers to not call. 
> Then I change the invocation of nepomukindexer from the FileIndexer class so that it gets this list from a hidden option (exclude plugins) in the nepomuk config, which defaults to the SHA1 indexer.
> 
> I didn't add a KCM option because a) I don't know how to do that (this is the real reason :) ), and b) I'm not sure whether it should be a "disable SHA1" checkbox, a list, or whether we need it at all.
> 
> 
> This addresses bug 303670.
>     http://bugs.kde.org/show_bug.cgi?id=303670
> 
> 
> Diffs
> -----
> 
>   services/fileindexer/fileindexerconfig.h cc00922 
>   services/fileindexer/fileindexerconfig.cpp e2265fc 
>   services/fileindexer/indexer/indexer.h dc0e98a 
>   services/fileindexer/indexer/indexer.cpp e4f1462 
>   services/fileindexer/indexer/main.cpp a46a651 
>   services/fileindexer/nepomukindexer.cpp 70abee0 
> 
> Diff: http://git.reviewboard.kde.org/r/105986/diff/
> 
> 
> Testing
> -------
> 
> Compiled, tested that nepomukindexer indeed does not call DigestEventAnalyzer with some printing. 
> 
> 
> Thanks,
> 
> Simeon Bird
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20120812/8c42700b/attachment.html>


More information about the Nepomuk mailing list