Automatic account expiry doesn't happen

Bug #1097565 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Robert Lyon

Bug Description

tested on 1.6 (demo.mahara.org) and master

When I set the default expiry (and the default inactivity) in the account settings, it doesn't influence anything. Not even new accounts. I would expect that they have the default expiry date displayed on the account settings page and not have "Not specified" ticked.

Accounts are properly expired when set manually on the account settings page.

Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.7.0 → 1.8.0
importance: Medium → High
Revision history for this message
Robert Lyon (rlyon) wrote :

Questions about correct functionality:
- when setting/updating site expiry should it update the user expiry of all existing users (maybe not site admins)? or only newly created users?
- should it override existing set expiry for user (or only if less that existing user expiry)?
- should the setting/updating of side expiry notify affected users (email/internal notification)?

My thoughts on how it could work:
- on setting/updating the site expiry it sets/updates relevant table column in database for user expiry to match that way when viewing the accounts setting page the expiry will display as well as the currently working functionality to be adhered to.

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

I would suggest:

1. when setting/updating site expiry should it update the user expiry of all existing users (maybe not site admins)? or only newly created users?
It should go for all accounts that do not have a specific expiry date set already. Good idea to exclude the site admin from expiry.

2. should it override existing set expiry for user (or only if less that existing user expiry)?
I would not override existing specific expiry dates as someone has set those specifically. If we reset the expiry dates for those that have already been expired, their accounts suddenly become active again which should not be the case. Thus, see 1. Expiry for all accounts that do not have a specific date set.

3. should the setting/updating of side expiry notify affected users (email/internal notification)?
No. There is a second setting which you can activate letting users know when their account is about to expire / be set to inactive.

Revision history for this message
Robert Lyon (robertl-9) wrote :

just discussing this (Bob and Kristina)

As for 1+2:
1. Default setting should go for all new users.
2. In addition, there is a setting (radio button) to update all existing users no matter whether they have an expiry set or not.
3. In addition, there is a radio button to update only existing users who do not already have an expiry date set.
3. Another radio button to not update any existing users because these may be governed by a default expiry rule on institution level already.

Robert Lyon (robertl-9)
Changed in mahara:
assignee: nobody → Robert Lyon (robertl-9)
Revision history for this message
Robert Lyon (robertl-9) wrote :
Robert Lyon (robertl-9)
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Son Nguyen (ngson2000) wrote :

Hi Bob and Kristina;

How can I set back default account lifetime to 'No end date'.

I suggest the setting 'Override user account lifetime' only shows up when the admin changes the 'Default account lifetime' setting

Revision history for this message
Son Nguyen (ngson2000) wrote :

About the default account inactivity time, I think we should fire another bug.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/2241
Committed: http://gitorious.org/mahara/mahara/commit/4919c4e1276c3817e55e9797cc22296a555a8e3e
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit 4919c4e1276c3817e55e9797cc22296a555a8e3e
Author: Robert Lyon <email address hidden>
Date: Fri May 24 12:20:43 2013 +1200

Fix for automatic account expiry (Bug #1097565)

Added site options to allow for override of user expiry when
setting site expiry (if the user is not site admin).

- for new users
- for new users and existing users without expiry set
- for all users

Allowing for switching back to 'no end date'.
Need to force refresh the page to display info correctly after save.

Change-Id: I0a772b3db7c2ae5144ed4120cf851d4bba633f66
Signed-off-by: Robert Lyon <email address hidden>

Son Nguyen (ngson2000)
Changed in mahara:
status: In Progress → Fix Committed
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.8rc1 → 1.8.0
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Part of this is bug fix, part is new feature. I tagged it "nominatedfeature" so it gets picked up for the user manual.

tags: added: nominatedfeature
Aaron Wells (u-aaronw)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.