[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Review Request 128664: Nested tags for Baloo
From: James Smith <smithjd15 () gmail ! com>
Date: 2016-09-07 21:01:34
Message-ID: 20160907210134.5566.26088 () mimi ! kde ! org
[Download RAW message or body]
--===============2756287200908043318==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
> On Sept. 4, 2016, 9:51 a.m., Vishesh Handa wrote:
> > Please test out all possible workflows. Ideally it would be great if we could \
> > have automated tests for all the workflows with tags.
The only thing that could impact the existing workflow is a new hard length of 64. \
The new FT prefix is specific to the KIO Slave changes.
> On Sept. 4, 2016, 9:51 a.m., Vishesh Handa wrote:
> > src/file/basicindexingjob.cpp, line 107
> > <https://git.reviewboard.kde.org/r/128664/diff/2/?file=474817#file474817line107>
> >
> > Alright. So now TA instead of being a prefix to store each word, it now stores \
> > the entire tag.
> > This breaks existing behaviour. That's typically frowned upon. Example - All tags \
> > with more than 1 word.
> > Perhaps it would just be easier if we would intrduce a new prefix.
Avoiding the term generator fixes false positives from = matches. These result in a \
file with tag Fire/Water showing up under "Fire" KIO Slave subdirectory and also in \
"Fire/Water" subdirectory. This behavior would be expected only from the : operator, \
and completely breaks the intent of the KIO Slave, to break a nested tag into a set \
of subdirectories that are then filled by inserting -only- exact tag matches from the \
path.
- James
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128664/#review98860
-----------------------------------------------------------
On Aug. 20, 2016, 10:58 p.m., James Smith wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128664/
> -----------------------------------------------------------
>
> (Updated Aug. 20, 2016, 10:58 p.m.)
>
>
> Review request for Baloo and Vishesh Handa.
>
>
> Bugs: 334615
> http://bugs.kde.org/show_bug.cgi?id=334615
>
>
> Repository: baloo
>
>
> Description
> -------
>
> Index and query each tag as a single full term for generating recursed search \
> results. Represent nested tags as recursed items in the Tags:// KIO Slave.
>
> Diffs
> -----
>
> src/file/basicindexingjob.cpp 88bb59a01e5592abb74b1ab345bfc6765d35db57
> src/kioslaves/tags/kio_tags.cpp de2e6d71945632e23a85f831878b4c431360731c
> src/lib/searchstore.cpp 060a4fd795ab858eb84526f93f827d09ee85db7c
>
> Diff: https://git.reviewboard.kde.org/r/128664/diff/
>
>
> Testing
> -------
>
> Compile, run
>
>
> Thanks,
>
> James Smith
>
>
--===============2756287200908043318==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;"> \
<tr> <td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/128664/">https://git.reviewboard.kde.org/r/128664/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On September 4th, 2016, 9:51 a.m. UTC, <b>Vishesh \
Handa</b> wrote:</p> <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;"> <pre style="white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Please test out all possible workflows. Ideally it \
would be great if we could have automated tests for all the workflows with \
tags.</p></pre> </blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">The \
only thing that could impact the existing workflow is a new hard length of 64. The \
new FT prefix is specific to the KIO Slave changes.</p></pre> <br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On September 4th, 2016, 9:51 a.m. UTC, <b>Vishesh \
Handa</b> wrote:</p> <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;"> <thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;"> <a \
href="https://git.reviewboard.kde.org/r/128664/diff/2/?file=474817#file474817line107" \
style="color: black; font-weight: bold; text-decoration: \
underline;">src/file/basicindexingjob.cpp</a> <span style="font-weight: normal;">
(Diff revision 2)
</span>
</th>
</tr>
</thead>
<tbody>
<tr>
<th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2">106</font></th> <td bgcolor="#fdfebc" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "> <span \
class="n">doc</span><span class="p">.</span><span \
class="n">addXattrBoolTerm</span><span class="p">(</span><span \
class="n">QByteArray</span><span class="p">(</span><span \
class="s">"TAG-"</span><span class="p">)</span> <span class="o">+</span> \
<span class="n">tag</span><span class="p">.</span><span class="n">toUtf8</span><span \
class="p">());</span></pre></td> <th bgcolor="#e9eaa8" style="border-left: 1px solid \
#C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font \
size="2">107</font></th> <td bgcolor="#fdfebc" width="50%"><pre style="font-size: \
8pt; line-height: 140%; margin: 0; "> <span class="n">doc</span><span \
class="p">.</span><span class="n">addXattrTerm</span><span class="p">(</span><span \
class="n">QByteArray</span><span class="p">(</span><span \
class="s">"TA"</span><span class="p">)</span> <span class="o">+</span> \
<span class="n">tag</span><span class="p">.</span><span class="n">toUtf8</span><span \
class="p">());</span></pre></td> </tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">Alright. So now TA instead of being a prefix to store each word, it now \
stores the entire tag.</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">This breaks existing behaviour. That's \
typically frowned upon. Example - All tags with more than 1 word.</p> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">Perhaps it would just be easier if we would intrduce a new \
prefix.</p></pre> </blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">Avoiding the term generator fixes false positives from = matches. These \
result in a file with tag Fire/Water showing up under "Fire" KIO Slave subdirectory \
and also in "Fire/Water" subdirectory. This behavior would be expected only from the \
: operator, and completely breaks the intent of the KIO Slave, to break a nested tag \
into a set of subdirectories that are then filled by inserting -only- exact tag \
matches from the path.</p></pre> <br />
<p>- James</p>
<br />
<p>On August 20th, 2016, 10:58 p.m. UTC, James Smith wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;"> <tr>
<td>
<div>Review request for Baloo and Vishesh Handa.</div>
<div>By James Smith.</div>
<p style="color: grey;"><i>Updated Aug. 20, 2016, 10:58 p.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>
<a href="http://bugs.kde.org/show_bug.cgi?id=334615">334615</a>
</div>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
baloo
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Index and query each tag as a single full term for \
generating recursed search results. Represent nested tags as recursed items in the \
Tags:// KIO Slave.</p></pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Compile, run</p></pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>src/file/basicindexingjob.cpp <span style="color: \
grey">(88bb59a01e5592abb74b1ab345bfc6765d35db57)</span></li>
<li>src/kioslaves/tags/kio_tags.cpp <span style="color: \
grey">(de2e6d71945632e23a85f831878b4c431360731c)</span></li>
<li>src/lib/searchstore.cpp <span style="color: \
grey">(060a4fd795ab858eb84526f93f827d09ee85db7c)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/128664/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
--===============2756287200908043318==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic