Commit Graph

3416 Commits

Author SHA1 Message Date
Kenneth SOARES
49b0a13dbd fixed imports 2025-11-07 15:58:06 +01:00
Kenneth SOARES
edd31d5d56 used 3.10 types 2025-11-07 15:58:06 +01:00
Torrent
3ea2d2aaf2 filter using schema 2025-11-07 15:58:06 +01:00
Torrent
6b27542210 add club search api filters 2025-11-07 15:58:06 +01:00
thomas girod
285bd71371 Merge pull request #1227 from ae-utbm/sales-csv-header
fix: missing sales csv header row
2025-11-07 15:39:42 +01:00
imperosol
9c22e061f5 fix: missing sales csv header row
fix #1205
2025-11-07 14:56:34 +01:00
thomas girod
4fdc13fb1c Merge pull request #1226 from ae-utbm/fix-picture-download-btn
fix: picture download btn
2025-11-07 14:55:47 +01:00
thomas girod
415193972c Merge pull request #1223 from ae-utbm/sale-date-index
Add index on `Selling.date`
2025-11-07 14:55:32 +01:00
thomas girod
bf45b95d88 Merge pull request #1224 from ae-utbm/fix-product-picture
fix: product image not saved
2025-11-07 14:55:22 +01:00
imperosol
9a311d8cee fix: pictures download button
fix #1225
2025-11-07 14:30:11 +01:00
imperosol
7209801511 fix: product image not saved
fix #1219
2025-11-07 13:14:13 +01:00
imperosol
742ac504dc optimize db requests on club sales view 2025-11-07 13:08:01 +01:00
imperosol
3b56d2c22b add index on Selling.date
L'index prend ~20% de la taille de la table (la table fait un peu plus de 100%Mo, et l'index un peu plus de 20Mo), mais permet de diviser par 10 les requêtes qui filtrent sur la date des ventes.

Ca concerne notamment les requêtes db faites sur les pages suivantes :

- les appels à facture (~75ms → ~3ms)
- les ventes d'un club (entre 300ms et 450ms → entre 10ms et 15ms)
- le top conso des comptoirs (sur le Foyer, ~90ms → ~9ms)
- les dernières opérations d'un comptoir (sur le Foyer, ~130ms → ~1.5ms

J'aurais bien aimé mettre également un index sur la troncature au mois de la date, mais c'est compliqué à mettre en place étant donné que postgres ne prend des index que sur des expressions immuables et que, comme elle dépend de la timezone (qui peut changer), la fonction date_trunc n'est pas immuable.
2025-11-07 13:08:01 +01:00
thomas girod
9c64dae7fe Merge pull request #1221 from ae-utbm/fix-posters
posters: fix broken moderation view
2025-11-04 12:29:40 +01:00
Sli
917a2b50cc Fix naming, fix tooltip and cosmetic changes 2025-10-31 21:51:12 +01:00
imperosol
118a08372f simplify poster moderation 2025-10-31 17:16:52 +01:00
Sli
b8429a510f posters: fix broken moderation view 2025-10-31 12:15:44 +01:00
thomas girod
459edc1b6e Merge pull request #1212 from ae-utbm/fix-notification-invoice
fix: notification on invoice call update
2025-10-18 15:05:38 +02:00
a760a0b75d Merge pull request #1191 from ae-utbm/notifications
Add macro to refresh messages from htmx swap
2025-10-18 14:39:30 +02:00
imperosol
fc615e90b2 fix: notification on invoice call update 2025-10-18 14:35:19 +02:00
Sli
76eebaf54e Rename notification plugin import on alpine-index 2025-10-18 14:35:08 +02:00
thomas girod
9407f4b341 Merge pull request #1104 from ae-utbm/invoice_calls_validation
Invoice calls validation checkbox
2025-10-18 14:21:46 +02:00
imperosol
8bd82c9d7c Complete invoice call validation feature 2025-10-17 13:44:03 +02:00
Kenneth SOARES
957441ceb1 fix checkbox width 2025-10-17 13:40:06 +02:00
Kenneth SOARES
3bcd417ad0 Basic implementation of invoice call validation 2025-10-17 13:40:05 +02:00
thomas girod
453e13d54b Merge pull request #1174 from ae-utbm/auto-archive
Automatic product actions
2025-10-16 09:16:50 +02:00
thomas girod
dbd86b66cc Merge pull request #1178 from ae-utbm/cache-photos
Cache user photos
2025-10-12 14:04:30 +02:00
thomas girod
dcf799b352 Merge pull request #1197 from ae-utbm/fix-permission
fix: permission in ClubAddMemberForm
2025-10-12 14:04:03 +02:00
imperosol
d815f7da97 fix: permission in ClubAddMemberForm 2025-10-10 21:20:04 +02:00
imperosol
dac52db434 forbid past dates for product actions 2025-10-10 20:50:50 +02:00
imperosol
f398c9901c fix: 500 on product create view 2025-10-10 20:42:36 +02:00
imperosol
5b91fe2145 use ModelFormSet instead of FormSet for scheduled actions 2025-10-10 20:40:44 +02:00
imperosol
abd905c24d write tests 2025-10-10 20:40:44 +02:00
imperosol
42b53a39f3 feat: automatic product counters edition 2025-10-10 20:40:44 +02:00
imperosol
5306001f6f ScheduledProductAction model to store tasks related to products 2025-10-10 20:40:44 +02:00
imperosol
83a4ac2a7e feat: automatic product archiving 2025-10-10 20:40:44 +02:00
thomas girod
30fd4f6926 Merge pull request #1054 from ae-utbm/edt
Embed the timetable generator in the sith
2025-10-10 20:39:43 +02:00
Noa Fouich
1b1ef18531 Merge pull request #1195 from ae-utbm/fix-css-on-barman-click-on-phone
fix css on barman click on phone
2025-10-06 16:36:18 +02:00
Noa Fouich
bcf5d30d8f fix css on barman click on phone 2025-10-06 16:13:51 +02:00
thomas girod
4b44e50780 Merge pull request #1193 from ae-utbm/optimize-jinja
Optimisations
2025-10-02 19:05:03 +02:00
imperosol
40c3276c3c remove spaces from autocomplete selects 2025-09-29 17:43:50 +02:00
imperosol
543a424258 fix: N+1 on news list for admins 2025-09-29 16:10:50 +02:00
imperosol
8ff25e6034 optimize main page notifications 2025-09-29 08:45:56 +02:00
Sli
fa8772ede2 Add macro to refresh messages from htmx swap 2025-09-27 19:49:17 +02:00
thomas girod
03f53e921b Merge pull request #1192 from ae-utbm/fix-add-member
fix: wrong text on member form submit button
2025-09-27 18:01:10 +02:00
imperosol
56f09fd739 fix: wrong text on member form submit button 2025-09-27 17:40:18 +02:00
thomas girod
19e3fc604d Merge pull request #1172 from ae-utbm/htmx-club
HTMXify club members page
2025-09-27 17:29:16 +02:00
imperosol
24e1ad6dc8 apply review comments 2025-09-27 17:06:43 +02:00
imperosol
2a30f30a31 feat: cache user pictures 2025-09-26 22:44:26 +02:00
imperosol
80545e682b add hour indicator 2025-09-26 22:32:51 +02:00