Stéphane Jacob [Tue, 1 Jun 2010 20:03:01 +0000 (22:03 +0200)]
Fixes group edition and creation.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 1 Jun 2010 14:35:51 +0000 (16:35 +0200)]
Prevents import of non-exiting country ids.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 1 Jun 2010 14:24:37 +0000 (16:24 +0200)]
Adds ut for nationalities.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 1 Jun 2010 14:23:00 +0000 (16:23 +0200)]
Fixes empty nationalities.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 1 Jun 2010 12:59:24 +0000 (14:59 +0200)]
Phones flags should not be empty.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 1 Jun 2010 12:33:13 +0000 (14:33 +0200)]
Fixes empty publicity flags in jobs tables.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Florent Bruneau [Tue, 1 Jun 2010 13:00:11 +0000 (15:00 +0200)]
Update readme.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 1 Jun 2010 12:45:39 +0000 (14:45 +0200)]
Upgrade master is upgrade/1.0.0
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Stéphane Jacob [Tue, 1 Jun 2010 11:46:00 +0000 (13:46 +0200)]
S::has_perms() has been replaced by S::admin().
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 1 Jun 2010 11:09:36 +0000 (13:09 +0200)]
Forbids empty names and diminutives for groups.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 1 Jun 2010 10:04:46 +0000 (12:04 +0200)]
Removes empty section and adds unique key on section names.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 1 Jun 2010 08:59:21 +0000 (10:59 +0200)]
Fixes jobs edition, in particular forbids jobs without an entreprise name.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Mon, 31 May 2010 17:48:16 +0000 (19:48 +0200)]
Fixes jobs upgrade script.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Sun, 30 May 2010 16:45:37 +0000 (18:45 +0200)]
Moves database verification to ut.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Pascal Corpet [Sun, 30 May 2010 19:18:23 +0000 (21:18 +0200)]
Allow 35 points passwords as announced (Closes #1019)
Pascal Corpet [Sun, 30 May 2010 19:01:57 +0000 (21:01 +0200)]
Prevent empty list creation (Closes #1010)
Pascal Corpet [Sun, 30 May 2010 16:00:40 +0000 (18:00 +0200)]
$smarty.session.promo not accessible anymore, use $smarty.session.user->profile()->yearpromo()
Pascal Corpet [Sun, 30 May 2010 15:59:25 +0000 (17:59 +0200)]
Fix XHTML validation, CDATA not closed
Stéphane Jacob [Sun, 30 May 2010 12:51:23 +0000 (14:51 +0200)]
Adapts plat/al crons to the new database.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Florent Bruneau [Sun, 30 May 2010 12:50:09 +0000 (14:50 +0200)]
s/a\.uid/$UID/ && s/p\.pid/$PID/
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 30 May 2010 12:41:12 +0000 (14:41 +0200)]
Also replace $UID and $PID in WHERE and ORDER BY statements.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Pascal Corpet [Sun, 30 May 2010 12:19:00 +0000 (14:19 +0200)]
Updates core for HTML validation (again\!)
Pascal Corpet [Sun, 30 May 2010 08:24:32 +0000 (10:24 +0200)]
more HTML validation fixes
Pascal Corpet [Sun, 30 May 2010 08:14:22 +0000 (10:14 +0200)]
Fix warning on AX admin page
Florent Bruneau [Sun, 30 May 2010 07:14:40 +0000 (09:14 +0200)]
Several fixes in carnet notification selection.
-> show birthday notification only from (promo - 1) to (promo + 1)
-> fix watch_last update not taken into account after marking
notifications has viewed.
-> count of unread notifications limited to the last week (same limitation
as the content carnet/panel) - (Closes #1055).
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 30 May 2010 07:13:41 +0000 (09:13 +0200)]
Add Profile::mainGrade() that maps main education to a grade usable
with UserFilter's conditions.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Pascal Corpet [Sat, 29 May 2010 13:23:38 +0000 (15:23 +0200)]
HTML fixes
Pascal Corpet [Sat, 29 May 2010 13:23:24 +0000 (15:23 +0200)]
Fix 'young promo' for binets and PSC aliases display in list creation
Pascal Corpet [Sat, 29 May 2010 11:50:11 +0000 (13:50 +0200)]
First fix for WatchRegistration (need more)
Pascal Corpet [Sat, 29 May 2010 08:45:33 +0000 (10:45 +0200)]
Update core to fix PlSet orders
Pascal Corpet [Fri, 28 May 2010 22:34:01 +0000 (00:34 +0200)]
More HTML fixes
Pascal Corpet [Thu, 27 May 2010 22:38:54 +0000 (00:38 +0200)]
Fixes some XHTML strict errors or warnings
Pascal Corpet [Thu, 27 May 2010 21:08:38 +0000 (23:08 +0200)]
Links pointing to "" => "index" for html strict validation.
Raphaël Barrois [Fri, 28 May 2010 10:42:34 +0000 (12:42 +0200)]
Switch to core with fixed PlIteratorUtils
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Thu, 27 May 2010 16:08:12 +0000 (18:08 +0200)]
Fixes to axletter (correctly display number of emails sent)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Stéphane Jacob [Thu, 27 May 2010 16:52:45 +0000 (18:52 +0200)]
Updates ChangeLog.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Wed, 26 May 2010 18:37:15 +0000 (20:37 +0200)]
Removes getuser.sh, uniformises code in bin/.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Raphaël Barrois [Wed, 26 May 2010 08:28:22 +0000 (10:28 +0200)]
Use core with fixed date formatting
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Stéphane Jacob [Tue, 25 May 2010 13:19:55 +0000 (15:19 +0200)]
Fixes search token database reconstruction.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 25 May 2010 12:57:35 +0000 (14:57 +0200)]
Changes a call on to a call on .
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 25 May 2010 12:48:56 +0000 (14:48 +0200)]
Replaces calls to session datas by cals to the object in name edition.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Mon, 24 May 2010 20:16:59 +0000 (22:16 +0200)]
Fixes bugs in name edition.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 18 May 2010 15:41:41 +0000 (17:41 +0200)]
Updates education script (Sydney University).
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 18 May 2010 14:09:15 +0000 (16:09 +0200)]
Replaces removed function get_not_registered_user.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Raphaël Barrois [Tue, 25 May 2010 13:45:10 +0000 (15:45 +0200)]
Fixes problem with multi-token quicksearch (Closes #1053)
Query was too simple...
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 24 May 2010 22:54:16 +0000 (00:54 +0200)]
Fix ProfilePhone
Phones weren't associated with profile in a batch load of profiles.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Florent Bruneau [Mon, 24 May 2010 20:12:11 +0000 (22:12 +0200)]
Fix SU on account.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 21 May 2010 19:18:56 +0000 (21:18 +0200)]
Merge remote branch 'origin/platal-0.10.2'
Conflicts:
include/emails.inc.php
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Raphaël Barrois [Wed, 19 May 2010 18:38:55 +0000 (20:38 +0200)]
Improve ids_from_emails
* Fix problem with duplicate emails (all are associated)
* Fix problem with @melix.net emails
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 19 May 2010 18:36:30 +0000 (20:36 +0200)]
Improve testing of axletter-subset validity
* displays number of errors
* displays number of correct emails
* displays number of real users (hence, number of duplicates)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Tue, 18 May 2010 15:42:59 +0000 (17:42 +0200)]
Add option for checking unknown emails for axletter
And fixes a bug in email to uid mapping
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Stéphane Jacob [Thu, 20 May 2010 13:14:25 +0000 (15:14 +0200)]
Adds a swedish medal.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Raphaël Barrois [Wed, 19 May 2010 18:38:55 +0000 (20:38 +0200)]
Improve ids_from_emails
* Fix problem with duplicate emails (all are associated)
* Fix problem with @melix.net emails
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 19 May 2010 18:36:30 +0000 (20:36 +0200)]
Improve testing of axletter-subset validity
* displays number of errors
* displays number of correct emails
* displays number of real users (hence, number of duplicates)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Tue, 18 May 2010 15:42:59 +0000 (17:42 +0200)]
Add option for checking unknown emails for axletter
And fixes a bug in email to uid mapping
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Tue, 18 May 2010 14:04:34 +0000 (16:04 +0200)]
Fix size of columns for subset field of axletter
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Florent Bruneau [Mon, 17 May 2010 19:53:38 +0000 (21:53 +0200)]
Merge branch 'platal-0.10.2'
Florent Bruneau [Mon, 17 May 2010 19:50:42 +0000 (21:50 +0200)]
Add missing Unlock on ML creation.
WARNING: this patch requires mailman *and* the rpc to be restarted.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 16 May 2010 20:26:11 +0000 (22:26 +0200)]
Update core
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 9 May 2010 20:22:51 +0000 (22:22 +0200)]
Give names to testcases.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 9 May 2010 20:01:22 +0000 (22:01 +0200)]
Tests UFO_Birthday, UFO_ProfileUpdate and UFO_Registration.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 9 May 2010 16:17:47 +0000 (18:17 +0200)]
Typo.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 9 May 2010 14:53:06 +0000 (16:53 +0200)]
Add a base for sort/limits testing.
Also in this commit:
* Add UFO_(Hr)?[up]id.
* Add missing requireProfile/Accounts in UFOs.
* Disallow ordering comparions on displayed promos.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Raphaël Barrois [Fri, 7 May 2010 17:57:25 +0000 (19:57 +0200)]
Switch to latest core (fixed UTs)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 7 May 2010 14:14:36 +0000 (16:14 +0200)]
Add uts for UFC_Registered
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 7 May 2010 14:13:31 +0000 (16:13 +0200)]
Fix bug in UFC_Registration with 0000-00-00 00:00:00 dates
SELECT COUNT(*) FROM accounts WHER registration_date IS NULL AND
registration_date IS NOT NULL => 16 000 rows !
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 7 May 2010 13:03:42 +0000 (15:03 +0200)]
Cleanup UFCs using dates (use new make_datetime function)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 7 May 2010 13:02:48 +0000 (15:02 +0200)]
Switch to latest core
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 7 May 2010 11:34:01 +0000 (13:34 +0200)]
Fix UFC_Death (didn't work with dates before the epoch...)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 7 May 2010 11:33:50 +0000 (13:33 +0200)]
Add UTs for UFC_Death
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 7 May 2010 10:55:19 +0000 (12:55 +0200)]
Add UTs for UFC_Nationality
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 7 May 2010 10:49:11 +0000 (12:49 +0200)]
Add UTs for UFC_SchoolId
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Stéphane Jacob [Wed, 5 May 2010 07:39:41 +0000 (09:39 +0200)]
Adds email count in massmailer and displays it in the axletter notification email.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Mon, 3 May 2010 10:57:09 +0000 (12:57 +0200)]
Updates education upgrading script.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Florent Bruneau [Sat, 1 May 2010 15:48:34 +0000 (17:48 +0200)]
Add testSimpleProfile.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Raphaël Barrois [Fri, 30 Apr 2010 22:25:32 +0000 (00:25 +0200)]
Add tests for UFC_NameTokens
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 30 Apr 2010 22:24:39 +0000 (00:24 +0200)]
Improve args for UFC_NameTokens
allow a single token ; a call to pl_flatten might be
useful here
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 22:53:15 +0000 (00:53 +0200)]
Add uts for UFC_Name (particle, variants)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 22:52:54 +0000 (00:52 +0200)]
Fix UFC_Name::PARTICLE to be easier to use
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 21:24:16 +0000 (23:24 +0200)]
Add partial tests for UFC_Name
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 21:23:55 +0000 (23:23 +0200)]
Add UFC_Name::EXACT mode
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Florent Bruneau [Wed, 28 Apr 2010 19:53:37 +0000 (21:53 +0200)]
Update core and replace constructors of some UFC that can take several
different argument at once by pl_flatten(func_get_args()).
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 18:53:23 +0000 (20:53 +0200)]
Fix a bug in UFC_EducationField (wrong table name)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 18:52:43 +0000 (20:52 +0200)]
Add tests for UFC_EducationField
Todo: update database so that this tests have a meaning...
fields are empty for all but 28 profiles !
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 18:44:48 +0000 (20:44 +0200)]
Fix bug in UFC_EducationDegree
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 18:44:33 +0000 (20:44 +0200)]
Add ut for UFC_EducationDegree
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 15:17:46 +0000 (17:17 +0200)]
Add check against PHP's 0 == 'anystring' problem
We might have to check lots of code to avoid this...
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 15:02:56 +0000 (17:02 +0200)]
Improve listing of test cases for ut/userfiltertest
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 14:35:43 +0000 (16:35 +0200)]
Improve design of userfiltertest
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 13:55:07 +0000 (15:55 +0200)]
Fix typo
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 13:27:28 +0000 (15:27 +0200)]
Remove duplicate test
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Stéphane Jacob [Wed, 28 Apr 2010 12:20:12 +0000 (14:20 +0200)]
Only proposes @melix aliases for login.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Raphaël Barrois [Wed, 28 Apr 2010 12:26:30 +0000 (14:26 +0200)]
Add tests for UFC_Promo (tests for MX/PHD disabled)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Tue, 27 Apr 2010 11:53:26 +0000 (13:53 +0200)]
Update userfiltertest since getTotalCOunt is now fixed
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Tue, 27 Apr 2010 11:29:32 +0000 (13:29 +0200)]
Fix UserFilter->getTotalCount
Split it into getTotalUserCount and getTotalProfileCount
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Sun, 25 Apr 2010 14:25:38 +0000 (16:25 +0200)]
Fix template for profile (remaining $o)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Stéphane Jacob [Thu, 22 Apr 2010 09:03:43 +0000 (11:03 +0200)]
Updates core
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Florent Bruneau [Sun, 18 Apr 2010 12:55:04 +0000 (14:55 +0200)]
A first batch of tests of the UserFilter.
Are (partially) tested:
* UFC_HasProfile
* UFC_Hruid
* UFC_Hrpid
* HFC_Ip
A lot of work remains to:
* test *all* the UFC and all the parameters of the UFCs.
* test fetch of both UIDs and PIDs
* test UFO
* test boolean operations on UFCs.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Stéphane Jacob [Tue, 13 Apr 2010 14:08:08 +0000 (16:08 +0200)]
Typo.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 13 Apr 2010 14:05:37 +0000 (16:05 +0200)]
Updates education upgrade script.
Signed-off-by: Stéphane Jacob <sj@m4x.org>