Moodle

global search dml conversion

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 2.0
  • Fix Version/s: None
  • Component/s: Global search
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE

Activity

Hide
Valery Fremaux added a comment -

Thanks Petr.

I've merged my side. We will keep an eye when I may commit back a few fixes. I'll tell you when I'm ready so we can check my local merges are OK with you.

Cheers.

Show
Valery Fremaux added a comment - Thanks Petr. I've merged my side. We will keep an eye when I may commit back a few fixes. I'll tell you when I'm ready so we can check my local merges are OK with you. Cheers.
Hide
Petr Škoda (skodak) added a comment -

Hello Valery,
are you planning to work on this next week?

Show
Petr Škoda (skodak) added a comment - Hello Valery, are you planning to work on this next week?
Hide
Valery Fremaux added a comment -

I'm not sure. I am actually with Jonathan Newman (Catalyst) in UK and we have a huge workplan to prepare. I will not have time for global search next week, neverthless can I avoid to work on it and do something else.

Show
Valery Fremaux added a comment - I'm not sure. I am actually with Jonathan Newman (Catalyst) in UK and we have a huge workplan to prepare. I will not have time for global search next week, neverthless can I avoid to work on it and do something else.
Hide
Petr Škoda (skodak) added a comment -

no problem, this is the only part that may wait - it will just break when we do the final removal of magic quotes and old dml function, the rest of moodle will work just fine

thanks for the info!

Show
Petr Škoda (skodak) added a comment - no problem, this is the only part that may wait - it will just break when we do the final removal of magic quotes and old dml function, the rest of moodle will work just fine thanks for the info!
Hide
Valery Fremaux added a comment -

Hi Petr,

was you who discarded the search_escape_string() function in search/lib ? So I can ask you my question :

Would'nt we have to remove that local escaping from search/indexlib.php there :

§230 -> §239

// object to insert into db
$doc->doctype = $document->doctype;
$doc->docid = $document->docid;
$doc->itemtype = $document->itemtype;
$doc->title = search_escape_string($document->title); <<<<<<<<
$doc->url = search_escape_string($document->url); <<<<<<<<
$doc->updated = time();
$doc->docdate = $document->date;
$doc->courseid = $document->course_id;
$doc->groupid = $document->group_id;

as there should be no more need for pre escaping string data witgh the new DB implementation. Am i right ?

Cheers.

Show
Valery Fremaux added a comment - Hi Petr, was you who discarded the search_escape_string() function in search/lib ? So I can ask you my question : Would'nt we have to remove that local escaping from search/indexlib.php there : §230 -> §239 // object to insert into db $doc->doctype = $document->doctype; $doc->docid = $document->docid; $doc->itemtype = $document->itemtype; $doc->title = search_escape_string($document->title); <<<<<<<< $doc->url = search_escape_string($document->url); <<<<<<<< $doc->updated = time(); $doc->docdate = $document->date; $doc->courseid = $document->course_id; $doc->groupid = $document->group_id; as there should be no more need for pre escaping string data witgh the new DB implementation. Am i right ? Cheers.
Hide
Eloy Lafuente (stronk7) added a comment -

Hi Valery,

yes, you're right. We don't need to escape data anymore. And yes, those escaping aren't needed any more (and they are out from HEAD if I'm not wrong).

Ciao

Show
Eloy Lafuente (stronk7) added a comment - Hi Valery, yes, you're right. We don't need to escape data anymore. And yes, those escaping aren't needed any more (and they are out from HEAD if I'm not wrong). Ciao
Hide
Petr Škoda (skodak) added a comment -

Closing because global search was removed from Moodle 2.2, thanks anyway.

Show
Petr Škoda (skodak) added a comment - Closing because global search was removed from Moodle 2.2, thanks anyway.

People

Dates

  • Created:
    Updated:
    Resolved: