Issue Details (XML | Word | Printable)

Key: MDL-15435
Type: Improvement Improvement
Status: In Progress In Progress
Priority: Minor Minor
Assignee: Joseph Morwick
Reporter: Joseph Morwick
Votes: 2
Watchers: 5
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Blog Improvements / Blog Assignment (GSoC)

Created: 27/Jun/08 12:05 AM   Updated: 11/Sep/09 03:08 PM
Component/s: Assignment, Blog, Tags
Affects Version/s: 2.0
Fix Version/s: None

File Attachments: 1. Text File backup-patch-8-18-08.patch (21 kB)
2. Text File blog_improvement-7-1-08-patch.txt (40 kB)
3. Text File blog_improvement-7-4-08-patch.txt (40 kB)
4. Text File blogimprovements-8-18-08.patch (125 kB)
5. Text File blogimprovements-8-19-08.patch (126 kB)
6. Text File blogpatch-08-14-2008.patch (120 kB)
7. Text File blogpatch-8-12-2008.txt (116 kB)
8. Text File blogpatch-8-13-2008.txt (118 kB)
9. Text File weblib-patch-08-13-2008-2.txt (0.8 kB)

Issue Links:
Blockers
 
Dependency
 
Relates
 

URL: http://docs.moodle.org/en/Student_projects/Blog_improvements
Participants: Joseph Morwick and Mathieu Petit-Clair
Security Level: None
Affected Branches: MOODLE_20_STABLE

Sub-Tasks  All   Open   
 Sub-Task Progress: 

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Joseph Morwick added a comment - 02/Jul/08 11:48 AM
This patch contains all of my work so far. It is based off the current CVS snapshot.

Mathieu Petit-Clair added a comment - 04/Jul/08 03:56 PM
Hi Joey,

Patch looks good. A few comments:

  • I updated the /lib/db/upgrade.php file, it wasn't quite working
  • I have (on my local site) a lot of blog entries. After activating this patch, none of the older entries would show, until I created a new entry with an association (deactivating associations makes the blog posts display as they should)
  • print_error() expects a localized string .. the full string needs to go in /lang/en_utf8/[blog.php]

I'm looking forward to the rest of the features...! More on this next week, once I get a chance to show people around...


Joseph Morwick added a comment - 13/Aug/08 12:51 PM
update with everything but the backup stuff

Joseph Morwick added a comment - 14/Aug/08 07:53 AM
updated to use the weblib patch provided here:

http://tracker.moodle.org/secure/ManageAttachments.jspa?id=27911


Joseph Morwick added a comment - 14/Aug/08 07:54 AM
weblib patch to make the blog improvement patch, and other things, work better

Joseph Morwick added a comment - 15/Aug/08 09:32 AM
some bugs were introduced from old code somehow coming about, and a few others that seemed to be hanging around. This patch has those bugs fixed, along with a few other enhancements.

Mathieu Petit-Clair added a comment - 16/Aug/08 04:22 PM
I've been testing this out for some time, patch applies cleanly (except for version.php - which is normal), along with most recent patch in MDL-16036 (lib/weblib.php).

It's working mostly fine for me, though I have a long list of warning and one fatal error in blog/lib.php .. the problem seem to be in lines 784/786, as "array" appears in the sql statement. I got there (/blog/index.php?postid=1) by clicking on "full entry" from the assignment grading screen (but I got there from some other link yesterday).

Some code formatting needs to be fixed (all "if" statement need to have { and }, event for one-liners), to follow the Moodle rules.

I couldn't find out how blogs associated to forum work. Didn't spend too much time on that though. I suppose we are at the point where writing some basic (end-user) documentation about how to use this patch would be good.

I wish the blog_fetch_entries_sql function (the previous bug seems to come from there) could be somewhat cleaned up. I know most of this has been part of Moodle for a really long time ... but if all this query building could be simplified (and use placeholders), it would look a lot better. Separate issue, I guess...


Joseph Morwick added a comment - 18/Aug/08 12:51 PM
This new patch (8-18-08) fixes the last mentioned bugs and a few more that I found.

I have separated out two bugfixes that had been included in previous patches and made seperate patches for them since they are general bugs and not just related to this project:

http://tracker.moodle.org/browse/MDL-16097
http://tracker.moodle.org/browse/MDL-16096

The code in this lastest patch (8-18-08) has been tested quite a bit. Tomorrow I'll attach a patch with all of my backup work. Since the backup system is in flux, I haven't been able to complete a full patch for this functionality yet, but I hope that the patch I do attach will be helpful.


Mathieu Petit-Clair added a comment - 18/Aug/08 02:41 PM
I committed all three extra patches to CVS. I'll have a look at this one later, or tomorrow...

Joseph Morwick added a comment - 19/Aug/08 04:59 AM
I'm not yet able to test backup/restore code since there are some fatal errors preventing me from doing so, so I did my best to complete the backup/restore code without testing it (since today is the GSoC deadline). I have no idea if it is bugfree, and so must assume that it is not, and will probably need editing. I'm happy to do this myself, but it will not be able to be part of my GSoC project for this summer. I'm attaching a patch with the edits that I made.

Joseph Morwick added a comment - 19/Aug/08 01:01 PM
some minor improvements were made with version 8-19-08