events do not work with mysql
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Graphite |
Fix Released
|
Low
|
Michael Leinartas |
Bug Description
Hi,
the code used to query the database to fetch events does not work on mysql.
in http://
query = query.filter(
suppose that \b is the word boundary operator. On mysql it should be r'[[:<:]]%s[[:>:]]'
More generally: the events code is not fully using the python-tagging module. I'm not a pythonist but it seems that building manually the request to filter by tag is a poor usage of python-tagging.
I've coded a version using fully the tagging module (please excuse me if i missed some known python idioms). It also fixes the issue decribed above. See the attachment
regards
Vincent
Changed in graphite: | |
assignee: | nobody → Michael Leinartas (mleinartas) |
milestone: | none → 0.9.10 |
Changed in graphite: | |
status: | Fix Committed → Fix Released |
Thanks, events was indeed not using the tagging module very well. I've tested and committed your fix for inclusion in 0.9.10