1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
Commit Graph

364 Commits

Author SHA1 Message Date
Sylvain
664e42099a (test) improved settings fixtures 2022-12-21 14:14:24 +01:00
Sylvain
7d83d6454f (test) Jest + react-testing-library
This commit aims to put a testing environment in place
for frontend react components using the de-facto standards
for our stack.

An example test file was writter for the component plan-form.tsx.
Some fixtures for some API endpoints were written (see
__setup__/server.js)
2022-12-21 14:14:22 +01:00
Sylvain
620ce2c3a8 (test) products tests 2022-12-21 14:12:16 +01:00
Sylvain
2cf18c277c (bug) create recurrent event
Also: (test) test trainings API
Also: (test) test create recurrent event
2022-12-21 14:12:16 +01:00
Sylvain
5d1c70a26e (test) accounting service 2022-12-21 14:12:15 +01:00
Sylvain
a55880a0ad (feat) OpenAPI endpoint for accounting
Also: (bug) filter by array in openAPI = error
2022-12-21 14:12:14 +01:00
Sylvain
af3def0e2e (feat) save the accounting data in DB
Previously, the accounting data were built on demand,
extracting the data from the invoices on-the-fly.
This is intended to be used only once in a while, so there was
no performance issue with that.
Now, we want those data to be accessed from the OpenAPI,
so building them on-the-fly would be very much
intensive and resouces heavy. So we build them each nights
using a scheduled worker and save them in the database
2022-12-21 14:11:40 +01:00
Sylvain
514a797b64 (wip) accounting endpoint for the OpenAPI 2022-12-21 14:11:39 +01:00
Guilherme Chaguri
0544bec729 Fix test fixtures to use the current timezone 2022-12-20 13:57:37 -03:00
Sylvain
3a2f488c56 (test) prevent last minutes bookings 2022-12-14 12:22:44 +01:00
Sylvain
fa18891bc6 (bug) invalid test assertion 2022-12-14 11:30:06 +01:00
Sylvain
8eaeb2df39 (bug) soft-destroyed still reported in OpenAPI
Also: improved testing
2022-11-23 11:59:06 +01:00
Du Peng
37b17595a1 (test) add missing vcr cassettes test file 2022-11-22 16:36:21 +01:00
Sylvain
451cd0e915 (test) add admin offer product to himself
Also: split AdminPayOrderTest in two files
2022-11-17 17:14:31 +01:00
Sylvain
c684b892a7 (bug) ES not synced during tests 2022-11-17 16:59:33 +01:00
Sylvain
7b187b5776 (quality) remove console print 2022-11-17 16:41:25 +01:00
Sylvain
0c2129973c (test) added a test on statistics export 2022-11-17 16:35:59 +01:00
Du Peng
46ef0170b9 (test) add admin pay order test 2022-11-07 18:52:43 +01:00
Sylvain
46e042fd38 (bug) test on invoice items was not idempotent 2022-10-28 10:25:10 +02:00
Sylvain
d9eee1aa3f (bug) user cannot see past availabilities 2022-10-28 10:25:10 +02:00
Sylvain
71d5abdedb (bug) invalid coupon amount in PDF invoices 2022-10-27 16:45:38 +02:00
Sylvain
a3190115ab (bug) invoice rounding error using coupons 2022-10-27 16:04:21 +02:00
Sylvain
fc2b52c2ca (bug) invalid accounting export for store orders 2022-10-26 14:32:19 +02:00
Du Peng
6d448e0af2 (merge) merge dev and product-store 2022-10-26 09:37:31 +02:00
Du Peng
f771a829ab (test) add test on store 2022-10-25 19:10:14 +02:00
Sylvain
c9901a89e1 (test) test admin reserves for himself 2022-10-25 14:31:31 +02:00
Sylvain
abea5006b2 (bug) fix test failing between 10:00 and 11:00 2022-10-25 10:53:56 +02:00
Sylvain
873752172d (bug) no statistics on trainings and spaces reservations 2022-10-24 12:12:49 +02:00
Du Peng
cfc2a71c98 (test) add test for prepaid pack 2022-10-19 18:16:54 +02:00
Sylvain
d9e8d0e40d (wip) report store statistics in UI 2022-10-11 17:23:45 +02:00
Sylvain
70f7ef8951 (feat) build stats in elasticsearch 2022-10-11 15:14:53 +02:00
Sylvain
afc0685585 (test) store fixtures 2022-10-11 12:39:50 +02:00
Sylvain
3e6763f14a (bug) wallet transation not returned if success 2022-10-11 11:41:44 +02:00
Sylvain
da11a592e8 (quality) lint wallet transaction 2022-10-11 10:59:48 +02:00
Sylvain
fe419f295a (bug) erroneous statistics
The date of the statistics data was using the date of the regenerate
command parameter. This was ok for the nightly builds but definitly not
for bulk regeneration
2022-10-10 14:46:10 +02:00
Sylvain
2b80516177 (bug) unable to generate statistics
This bug is due to the refactoring of the statistics builder service,
in 2022 august. The default_options were not defined so the nightly
worker has no luck to run. The statistics may not have been built since
then, so a rebuild is required
2022-10-05 13:11:17 +02:00
Sylvain
c43d392191 (test) fix test after v5.4.19 changes 2022-09-27 17:21:43 +02:00
Sylvain
5524cf5707 (bug) add missing statistic_key
For 1 year plans, the statistics key was missing in test fixtures
2022-09-05 14:19:38 +02:00
Sylvain
5bc1da7cf5 (feat) coupon in reservations export 2022-09-05 11:39:23 +02:00
Sylvain
f21beeaee7 (api) OpenAPI prices index endpoint 2022-08-30 14:16:49 +02:00
Sylvain
4319ea9bce (api) OpenAPI plans categories index endpoint 2022-08-30 13:11:08 +02:00
Sylvain
657723bc22 (api) OpenAPI plans endpoints
index and show endpoints
2022-08-30 12:58:44 +02:00
Sylvain
4c3aa59bc0 (api) openAPI spaces endpoints
index spaces and show a space
2022-08-30 12:18:09 +02:00
Sylvain
b9c02742a1 (bug) unable to generate statistics 2022-08-29 17:34:09 +02:00
Sylvain
f7261043b5 Fix a bug: trainings monitoring is not available 2022-08-23 15:54:37 +02:00
Nicolas Florentin
1d6a59dd67 improvement: add complexity check of the user password 2022-07-29 17:37:42 +02:00
Sylvain
acbd327f6d (test) Added a test for multiple reservations on the same space slot 2022-07-27 17:28:30 +02:00
Sylvain
2705b9f6bd (bug) unable to reserve if user's subscription plan is disabled 2022-07-20 17:46:09 +02:00
Sylvain
c4d959570f code linting 2022-07-19 17:32:55 +02:00
Sylvain
b243800f5a (bug) As admin, unable to create a new member (#374) 2022-07-19 16:29:28 +02:00