[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Nepomuk Tags kioslave - Please Review
From:       Vishesh Handa <me () vhanda ! in>
Date:       2012-11-07 0:49:43
Message-ID: CAOPTMKAPzon0YOK-sKWnCS0WQ2VEyw5MiXk7cCnVGdF-g5itxQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Wed, Nov 7, 2012 at 6:00 AM, Albert Astals Cid <aacid@kde.org> wrote:

> El Dimecres, 7 de novembre de 2012, a les 05:51:45, Vishesh Handa va
> escriure:
> > On Wed, Nov 7, 2012 at 5:36 AM, Albert Astals Cid <aacid@kde.org> wrote:
> > > El Dimarts, 6 de novembre de 2012, a les 18:30:27, Albert Astals Cid va
> > >
> > > escriure:
> > > > El Dimarts, 6 de novembre de 2012, a les 18:17:29, Vishesh Handa va
> > >
> > > escriure:
> > > > > Ping?
> > > > >
> > > > > I'll be merging this on Thursday. I would appreciate it if somone
> > > > > could
> > > > > review the code.
> > > >
> > > > I'll have a look later today (based on my 0 knowledge of nepomuk &
> > >
> > > friends).
> > >
> > > Had a look to the code and to my knowledge it seems that it does not do
> > > any
> > > ultra silly thing, also it's a kioslave so people won't use it unless
> they
> > > want so in case it is horribly broken the "bad stuff" it can do it is
> > > pretty
> > > limited (just don't use the kioslave and done!)
> > >
> > > So i'd say go ahead.
> > >
> > > I'm curious with what you mean with "loosing"  in "You can move files
> into
> > > a
> > > tag folder thereby effectively loosing them" though. Could you give
> some
> > > more
> > > info?
> >
> > The file will be deleted.
>
> Ok, that's bad, i'm vetoing on that then. Deleting user files is the worst
> thing ever, even if it is in a "exotic" kioslave.
>

Couldn't I still merge it and then work on the bug fix before it is
officially released?


>
> > From what I understand KIO does moves by copy +
> > delete.
>
> That's not true, try moving a 4GB file to from a folder to another in the
> file:/
> kioslave and you see that it actually "moves" the file, not copies and
> deletes
> it (basically the operation is instantaneous instead of taking ages)
>

I think the behaviour I described is across two different kio slaves.

>
> > The copy operation results in the corresponding tags being applied,
> > and the delete operation then deletes the file. The correct behaviour in
> > our case would be to either only allow copy operations or convert move
> > operations into copy operations.
>
> Why does the tags: kioslave even knows how to delete files? What's the
> point of
> it? If i am using the tags: kioslave i would understand i'm just working on
> tags and not on file content.
>

The tags kioslave doesn't delete the file. It's the "file" kioslave that
deletes it.

Deleting a file from the tags kioslave results in that tag being removed.


> Cheers,
>   Albert
>
> >
> > We'll need to introduce some new kio flags to fix this. At least that's
> > what I understood from my discussion with David.
> >
> > > Cheers,
> > >
> > >   Albert
> > >
> > > > Cheers,
> > > >
> > > >   Albert
> > > >
> > > > P.S: You sent the email to the wrong list, we do reviews in
> > >
> > > kde-core-devel
> > >
> > > > not kde-devel
> > > >
> > > > > On Wed, Oct 31, 2012 at 3:12 AM, Vishesh Handa <me@vhanda.in>
> wrote:
> > > > > > Hey everyone
> > > > > >
> > > > > > I recently wrote a 'tags' kio slave, which allows one to browse
> > >
> > > nepomuk
> > >
> > > > > > tags, and the files containing those tags. It is currently in
> > > > > > kde-runtime/nepomuk/kioslaves/tags/, in the nepomuk/tagsKioSlave
> > >
> > > branch.
> > >
> > > > > > Could someone please review it? I would like to merge it before
> the
> > >
> > > hard
> > >
> > > > > > freeze.
> > > > > >
> > > > > > It has a custom url naming scheme -
> > > > > >
> > > > > > *tags:/tag1* => All the files tagged with 'tag1' and additional
> tags
> > > > > > which can be used filter the results.
> > > > > >
> > > > > > *tags:/tag1/file_url_of_the_file* => This is the url of the file.
> > > > > > Ideally
> > > > > > I would just use the normal url of the file, but we need to have
> the
> > > > > > 'tags'
> > > > > > protocol, so that we can handle delete events. We don't want to
> > >
> > > delete
> > >
> > > > > > the
> > > > > > file, rather just remove that tag.
> > > > > >
> > > > > > This file_url_of_the_file is added as the UDS_NAME, and results
> in
> > >
> > > the
> > >
> > > > > > search results looking slightly ugly if the file properties are
> > >
> > > checked.
> > >
> > > > > > Is
> > > > > > there a better way of handling this?
> > > > > >
> > > > > > *tags:/tag1/tag2 *=> Files tagged with both tag1 and tag2
> > > > > >
> > > > > > Known problems -
> > > > > > * You can move files into a tag folder thereby effectively
> loosing
> > >
> > > them
> > >
> > > > > > * No automatic updates
> > > > > > * It shows the tags with the nepomuk icon. We need a better
> 'tags'
> > >
> > > icon.
> > >
> > > > > > --
> > > > > > Vishesh Handa
> > > > >>
> > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > >
> > > unsubscribe
> > >
> > > > >> <<
> > > >>
> > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > >
> > > unsubscribe <<
>



-- 
Vishesh Handa

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Wed, Nov 7, 2012 at 6:00 AM, Albert Astals Cid \
<span dir="ltr">&lt;<a href="mailto:aacid@kde.org" \
target="_blank">aacid@kde.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> El Dimecres, 7 de novembre de 2012, a les 05:51:45, Vishesh \
Handa va escriure:<br> <div class="im">&gt; On Wed, Nov 7, 2012 at 5:36 AM, Albert \
Astals Cid &lt;<a href="mailto:aacid@kde.org">aacid@kde.org</a>&gt; wrote:<br> &gt; \
&gt; El Dimarts, 6 de novembre de 2012, a les 18:30:27, Albert Astals Cid va<br> &gt; \
&gt;<br> &gt; &gt; escriure:<br>
&gt; &gt; &gt; El Dimarts, 6 de novembre de 2012, a les 18:17:29, Vishesh Handa \
va<br> &gt; &gt;<br>
&gt; &gt; escriure:<br>
&gt; &gt; &gt; &gt; Ping?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I&#39;ll be merging this on Thursday. I would appreciate it if \
somone<br> &gt; &gt; &gt; &gt; could<br>
&gt; &gt; &gt; &gt; review the code.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I&#39;ll have a look later today (based on my 0 knowledge of nepomuk \
&amp;<br> &gt; &gt;<br>
&gt; &gt; friends).<br>
&gt; &gt;<br>
&gt; &gt; Had a look to the code and to my knowledge it seems that it does not do<br>
&gt; &gt; any<br>
&gt; &gt; ultra silly thing, also it&#39;s a kioslave so people won&#39;t use it \
unless they<br> &gt; &gt; want so in case it is horribly broken the &quot;bad \
stuff&quot; it can do it is<br> &gt; &gt; pretty<br>
&gt; &gt; limited (just don&#39;t use the kioslave and done!)<br>
&gt; &gt;<br>
&gt; &gt; So i&#39;d say go ahead.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m curious with what you mean with &quot;loosing&quot;  in &quot;You \
can move files into<br> &gt; &gt; a<br>
&gt; &gt; tag folder thereby effectively loosing them&quot; though. Could you give \
some<br> &gt; &gt; more<br>
&gt; &gt; info?<br>
&gt;<br>
&gt; The file will be deleted.<br>
<br>
</div>Ok, that&#39;s bad, i&#39;m vetoing on that then. Deleting user files is the \
worst<br> thing ever, even if it is in a &quot;exotic&quot; \
kioslave.<br></blockquote><div><br>Couldn&#39;t I still merge it and then work on the \
bug fix before it is officially released?<br> <br></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

<div class="im"><br>
&gt; From what I understand KIO does moves by copy +<br>
&gt; delete.<br>
<br>
</div>That&#39;s not true, try moving a 4GB file to from a folder to another in the \
file:/<br> kioslave and you see that it actually &quot;moves&quot; the file, not \
copies and deletes<br> it (basically the operation is instantaneous instead of taking \
ages)<br></blockquote><div><br>I think the behaviour I described is across two \
different kio slaves. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><br>
&gt; The copy operation results in the corresponding tags being applied,<br>
&gt; and the delete operation then deletes the file. The correct behaviour in<br>
&gt; our case would be to either only allow copy operations or convert move<br>
&gt; operations into copy operations.<br>
<br>
</div>Why does the tags: kioslave even knows how to delete files? What&#39;s the \
point of<br> it? If i am using the tags: kioslave i would understand i&#39;m just \
working on<br> tags and not on file content.<br></blockquote><div><br>The tags \
kioslave doesn&#39;t delete the file. It&#39;s the &quot;file&quot; kioslave that \
deletes it.<br><br>Deleting a file from the tags kioslave results in that tag being \
removed.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
Cheers,<br>
  Albert<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; We&#39;ll need to introduce some new kio flags to fix this. At least \
that&#39;s<br> &gt; what I understood from my discussion with David.<br>
&gt;<br>
&gt; &gt; Cheers,<br>
&gt; &gt;<br>
&gt; &gt;   Albert<br>
&gt; &gt;<br>
&gt; &gt; &gt; Cheers,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;   Albert<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; P.S: You sent the email to the wrong list, we do reviews in<br>
&gt; &gt;<br>
&gt; &gt; kde-core-devel<br>
&gt; &gt;<br>
&gt; &gt; &gt; not kde-devel<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Wed, Oct 31, 2012 at 3:12 AM, Vishesh Handa &lt;<a \
href="mailto:me@vhanda.in">me@vhanda.in</a>&gt; wrote:<br> &gt; &gt; &gt; &gt; &gt; \
Hey everyone<br> &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I recently wrote a &#39;tags&#39; kio slave, which allows \
one to browse<br> &gt; &gt;<br>
&gt; &gt; nepomuk<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; tags, and the files containing those tags. It is currently \
in<br> &gt; &gt; &gt; &gt; &gt; kde-runtime/nepomuk/kioslaves/tags/, in the \
nepomuk/tagsKioSlave<br> &gt; &gt;<br>
&gt; &gt; branch.<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Could someone please review it? I would like to merge it \
before the<br> &gt; &gt;<br>
&gt; &gt; hard<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; freeze.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; It has a custom url naming scheme -<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; *tags:/tag1* =&gt; All the files tagged with &#39;tag1&#39; \
and additional tags<br> &gt; &gt; &gt; &gt; &gt; which can be used filter the \
results.<br> &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; *tags:/tag1/file_url_of_the_file* =&gt; This is the url of \
the file.<br> &gt; &gt; &gt; &gt; &gt; Ideally<br>
&gt; &gt; &gt; &gt; &gt; I would just use the normal url of the file, but we need to \
have the<br> &gt; &gt; &gt; &gt; &gt; &#39;tags&#39;<br>
&gt; &gt; &gt; &gt; &gt; protocol, so that we can handle delete events. We don&#39;t \
want to<br> &gt; &gt;<br>
&gt; &gt; delete<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; the<br>
&gt; &gt; &gt; &gt; &gt; file, rather just remove that tag.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; This file_url_of_the_file is added as the UDS_NAME, and \
results in<br> &gt; &gt;<br>
&gt; &gt; the<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; search results looking slightly ugly if the file properties \
are<br> &gt; &gt;<br>
&gt; &gt; checked.<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Is<br>
&gt; &gt; &gt; &gt; &gt; there a better way of handling this?<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; *tags:/tag1/tag2 *=&gt; Files tagged with both tag1 and \
tag2<br> &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Known problems -<br>
&gt; &gt; &gt; &gt; &gt; * You can move files into a tag folder thereby effectively \
loosing<br> &gt; &gt;<br>
&gt; &gt; them<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; * No automatic updates<br>
&gt; &gt; &gt; &gt; &gt; * It shows the tags with the nepomuk icon. We need a better \
&#39;tags&#39;<br> &gt; &gt;<br>
&gt; &gt; icon.<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &gt; Vishesh Handa<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to<br> &gt; \
&gt;<br> &gt; &gt; unsubscribe<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; &lt;&lt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to<br> &gt; \
&gt;<br> &gt; &gt; unsubscribe &lt;&lt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><span \
style="color:rgb(192,192,192)">Vishesh Handa</span><br><br>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic