After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 322669 - Move IM log parsing into individual filters
Move IM log parsing into individual filters
Status: RESOLVED FIXED
Product: beagle
Classification: Other
Component: General
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Beagle Bugs
Beagle Bugs
Depends on:
Blocks:
 
 
Reported: 2005-11-28 16:26 UTC by Daniel Drake
Modified: 2007-06-05 15:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Integration patch (3.80 KB, patch)
2005-11-28 16:27 UTC, Daniel Drake
none Details | Review
FilterGaimLog.cs (4.01 KB, text/plain)
2005-11-28 16:28 UTC, Daniel Drake
  Details
FilterKopeteLog.cs (2.53 KB, text/plain)
2005-11-28 16:28 UTC, Daniel Drake
  Details
Move Gaim and Kopete Log Filteres Into separate filters (13.28 KB, patch)
2006-08-13 10:07 UTC, Kevin Kubasik
none Details | Review

Description Daniel Drake 2005-11-28 16:26:42 UTC
The current ImLog code does a lot of processing of dates and things like that,
which are irrelevant for log indexing.

We can make ImLog be an ImLogViewer-specific thing, and replace the ImLog filter
with simplistic filters for each log type.
Comment 1 Daniel Drake 2005-11-28 16:27:21 UTC
Created attachment 55327 [details] [review]
Integration patch
Comment 2 Daniel Drake 2005-11-28 16:28:04 UTC
Created attachment 55328 [details]
FilterGaimLog.cs
Comment 3 Daniel Drake 2005-11-28 16:28:40 UTC
Created attachment 55329 [details]
FilterKopeteLog.cs

untested
Comment 4 Kevin Kubasik 2006-04-15 23:19:07 UTC
This seems to be the current ImLog code, should this be marked Resolved?
Comment 5 Debajyoti Bera 2006-04-16 00:03:59 UTC
Nops ... current ImLog code has a single filter FilterImLog which uses separate Util-classes to handle Kopete and Gaim logs. Daniel was proposing (IMO) a cleaner design with separate Filters altogether to handle the different parsing methods - this will make it cleaner for filters.

Since ImLogviewer needs to parse the logs again, this will cause some duplication of code. But it looks like Imlogviewer requires different style of parsing than Filters, in which case the code for them should be separated.

dsd mentioned about this in mailing list recently. I guess someone just needs to polish it according to current CVS, give it some test and it should be OK.
Comment 6 Daniel Drake 2006-04-16 11:06:20 UTC
The patch proposes moving ImLog.cs into ImLogViewer rather than sharing it between filters. Then the filters reimplement the text extraction, so yes there is a little bit of duplicated code. But the advantage is big: right now the ImLog-based filters are wasting lots of time parsing dates and things like that, then that information is being discarded.

This was actually Jon's idea so all credit goes to him ;)
Comment 7 Kevin Kubasik 2006-08-13 10:07:41 UTC
Created attachment 70809 [details] [review]
Move Gaim and Kopete Log Filteres Into separate filters

Hey, just working on updating. They have been working with the exception of enddate parsing, I can't tell, take a look at it and see what you guys think. I can't say I have a lot more I can do, so I'd kinda like to hand this off to someone, but I'll do whatever is needed :).
Comment 8 Lukas Lipka 2007-06-05 15:35:12 UTC
Fixed in r3769.

DBera: The KonversationQueryable is quite specfic, is it also possible and feasible to move its log parsing into a filter?