Théo Le Moigne
|
70baf7566c
|
change wei words
|
2022-09-05 13:20:00 +02:00 |
Yohann D'ANELLO
|
d3273e9ee2
|
Prepare WEI 2022 (because tests are broken)
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2022-02-12 14:24:32 +01:00 |
Yohann D'ANELLO
|
d437f2bdbd
|
Linting
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-27 13:59:43 +02:00 |
Yohann D'ANELLO
|
ac8453b04c
|
[WEI] Reset cache after running algorithm
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-27 13:56:10 +02:00 |
Yohann D'ANELLO
|
161db0b00b
|
[WEI] Fix quotas
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-16 23:48:03 +02:00 |
Yohann D'ANELLO
|
8638c16b34
|
[WEI] New score function that takes in account scores given by other buses
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-16 22:15:45 +02:00 |
Yohann D'ANELLO
|
9583cec3ff
|
[WEI] Fix quotas
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-16 21:10:23 +02:00 |
Yohann D'ANELLO
|
1ef25924a0
|
[WEI] Display status bar with tqdm
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-16 20:46:34 +02:00 |
Yohann D'ANELLO
|
e89383e3f4
|
[WEI] Start repartition by non-male people
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-16 20:06:34 +02:00 |
Yohann D'ANELLO
|
79a116d9c6
|
[WEI] Cache optimization
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-16 20:05:20 +02:00 |
Yohann D'ANELLO
|
aa75ce5c7a
|
[WEI] Don't manage hardcoded people in repartition algorithm
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-16 15:37:18 +02:00 |
Yohann D'ANELLO
|
0234f19a33
|
[WEI] Automatically indicate a soge credit if already created
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-14 13:45:01 +02:00 |
Yohann D'ANELLO
|
1a4b7c83e8
|
[WEI] Fix critical security issue
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-13 23:37:27 +02:00 |
Yohann D'ANELLO
|
e68afc7d0a
|
[WEI] Fix redirect link
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-13 21:06:44 +02:00 |
Yohann D'ANELLO
|
c6e3b54f94
|
Use longtable for better tables for WEI
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-13 20:27:57 +02:00 |
Yohann D'ANELLO
|
4e3c32eb5e
|
Linting
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-13 19:28:15 +02:00 |
Yohann D'ANELLO
|
ef118c2445
|
[WEI] Avoid errors if the survey is not ended
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-13 19:24:53 +02:00 |
Yohann D'ANELLO
|
600ba15faa
|
[WEI] Display suggested 1A number in a bus in repartition view
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-13 19:04:11 +02:00 |
Yohann D'ANELLO
|
944bb127e2
|
[WEI] New UI is working
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-12 22:29:57 +02:00 |
Yohann D'ANELLO
|
f6d042c998
|
[WEI] Attribute bus to people that paid their registration
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-12 20:10:50 +02:00 |
Yohann D'ANELLO
|
bb9a0a2593
|
[WEI] UI to attribute buses for 1A
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-12 19:49:22 +02:00 |
Yohann D'ANELLO
|
61feac13c7
|
[WEI] Add page that display information about the algorithm result
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-11 19:16:34 +02:00 |
Yohann D'ANELLO
|
81e708a7e3
|
[WEI] Fix registration update
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-11 14:20:38 +02:00 |
Yohann D'ANELLO
|
3532846c87
|
[WEI] Validate WEI memberships of first year members before the repartition algorithm to debit notes
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-10 22:09:47 +02:00 |
Yohann D'ANELLO
|
db936bf75a
|
Avoid anonymous users to access to the WEI registration form
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-09 17:52:52 +02:00 |
Yohann D'ANELLO
|
0dd3da5c01
|
Linting
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-09 10:45:36 +02:00 |
Yohann D'ANELLO
|
be6059eba6
|
[WEI] Fix tests
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-09 10:20:57 +02:00 |
Yohann D'ANELLO
|
5793b83de7
|
[WEI] Fix error when validating sometimes a membership
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-09 09:27:15 +02:00 |
Yohann D'ANELLO
|
2c02c747f4
|
[WEI] Fix errors when a user go to the WEI registration form while it is already registered
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-09 09:23:12 +02:00 |
Yohann D'ANELLO
|
a78f3b7caa
|
[WEI] Fix broken tests
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-09 09:16:08 +02:00 |
Yohann D'ANELLO
|
bd035744a4
|
Don't create WEI registrations for unvalidated users
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-09 08:56:21 +02:00 |
Yohann D'ANELLO
|
048266ed61
|
[WEI] Fix unvalidated registrations table
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-07 22:09:00 +02:00 |
Yohann D'ANELLO
|
b27341009e
|
[WEI] Update validation buttons for 1A
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-07 15:11:15 +02:00 |
Yohann D'ANELLO
|
da1e15c5e6
|
Update Sogé credit amount when a transaction is added if the credit was already validated
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-07 13:04:09 +02:00 |
Yohann D'ANELLO
|
b646f549d6
|
When creating a Sogé credit, serch existing recent memberships and register them
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 21:24:16 +02:00 |
Yohann D'ANELLO
|
ba9ef0371a
|
[WEI] Run algorithm only on valid surveys
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 20:36:17 +02:00 |
Yohann D'ANELLO
|
881cd88f48
|
[WEI] Fix permission check for information json
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 20:10:21 +02:00 |
Yohann D'ANELLO
|
e5051ab018
|
Linting
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 19:32:34 +02:00 |
Yohann D'ANELLO
|
bb69627ac5
|
Remove debug code
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 18:57:07 +02:00 |
Yohann D'ANELLO
|
ffaa020310
|
Fix WEI registration in dev mode
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 18:52:57 +02:00 |
Yohann D'ANELLO
|
6d2b7054e2
|
[WEI] Optimizations in survey load
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 18:49:34 +02:00 |
Yohann D'ANELLO
|
d888d5863a
|
[WEI] For each bus, choose a random word which score is higher than the mid score
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 18:39:03 +02:00 |
Yohann D'ANELLO
|
dbc7b3444b
|
[WEI] Add script to import bus scores
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 18:23:55 +02:00 |
Yohann D'ANELLO
|
f25eb1d2c5
|
[WEI] Fix some issues
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 17:30:59 +02:00 |
Yohann D'ANELLO
|
a2a749e1ca
|
[WEI] Fix permission check to register new accounts to users
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-05 17:15:19 +02:00 |
Yohann D'ANELLO
|
5bf6a5501d
|
[WEI] Fix test for 1A registration
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-04 13:03:38 +02:00 |
Yohann D'ANELLO
|
9523b5f05f
|
[WEI] Choose one word per bus in the survey
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-04 12:37:29 +02:00 |
Yohann D'ANELLO
|
ea092803d7
|
Check permissions per request instead of per user
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-02 20:58:05 +02:00 |
Yohann D'ANELLO
|
d36edfc063
|
Linting
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-02 13:44:18 +02:00 |
Yohann D'ANELLO
|
e452b7acbf
|
[WEI] Allow a tolerance of 25 %
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-02 09:53:27 +02:00 |
Yohann D'ANELLO
|
74ab4df9fe
|
[WEI] Extreme test with full buses and quality constraints
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-02 01:36:37 +02:00 |
Yohann D'ANELLO
|
451851c955
|
[WEI] Add a small test for the WEI algorithm with a few people
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-09-01 22:53:28 +02:00 |
Yohann D'ANELLO
|
48c37353ea
|
[WEI] Fix pipeline before the good unit tests for WEI algorithm
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-29 14:38:11 +02:00 |
Yohann D'ANELLO
|
8056dc096d
|
[WEI] Old members can create WEI registrations to renew their membership easily
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-29 14:33:17 +02:00 |
Yohann D'ANELLO
|
a7bdffd71a
|
[WEI] Change color of validation button of WEI registrations
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-29 14:10:52 +02:00 |
Yohann D'ANELLO
|
0887e4bbde
|
[WEI] Fix some tests, without considering WEI algorithm
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-27 13:15:28 +02:00 |
Yohann D'ANELLO
|
199f4ca1f2
|
[WEI] First implementation of algorithm
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-27 10:44:38 +02:00 |
Yohann D'ANELLO
|
802a6c68cb
|
[WEI] Update survey words
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-26 00:11:24 +02:00 |
Yohann D'ANELLO
|
41a0b3a1c1
|
[WEI] Request bus size
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-25 23:26:57 +02:00 |
Yohann D'ANELLO
|
aa35724be2
|
Better display for WEI member list
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-23 19:00:26 +02:00 |
Yohann D'ANELLO
|
9086d33158
|
[WEI] Caution check is not required to validate registrations
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-23 18:51:34 +02:00 |
Yohann D'ANELLO
|
43d214b982
|
[WEI] Store seed in WEI Survey to add determinism in RNG
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-02 19:30:36 +02:00 |
Yohann D'ANELLO
|
b93e4a8d11
|
Current WEI year is 2021
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-02 19:22:07 +02:00 |
Yohann D'ANELLO
|
b9a9704061
|
[WEI] Prepare WEI 2021
No need to save WEI 2020 data because there weren't any WEI 2020
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-02 18:22:19 +02:00 |
Yohann D'ANELLO
|
fee52f326a
|
[WEI] Add dry mode in WEI algorithm command, output generated data
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-08-02 18:21:06 +02:00 |
Yohann D'ANELLO
|
d5ecb72a71
|
Update copyright for 2021
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-06-14 21:45:56 +02:00 |
Yohann D'ANELLO
|
5a7a219ba8
|
[invoices] Quantities can be non-integers
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
|
2021-03-13 12:35:28 +01:00 |
Yohann D'ANELLO
|
f570ff3cd5
|
Check that permissions are working when accessing to API pages
Signed-off-by: Yohann D'ANELLO <yohann.danello@gmail.com>
|
2020-12-23 18:21:59 +01:00 |
Yohann D'ANELLO
|
3a20555663
|
Unit tests for API pages, closes #83
Signed-off-by: Yohann D'ANELLO <yohann.danello@gmail.com>
|
2020-12-23 14:54:21 +01:00 |
Yohann D'ANELLO
|
48880e7fd3
|
More API filters for the wei app
|
2020-12-22 13:11:01 +01:00 |
ynerant
|
73ca65aa91
|
Merge branch 'atomicity' into 'beta'
Atomicité
See merge request bde/nk20!122
|
2020-09-14 09:38:54 +02:00 |
elkmaennchen
|
5b02ba48e0
|
Some OTL, but so much remain
|
2020-09-13 12:40:10 +02:00 |
Yohann D'ANELLO
|
9b090a145c
|
All transactions are now atomic
|
2020-09-11 22:52:16 +02:00 |
Yohann D'ANELLO
|
0741c8ad2b
|
Refactor the script to extract the mails that are registered to an events mailing list
|
2020-09-08 10:11:33 +02:00 |
Alexandre Iooss
|
48407cacf8
|
Call subprocesses with absolute path
|
2020-09-06 21:19:17 +02:00 |
Alexandre Iooss
|
dcdd8e56e8
|
Migrate LaTeX to XeTeX
|
2020-09-06 15:30:12 +02:00 |
Alexandre Iooss
|
ae028b7d06
|
Disable pdflatex interactivity
|
2020-09-06 13:36:07 +02:00 |
Yohann D'ANELLO
|
751a4291ab
|
We are in production, then we commit migrations
|
2020-09-05 10:05:17 +02:00 |
Yohann D'ANELLO
|
77b0241406
|
Log TeX error directly
|
2020-09-05 09:00:16 +02:00 |
Yohann D'ANELLO
|
980032bfbf
|
Remove ltablex and tabularx TeX depency
|
2020-09-02 12:23:45 +02:00 |
Yohann D'ANELLO
|
361ea8cad3
|
Update Django Tables 2, change accessor from dot to __
|
2020-09-01 17:58:58 +02:00 |
Alexandre Iooss
|
5feb23ad51
|
Use Debian font awesome
|
2020-09-01 14:33:38 +02:00 |
Alexandre Iooss
|
dd9ca315fa
|
Clean up templates header
|
2020-09-01 10:20:16 +02:00 |
Alexandre Iooss
|
d9e003a8f4
|
Remove contenttitle
|
2020-09-01 10:13:05 +02:00 |
Alexandre Iooss
|
4cb162de87
|
Card for wei templates
|
2020-08-25 18:36:49 +02:00 |
Alexandre Iooss
|
e3785e11f1
|
Cards everywhere in member app
|
2020-08-25 16:30:02 +02:00 |
Alexandre Iooss
|
cbc3e39bd6
|
Create base template for member and wei
|
2020-08-23 10:06:16 +02:00 |
Yohann D'ANELLO
|
b8c3dda95b
|
Replace timezone.now().date() by date.today()
|
2020-08-16 00:35:13 +02:00 |
Yohann D'ANELLO
|
4997a37058
|
Ensure that the user is authenticated before that it has the permission to see page
|
2020-08-15 23:27:58 +02:00 |
Yohann D'ANELLO
|
0bf5067b60
|
Fix linters
|
2020-08-15 19:10:23 +02:00 |
Yohann D'ANELLO
|
d962763987
|
datetime.today() => date.today()
|
2020-08-14 19:04:44 +02:00 |
Yohann D'ANELLO
|
c50fdd6689
|
Move the mailing list registration to the Profile model, see #50
|
2020-08-13 19:43:37 +02:00 |
Yohann D'ANELLO
|
1e4cbf60c5
|
Display the full price of the WEI, including the BDE and the Kfet membership
|
2020-08-13 19:29:01 +02:00 |
Yohann D'ANELLO
|
c466715e8a
|
Raise permission denied on CreateView if you don't have the permission to create a sample instance, see #53
|
2020-08-13 15:20:15 +02:00 |
Yohann D'ANELLO
|
71f6436d06
|
More WEI tests, > 97 % coverage
|
2020-08-11 13:30:44 +02:00 |
Yohann D'ANELLO
|
106e97f5df
|
Tests are better when they work (fix two tests)
|
2020-08-11 01:07:45 +02:00 |
Yohann D'ANELLO
|
b7a88a387c
|
More tests in WEI app, but we can still go further
|
2020-08-11 01:03:29 +02:00 |
Yohann D'ANELLO
|
25e26fe8cf
|
Don't test LaTeX pages if LaTeX is not installed
|
2020-08-10 23:29:11 +02:00 |
Yohann D'ANELLO
|
0fae5b3e62
|
Create tests for the WEI app
|
2020-08-10 23:18:40 +02:00 |
Yohann D'ANELLO
|
3784e97d60
|
Hide the credit interface when editing a WEI registration
|
2020-08-10 20:09:49 +02:00 |