Closed (fixed)
Project:
User Expire
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2015 at 22:19 UTC
Updated:
28 Oct 2015 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gregglesOK, here's a patch to add this feature. Ideally I would like to add a test or two for this.
Comment #3
gregglesOoops.
Comment #5
gregglesThat's really what this is about, x days of inactivity.
Comment #6
gregglesRight...old style arrays.
Comment #8
gregglesOK one more syntax error and an interdiff between first and current.
Comment #9
gregglesForgot to set back to needs review.
Comment #10
gregglesOK, here it is after rerolling for the recent 7.x-1.x commits.
Comment #12
gregglesForgot to renumber the update hooks.
Comment #14
gregglesOK, here's a new patch that adds a ton of tests for all the functionality in this issue and for many of the bugs in #2586719: Preparing for 7.x-1.3 release. I also added the expiry by role to cron and simplified cron by moving some functionality out of cron into a specific function. I also renamed the form keys to be a bit richer than just the role id - made the simpletest code easier to read.
Since there are a fair bit of changes I'm adding an interdiff as well :)
Comment #15
banviktor commentedThe patch @greggles provided is pretty good with very nice tests.
Few minor issues though:
- I would remove the empty lines at user_expire.admin.inc line 110 and user_expire.test line 18
- It might be my fault, but the only way I can access the administration page is by typing in the URL (using the Seven admin theme). IMO it could be in the People box on the Configuration page (admin/config/people/user-expire), also user_expire.info should contain a
configure = admin/config/people/user-expireline.Comment #16
gregglesThanks for the feedback! Those are all great points. Now fixed.
I'm also adding credit for your review :)
Comment #18
banviktor commentedThanks! :) The modifications look good.
user_expire.test line 105 uses the old URL, that's why the test failed.
Comment #19
gregglesRight, thanks!
Comment #20
gregglesComment #22
gregglesOK, committed. Thanks, Viktor!