These are chat archives for ushahidi/Community

2nd
Mar 2018
F1ko
@F1ko
Mar 02 2018 12:08
hey guys
how can i change the report filter?
i would like to be able to search the database with an OR instead of an AND
unfortunately i dont know in which file this is specified
thanks in advance!
Ushbot
@ushbot
Mar 02 2018 12:10
[David Losada, Ushahidi] hi F1ko, are you looking into modifying the source code? what version of the code are you working with?
F1ko
@F1ko
Mar 02 2018 12:23
@ushbot
yes i would like to modify the code myself
currently i am working with ushahidi 2.7.4
if possible pls tell me the file where all the sql statements are
Ushbot
@ushbot
Mar 02 2018 13:29
[David Losada, Ushahidi] unfortunately, I don’t know much about the code for that version, hopefully someone can jump in to help
F1ko
@F1ko
Mar 02 2018 14:20
could u then pls tell me where it is in the newer versions?
perhaps the file structures havent changed that much and i can search for myself with a little hint
Ushbot
@ushbot
Mar 02 2018 14:23
[David Losada, Ushahidi] well, that I know, the file structures are completely different . In v3 we work in terms of repositories, there wasn’t that concept in v2 . In v2, I think you should look for pure kohana models or something similar . Maybe run a recursive textual search for words like “select”
Ushbot
@ushbot
Mar 02 2018 18:33

[Angela Oduor Lungati, Ushahidi] hey @f1ko have you had a look at the v2 dev documentation?

Here's a look at the entire db structure and which elements in the UI it affects. https://wiki.ushahidi.com/display/WIKI/Tables+Overview

Ushbot
@ushbot
Mar 02 2018 18:47

[Angela Oduor Lungati, Ushahidi] v2.7.4 is build on the Kohana framework, which uses a Model-View-Controller architectural pattern, (Kohana 2 if i'm not wrong, archived docs here: http://web.archive.org/web/20110715130625/http://docs.kohanaphp.com//contents ) - you're likely going to have to be looking at three files here - the model, the view, and the controller that affects that functionality.

Is there a particular reason you're working off of v2.7.x and not v3?