Learning through bug fixing

Learning through bug fixing

by Jun Yamog -
Number of replies: 5
Hi,

I am new to moodle, I am trying to learn moodle.  I figured the best way for me to learn is to help on some bugs.

I picked this bug for me to learn some stuff about moodle

http://moodle.org/bugs/bug.php?op=show&bugid=4122

I have created a patch for this, Martin Langhoff told me the patch is fine.  I have tested it to run on both pgsql and mysql, clean install and running the upgrade scripts.

Do you guys think the patch is ok?

Jun
Average of ratings: -
In reply to Jun Yamog

Re: Learning through bug fixing

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Minor nit:

In Lines 10 and 11 of your patch, you are using tabs instead of spaces to indent the lines. Moodle coding standard says use spaces.

Ditto, lines 41-45.

It's not important, but do you have any particular reason for setting $version to 2006022001 rather than 2006022000 in version.php?
In reply to Tim Hunt

Re: Learning through bug fixing

by Jun Yamog -
Hi Tim,

Sorry about the tabs, I must have set emacs to use spaces after making the patch.  I set it 2006022001 since I revised my upgrade script, anyway its internal to me.  I have now set the version to 2006022000 in version.php and the respective upgrade scripts.

Reattached another patch file, I will commit maybe tomorrow if the patch is ok.  As well as add a comment on the bugs.moodle.org

Jun
In reply to Jun Yamog

Re: Learning through bug fixing

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The patch looks fine to me now. Thanks for taking such care over the code you contribute.
In reply to Tim Hunt

Re: Learning through bug fixing

by Jun Yamog -
Thanks Tim.  I have updated the bug report to include a link here and attached the patch.  I will just commit next week at catalyst to allow more time.
In reply to Jun Yamog

Re: Learning through bug fixing

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Minor incremental bumps in the version number like this is no problem, that's why we have those last two digits.