Closed (fixed)
Project:
Scheduler
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2013 at 16:56 UTC
Updated:
7 Jan 2014 at 19:00 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #1
jonathan1055 commentedPatch against 1.1+22
Comment #2
jonathan1055 commentedRe-rolled patch because #1 no longer applies, due to other commits since. This is against 1.1+27
Comment #3
jonathan1055 commentedRe-rolled following 1.1+34
Comment #4
jonathan1055 commentedComment #5
pfrenssenThe screenshots look really nice and useful. I have 15 minutes left on my commute, will attempt a code review in that time span!
I would use the term "stale" or "obsolete" rather than "corrupt".
And maybe a better fit for the path would be "admin/content/scheduler/delete/%" since it is a child page of "admin/content/scheduler"?
I don't really like this kind of type juggling. You could either factor out the deletion to a separate function scheduler_delete_data($nid), or simply copy the line of code that performs the deletion into the submit handler. It's only one line of very obvious code after all.
Code looks good overall!
Comment #6
jonathan1055 commentedThanks for the review, good use of your last 15 minutes. I am also on the train commuting now. Pleased you like it overall.
I've addressed all your points. 'Obsolete' is better tha 'corrupt' you are right. Changed the menu path as that makes more sense. Also added the single db_delete() call into the handler.
Here is a patch against the latest code in git (which is not the latest -dev being shown) and an interdiff file
Jonathan
Comment #7
jonathan1055 commentedNo changes to code but re-rolled as the latest patch failed to apply against 1.1+49-dev
Comment #8
pfrenssenLooking great. I tested it and it works well. It is more consistent with the standard content listing from the node module, and it is easier to use. Some nice small additions as well, like the destination parameter, and the possibility to clean up stale database entries! Thanks a lot Jonathan!
Committed to 7.x-1.x: commit 59635801.
Comment #9
jonathan1055 commentedGlad you like it.
Happy Christmas!