mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #06112
[Bug 841723] A change has been merged
Reviewed: https://reviews.mahara.org/641
Committed: http://gitorious.org/mahara/mahara/commit/0cd0a206b8fc0c0a2b94dc2c0c0dc1ed0bb9c5de
Submitter: Francois Marier (francois@xxxxxxxxxxxxxxx)
Branch: master
commit 0cd0a206b8fc0c0a2b94dc2c0c0dc1ed0bb9c5de
Author: Penny Leach <penny@xxxxxxxxxxxx>
Date: Sun Aug 23 15:10:35 2009 +0200
Bug #841723: Increase precision of user deletion times
Delete user: use microtime() (float) instead of time() for username & email
This prevents collisions when a username with the same details being
deleted in the same second (which happens when tests are running)
Change-Id: I1fe53d0e3904b3a2658aea9e00434b767cc1e0d0
Signed-off-by: Penny Leach <penny@xxxxxxxxxxxx>
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/841723
Title:
Use microtime instead of float for user deletion
Status in Mahara ePortfolio:
In Progress
Bug description:
For unit testing, or scripted user management for that matter, there may be the need to create and remove the same user multiple times over a short period. The current deletion method is to alter the username and e-mail address to suffix deleted.time()
Time isn't precise enough and you end up with collisions.
Changing to use microtime fixes these issues and allows for unit tests
to be run
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/841723/+subscriptions
References