Commit Graph
100 Commits
Author SHA1 Message Date
Skia 2cbe6fa11c Merge branch 'genderMatmatroncheV2' into 'master'
Remove gender option of matmatronche & update gender settings

Afin de se mettre à jour il est dorénavant possible de ne pas définir son genre sexué sur l'édit de son profil. D'ailleurs j'ai découvert que de base pour un profil random le sexe était défini sur "Homme" maintenant il est en "-------" !

![image](/uploads/43e9f32dc545b35cbe422a53602b2457/image.png)

De plus afin que personnes n'utilisent l'outil matmatronche à des fins de site de rencontres en cherchant uniquement les "Homme" ou les "Femme" d'une promo etc... Le choix du sexe dans la recherche a été supprimé.

![image](/uploads/e6e75d5661862178acfbe71f3f7efc35/image.png)

C'est la première fois que je fais une modification en solo alors n'hésitez pas à me casser en deux et m'expliquer si j'ai fauté :D

See merge request ae/Sith!264
2021-09-29 15:57:52 +00:00
Skia 6c45de34a4 Merge branch 'poster' into 'master'
[com]: add helper_text for resolution and format of poster

See merge request ae/Sith!209
2021-09-29 14:56:30 +00:00
Skia 007157e2e8 Merge branch 'datetime-hell2' into 'master'
core: create TzAwareDateTimeField to replace forms.DateTimeField

Follow up of !267. I read about Gitlab's slash and merge just after I did my own kind by resetting back to the original commit and creating one commit manually. Sublime merge helps but I still need more practice. :)

What was the right way to group every commit under one?

See merge request ae/Sith!270
2021-09-29 13:53:12 +00:00
Skia 782cd9a45a Merge branch 'sexy-search' into 'master'
Sexy search

The goal of this MR is to solve the search issue #96. Let's assume we have a user with firstname `Jean-François`, lastname `Du Pont` and nickname `Ai'gnan`. Here is a list of search that did not include him previously but now includes him (was and still is case-insensitive):

* `jean françois` (missing -) ;
* `jean-francois` (missing ç) ;
* `jean francois` (both) ;
* `dupont` (space) ;
* `françois` (not the start of his name) ;
* `aignan` (missing ').

You get it, there are a lot of mistakes that humans can do. It also sorts results by `User.last_update` to avoid putting old accounts at the top of common requests (such as firstname-only or lastname-only requests).

### How it works

For those who don't know, the search is handled by Xapian (the search backend) through the haystack library which provides a Django-friendly interface to multiple search backends. Xapian maintains kind of a duplicate of the database (only for models against which we want to search something) which is optimised for search operations. Its "models" are called "indexes" (see `core.search_indexes.UserIndex` for the user model).

Every time a user is created or modified, it is indexed (through a signal handler) so that Xapian knows about it. For the user search, what is indexed is the string outputted by the `core/templates/search/indexes/core/user_auto.txt` template. For our example from above, it looks like this:

```
jean francois
du pont
aignan
jeanfrancois
dupont

jeanfrancoisdupont
```

As you can see, unicode is removed. There also are kind-of duplicates with different spacing as we are using an autocomplete algorithm: it searches from the beginning of words.

The one I am not sure about is the last one. Its goal is to allow searching without putting a space between the firstname and lastname. Is this useful?

The prod will have to do a `./manage.py update_index`, not sure it does it in the upgrade script.

See merge request ae/Sith!269
2021-09-28 00:14:38 +00:00
Skia 1a483bfa2c Merge branch 'och' into 'master'
Settings: Added new subscription for the new CA offer

This year we made a new deal with the CA: if a student open an account, they give us 50€ and the student 80€ with on year of subscription.

See merge request ae/Sith!276
2021-09-27 23:31:46 +00:00
Skia bfb66b352a Merge branch 'dep-hell2' into 'master'
core: add ./manage.py check_front command and call it on runserver

See #92 and !268.

This simplifies checking that front-end dependencies are up to date. It does not allow one to update an outdated dependency. That must be done manually (would otherwise require depending on a CDN or add npm as a dependency). A manual update will make sure changelogs are read and changes will be made appropriately.

We add a `check_front` command to `manage.py` and run it on calls to `runserver`.

This MR does not update any dependency as it is not its goal. MR incoming!

Should doc be added? It seems pretty simple and I don't see what should be documented: if it's red, update it.

~"Review TODO" @sli

See merge request ae/Sith!271
2021-09-27 20:23:35 +00:00
Skia cb3307509d Merge branch 'skia/counter_rework' into 'master'
counter: make click page dynamic to avoid repetitive loading

See merge request ae/Sith!278
2021-09-27 19:21:28 +00:00
Skia a3158253a7 Black update 2021-09-26 13:58:39 +02:00
Skia 406380e4f1 counter: make click page dynamic to avoid repetitive loading
This makes the whole click page load only once for a normal click
workflow. The current basket is now rendered client side with Vue.JS,
and the backend view is able to answer with JSON if asked to.

This should lighten the workflow a lot on the client side, especially
with poor connectivity, and the server should also feel lighter during
big events, due to far less complex Jinja pages to render.
2021-09-26 13:58:39 +02:00
Skia efb70652af counter: redirect to counter main when barman login is timed out 2021-09-26 13:58:39 +02:00
Skia 05256bb99a counter: templates: click: JS clean up 2021-09-26 13:58:39 +02:00
Skia 64d0cc2fa8 counter: don't display info boxes and navigation menu
This will lighten the pages and make the functionality directly
accessible without ever scrolling the header garbage that is never
needed on those pages.
2021-09-26 13:58:39 +02:00
Skia f5d7267ba7 Merge branch 'skia/fix_ci' into 'master'
Fix CI

See merge request ae/Sith!277
2021-07-21 13:16:02 +00:00
Skia 24c0a21cc1 locale: update with latest code version 2021-04-23 12:02:03 +02:00
Skia 6a352d642b accounting: fix tests with a computed date instead of hard-coded one 2021-04-23 12:02:03 +02:00
Skia 6eabbaf209 core: add lazy loading in user pictures page 2020-05-15 12:14:14 +02:00
Skia 03eeffdea0 eboutic: check basket amount upon command validation 2019-03-15 02:17:36 +01:00
Skia 3898a13b25 Merge branch 'makdown-editor' into 'master'
Add a nice markdown editor

See merge request ae/Sith!184
2018-12-20 17:11:43 +01:00
Skia acfbdd1ad5 Merge branch 'feature/forum-search' into 'master'
Forum search

See merge request ae/Sith!181
2018-12-13 20:57:01 +01:00
Skia 835782fd7e forum/views: reduce number of queries with some 'prefetch_related' 2018-12-13 20:36:21 +01:00
Skia 82df424146 core: put User.group's names in cache 2018-12-13 20:36:21 +01:00
Skia a96aeba1fa Merge branch 'contribution-instructions' into 'master'
Update contributing and readme to xapian dependency

See merge request ae/Sith!183
2018-12-06 00:13:17 +01:00
Skia aba4207423 core: improve search index with 'autocomplete' 2018-12-05 14:59:14 +01:00
Skia 65e0b15b31 Update Haystack indexer to use Xapian 2018-11-26 21:25:02 +01:00
Skia be36b7f38a com: fix birthdays query 2018-09-19 11:37:16 +02:00
Skia 290f6ca883 Merge branch 'feature/captcha' into 'master'
Add captcha to registration form

Closes #52

See merge request ae/Sith!154
2018-07-06 11:35:03 +02:00
Skia f2106a37a3 counter: fix tests 2018-06-07 19:57:56 +02:00
Skia eae7825260 core/static: fix Matmat results with long names 2018-06-07 00:10:33 +02:00
Skia 61d34b3a09 core, matmat: fix search form 2018-06-06 00:25:27 +02:00
Skia fecb1ae902 core/static: fix Markdown code vertical-align 2018-06-05 00:49:43 +02:00
Skia be1dc62848 core: make a nice user profile 2018-06-05 00:28:43 +02:00
Skia 9146251642 Prevent generation of useless migrations upon settings change 2018-05-08 18:51:29 +02:00
Skia 23291ac60e Merge branch 'bugfix' into 'master'
Forum and Com fixes

See merge request ae/Sith!147
2018-04-26 19:50:49 +02:00
Skia 0cc3707059 subscription/tests: remove silly print 2018-04-19 01:10:06 +02:00
Skia bf57329bd8 sas/templates: Improve generation time display 2018-04-18 23:49:12 +02:00
Skia 4d36a961db core/models: improve repair_fs output 2018-04-18 23:02:19 +02:00
Skia 874dfa6cc3 sas/views: change categories ordering 2018-04-18 22:58:03 +02:00
Skia b5aee62558 core/models: don't always repair every single file 2018-04-18 22:54:30 +02:00
Skia 52832eed4d Merge branch 'skia' into 'master'
core/models: make some tools to repair the SithFiles FS regarding the DB

See merge request ae/Sith!144
2018-04-18 22:19:17 +02:00
Skia b2306b62d6 core/models: better handle broken files
Signed-off-by: Skia <skia@libskia.so>
2018-04-16 18:35:00 +02:00
Skia c7b918115d core/models: change thumbnails and compressed SithFile directories
Signed-off-by: Skia <skia@libskia.so>
2018-04-16 18:35:00 +02:00
Skia 0d3c34c155 core/models: refactor SithFile moving and add methods to manage filesystem
Signed-off-by: Skia <skia@libskia.so>
2018-04-16 18:35:00 +02:00
Skia e9e51d34d3 subscription: fix compute_start 2018-04-16 14:54:47 +02:00
Skia d619e0cd9b Merge branch 'weekmail' into 'master'
Weekmail images and colors

See merge request ae/Sith!143
2018-03-26 10:12:14 +02:00
Skia 847b8823af weekmail: reduce image weight 2018-03-26 09:57:50 +02:00
Skia d83bb20547 core: small update on footnotes style
Signed-off-by: Skia <skia@libskia.so>
2018-02-22 22:56:15 +01:00
Skia 606f1af4d5 forum: add favorite topics
Signed-off-by: Skia <skia@libskia.so>
2018-02-22 22:28:28 +01:00
Skia f47f846d26 forum: add button CSS class
Signed-off-by: Skia <skia@libskia.so>
2018-02-22 22:15:10 +01:00
Skia 10dfb2c122 Merge branch 'nabos' into 'master'
Communication screens

See merge request ae/Sith!116
2017-12-21 18:25:56 +01:00
Skia a2ee017668 club/views: fix call to parent's get_context_data in PosterListView 2017-12-21 18:16:32 +01:00
Skia 9ca82af219 Merge branch 'counter' into 'master'
fix can_buy in customer

See merge request ae/Sith!134
2017-12-01 16:03:16 +01:00
Skia 23d86464c8 Merge branch 'admin_area' into 'master'
Search field in Subscription admin area

See merge request ae/Sith!133
2017-11-17 12:02:31 +01:00
Skia 64c479a02e Merge branch 'bugfix' into 'master'
Bugfix

See merge request ae/Sith!132
2017-11-16 15:43:54 +01:00
Skia 6ee1ee365b Merge branch 'bugfix' into 'master'
Fix AGAIN subscription display

See merge request ae/Sith!130
2017-11-09 15:22:06 +01:00
Skia 3793321c37 Update README and Markdown test assets
Signed-off-by: Skia <skia@libskia.so>
2017-11-09 14:37:29 +01:00
Skia 4bf805e2f5 Merge branch 'krophil' into 'master'
Add comment in product type

See merge request ae/Sith!126
2017-11-07 12:10:49 +01:00
Skia 6ebdd53d98 club: make clubs viewable by old subscribers
Signed-off-by: Skia <skia@libskia.so>
2017-11-01 14:51:55 +01:00
Skia 4810934a10 Merge branch 'bugfix' into 'master'
Fix date displaying in user_detail

See merge request ae/Sith!127
2017-10-25 20:23:43 +02:00
Skia bc24baef09 Merge branch 'Tresorerie' into 'master'
Add possibility to not link an operation

See merge request ae/Sith!125
2017-10-25 20:20:08 +02:00
Skia cd4b0d8e0c Merge branch 'external_option' into 'master'
Integrate external_res variable

See merge request ae/Sith!120
2017-10-18 15:32:06 +02:00
Skia 578fa1495d sas: fix notification callback
Signed-off-by: Skia <skia@libskia.so>
2017-10-15 12:00:33 +02:00
Skia d5c6695f80 core: improve notification callback system
Signed-off-by: Skia <skia@libskia.so>
2017-10-15 12:00:33 +02:00
Skia 9b0b381fa3 core: make populate command more predictable (should fix the random failing test)
Signed-off-by: Skia <skia@libskia.so>
2017-10-14 13:51:50 +02:00
Skia 69c7036089 Merge branch 'krophil' into 'master'
Add search form in admin

See merge request ae/Sith!124
2017-10-12 09:29:02 +02:00
Skia 56a1e09a28 Fix requirements.txt: keep django-rest-framework <3.7
Signed-off-by: Skia <skia@libskia.so>
2017-10-11 12:45:57 +02:00
Skia 3c50aa554a Add pygraphviz to requirements
Signed-off-by: Skia <skia@libskia.so>
2017-10-11 12:31:17 +02:00
Skia 7879b6dd6b core: add family graphs
Signed-off-by: Skia <skia@libskia.so>
2017-10-11 12:30:33 +02:00
Skia 47bace2057 Merge branch 'Tresorerie' into 'master'
Enhanced display in journals

See merge request ae/Sith!123
2017-10-09 17:21:37 +02:00
Skia 7c2e562c1e locale: fix translation
Signed-off-by: Skia <skia@libskia.so>
2017-10-09 17:15:46 +02:00
Skia 43f51813e0 sas: fix album preview
Signed-off-by: Skia <skia@libskia.so>
2017-10-06 17:57:54 +02:00
Skia 87abdf7e68 trombi: update export page again
Signed-off-by: Skia <skia@libskia.so>
2017-10-06 17:29:23 +02:00
Skia a09c634ac6 core: add phonenumber template filter
Signed-off-by: Skia <skia@libskia.so>
2017-10-06 17:28:51 +02:00
Skia 8a58055d06 trombi: update export page
Signed-off-by: Skia <skia@libskia.so>
2017-10-06 16:38:36 +02:00
Skia fae2a572b1 Merge branch 'fontawesome' into 'master'
Few changes in design

See merge request ae/Sith!119
2017-10-06 15:30:30 +02:00
Skia e0517c5f4f Merge branch 'facebook-button' into 'master'
Small fix for logo in news

See merge request ae/Sith!121
2017-10-06 15:09:50 +02:00
Skia 0bef8d33d3 Merge branch 'clubs' into 'master'
Club tools enhacement

See merge request ae/Sith!108
2017-10-06 11:48:02 +02:00
Skia 13620de754 Merge branch 'facebook-button' into 'master'
Enhanced news

See merge request ae/Sith!117
2017-10-05 19:29:36 +02:00
Skia 13a2cc22dd core: fix some CSS
Signed-off-by: Skia <skia@libskia.so>
2017-09-26 14:05:19 +02:00
Skia b87990e3db com: add birthdays block
Signed-off-by: Skia <skia@libskia.so>
2017-09-26 13:45:40 +02:00
Skia 7b48156259 locale: update translation
Signed-off-by: Skia <skia@libskia.so>
2017-09-26 12:13:36 +02:00
Skia cda89d66cd com: improve news page
Signed-off-by: Skia <skia@libskia.so>
2017-09-26 12:13:23 +02:00
Skia a2dc00f4e5 club: add club logo
Signed-off-by: Skia <skia@libskia.so>
2017-09-25 20:13:35 +02:00
Skia 49b77480e6 sas: clean up old notif trigger
Signed-off-by: Skia <skia@libskia.so>
2017-09-25 12:50:02 +02:00
Skia 144a56570b locale: update translations
Signed-off-by: Skia <skia@libskia.so>
2017-09-25 12:40:39 +02:00
Skia f0c34fe70c sas: add permanent notification for SAS moderation
Signed-off-by: Skia <skia@libskia.so>
2017-09-25 12:35:56 +02:00
Skia 469304585c sas: update models managers
Signed-off-by: Skia <skia@libskia.so>
2017-09-25 12:34:05 +02:00
Skia 3a16c7aab4 trombi: change comments format in export
Signed-off-by: Skia <skia@libskia.so>
2017-09-25 11:08:20 +02:00
Skia c7f5203122 trombi: add dpt/option to export
Signed-off-by: Skia <skia@libskia.so>
2017-09-24 19:39:20 +02:00
Skia d2fccdb09b Merge branch 'bugfix' into 'master'
Small fix on news deletion

See merge request !115
2017-09-18 19:46:54 +02:00
Skia 3e769195e3 Merge branch 'facebook-button' into 'master'
Add facebook button

See merge request !112
2017-09-17 15:18:07 +02:00
Skia d797003028 coverage: blacklist some files
Signed-off-by: Skia <skia@libskia.so>
2017-09-07 11:50:05 +02:00
Skia 04fdb251e2 subscription: fix tests
Signed-off-by: Skia <skia@libskia.so>
2017-09-07 11:21:32 +02:00
Skia 96d0ae36be subscription: rename test
Signed-off-by: Skia <skia@libskia.so>
2017-09-07 01:27:49 +02:00
Skia 53696b7750 locale: make news notif translation
Signed-off-by: Skia <skia@libskia.so>
2017-09-06 13:19:47 +02:00
Skia 0184b9c29b core, com: make permanent notifications for news to moderate
This needs to be made for other stuff, like the SAS or the files...

Signed-off-by: Skia <skia@libskia.so>
2017-09-06 13:17:23 +02:00
Skia dd5926b404 core: fix notif ordering
Signed-off-by: Skia <skia@libskia.so>
2017-09-06 13:05:51 +02:00
Skia 4c1b231ec9 com: add NewsDeleteView
Signed-off-by: Skia <skia@libskia.so>
2017-09-06 12:47:21 +02:00
Skia 6456d18fc4 core, com: tool bar and agenda design updates
Signed-off-by: Skia <skia@libskia.so>
2017-09-03 19:05:45 +02:00
Skia e0067c3956 Merge branch 'krophil' into 'master'
Link to old site updated

See merge request !107
2017-09-03 18:13:22 +02:00
Skia 6bad524ede com: fix news edit display
Signed-off-by: Skia <skia@libskia.so>
2017-09-03 18:12:52 +02:00