Opened 11 years ago

Last modified 5 years ago

#647 reopened enhancement

Beagle and Tracker plugins for Gajim

Reported by: nk Owned by: asterix
Priority: normal Milestone: Plugins Welcome
Component: history Version:
Severity: minor Keywords:
Cc: jon@…, contact@… Blocked By:
Blocking: OS: All

Description


Change History (21)

comment:1 Changed 10 years ago by sam@…

I have started to write a backend for Beagle to index Gajim's logs. It is available from http://bugzilla.gnome.org/show_bug.cgi?id=322540. If you are interested, please try it out!

comment:2 Changed 10 years ago by nk

I took a quick look in your code.

you operate on logs_dir but svn has migrated to using sqlite logs.db (it also provides a script to migrate old logs)

moreover I failed to find some parsing logic of the files in that dir

NOTE: I cannot say if sqlite will in the end stay in 0.9, it seems to work okay and gives the advantages for which I chose to replace the old style logs, but suffers from concurrency problems which I 'll try to solve.

more: http://trac.gajim.org/wiki/MigrateLogToDot9DB http://trac.gajim.org/wiki/LogsDatabase http://www.phpguru.org/static/SQLite.NET.html

even if sqlite is abandoned, I'm sure some time has to be spent on making the design of the textfile (the metadata) somehow not so low-level

come in the room etc ;)

comment:3 Changed 10 years ago by multani

Beagle use SQLite as a backend when extented_attribut are not present on the filesystem. I see that there is already a SQLite driver in Mono (at least in Beagle source code), in the Mono.Data.SQLite namespace.

comment:4 Changed 10 years ago by nk

great!

comment:5 Changed 10 years ago by sam@…

I don't know if Beagle will actually index the sqlite database, or whether it only indexes the information fed to it from the GajimLog? class. I suppose if the worst comes to the worst, the Beagle backend can add a beagle_last_indexed (jid, timestamp) table to the database, and periodically dump out the chat history to its own set of text files.

comment:6 Changed 10 years ago by D Bera

Beagle will not _automatically_ parse the sqlite file. The gajim backend has to fetch information from the gajim sqlite db and send it to beagle. Mono.Data.SQLite is already there - so there wont be any problem in opening and reading sqlite files in the gajim backend.

comment:7 Changed 10 years ago by nk

  • Cc sam@… added

now that Gajim .9.1 is out, any news on this?

comment:8 Changed 10 years ago by anonymous

Someone with irc name multani started and succeeded in writing a basic gajim backend. This is the link to the discussion in beagle irc channel: (near the end) http://www.gympoh.edu.sk/~lipka/irclogs/dashboard.log.21Dec2005 (continued here) http://www.gympoh.edu.sk/~lipka/irclogs/dashboard.log.22Dec2005

comment:9 Changed 10 years ago by multani

  • Cc sam@… added; sam@… removed

Damn, i'm spotted ;)

I started written a backend, but I didn't finish it yet (no much time currenty) ...

As far as I remember, it's quite dirty : gajim log isn't really indexed, but Best search in the logs.db each time we query it.

comment:10 Changed 10 years ago by jim++

  • Type changed from defect to enhancement

comment:11 Changed 10 years ago by nk

  • Status changed from new to closed

ask in Beagle?

comment:12 Changed 9 years ago by Gego

Gajim s devs shood take a look at http://video.google.com/videoplay?docid=973151644136154342&q=beagle+search

every program shood be able to be search every program... I want to be able to search my logs..

comment:13 Changed 9 years ago by anonymous

  • OS set to All
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Type changed from defect to enhancement

comment:14 Changed 9 years ago by anonymous

is there a reason to close this?

comment:15 Changed 9 years ago by anonymous

  • Milestone changed from 0.9.1 to 0.12

comment:16 Changed 9 years ago by anonymous

Please consider implementing a Tracker search plugin before Beagle. Since it looks like Tracker is going to be the default "search" tool in Gnome.

comment:17 Changed 8 years ago by steve-e

  • Milestone 0.12 deleted
  • Summary changed from write a Beagle plugin for Gajim to Beagle and Tracker plugins for Gajim

I would like to have this feature, but it is not a priority for now. At least not for us.

comment:18 Changed 8 years ago by anonymous

  • Cc jon@… added; sam@… removed

comment:19 Changed 7 years ago by jpfle

  • Cc contact@… added

comment:20 Changed 7 years ago by johnny

  • Milestone set to Patches Welcome

comment:21 Changed 5 years ago by MilkFreeze

  • Milestone changed from Patches Welcome to Plugins Welcome
  • Version 0.10 deleted
Note: See TracTickets for help on using tickets.