Closed (won't fix)
Project:
UC Role Progression
Version:
6.x-1.1
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Apr 2011 at 17:09 UTC
Updated:
8 May 2014 at 08:49 UTC
Jump to comment: Most recent
Comments
Comment #1
mirabuck commentedHi LPecunia,
You raise a very good point. Using weeks as a measure isn't very granular anyway. I wasn't thinking too far outside my own use case when I wrote this and should probably bring this in line with UC Roles which allows for expiry based on a global setting, an absolute date, or a relative date set in days, weeks, months or years.
I'll see if I can put together a dev version of the module that addresses this.
Many thanks,
Mirabuck
Comment #2
mirabuck commentedOh, and to properly answer your question: no, there isn't a mechanism that would allow you to easily test this currently.
Mriabuck
Comment #3
mirabuck commentedAs an initial step forward I've created a 6.x-1.x-dev development release which will allow users to chose between days and weeks when setting role expirations. It should make testing much easier and shouldn't cause any issues for users who have another version of the module installed already. I'd appreciate feedback from anyone who has the time to install and test it.
Mirabuck
Comment #4
LPecunia commentedThank you for the quick response, Mirabuck. I will try to test this as soon as I get a chance.
Comment #5
mirabuck commentedThree years and no update on this. Folks that want this functionality are welcome to use the latest dev. I don't think there's much point putting together a full release for this given that I'm committed to just doing maintenance fixes.
Comment #6
nlahm commentedI installed and successfully tested the 6.x-1.x-dev development release.
To test , I gave the first role of the progression to my test user for 1 day. I started the cron which has enabled conditional action about an upcoming expiration . In phpMyAdmin , table uc_roles_expiration , expiration field , I subtract 90000 to the value which made the expiration date earlier than the current date . I started the cron which enabled the conditional action role expired. I reiterated for the whole progression.
I had to add a line in the file uc_roles.modules, in uc_roles_cron function ()