Comment 1 for bug 903791

Revision history for this message
KarlRelton (karllinuxtest-relton) wrote :

I have spent some time digging and working out why the Retrieve Past
activities function in the activity-log-manager doesn't actually seem to
work.

For background I am referring to
https://bugs.launchpad.net/bugs/646724

I have been playing with both activity-log-manager in trunk, and a
'history.py' script that Sief kindly referred to on his blog a while
back. Both use effectively the same code.

Here is what I believe I have found:

1) the crawler.py code has a bug - i.e. this bug report

on my system that stops it from ever inserting any events. Its a trivial
fix.

2) The code inserts events with manifestation HEURISTIC_ACTIVITY.
Yet the two UIs I am interested in, namely g-a-j and Unity Dash Files
lens only search on events with manifestation USER_ACTIVITY.
This is why even when I corrected #1 I still could not see any results.
Changing over to USER_ACTIVITY and life suddenly looks much better!

3) The code inserts events with actor set to the uri for
activity-log-manager. Not unreasonable, except that g-a-j for some
reason deliberately filters events with this actor from its search! So
having corrected #1 & #2, I was starting to see my past files in the
Unity Dash Files lens, but not in g-a-j.

I'm not sure what the rationale for this deliberate filter-out in g-a-j.
I guess it is debatable whether events inserted by the retrieve history
function should really show up in a front end like g-a-j.

My personal preference is that they should, since I would often like to
use g-a-j (or something like it) as a means of finding files and opening
them, including those inserted into the zeitgeist database by the
retrieve function. Since the event timestamps of such files are sensibly
set to the mtime of the subject file, they would show up in
sensible/expected places in the timeline (i.e. when then were last
modified) - which for me would be just great.

Can you give me a heads up on your own thinking on this issue, which of
course has been around ever since zeitgeist entered into mainstream
usage?

Thankyou for your work and development of zeitgeist - it is great
technology.