Commit graph

54 commits

Author SHA1 Message Date
81aabdab72
Version 3.0.0
This removes api authentification with token in favor of signature method.
Refactorize code and clean up. It add more unit test plus code coverage
in test/converage.

- Added config.api.timestampTimeout
- Added Helper::signRequest This calculates the request signature
- Added more unit tests and extend code coverage.
- Added rate limiter for web routes
- Added RemoveSpaces Sanitizer on api requests
- Added stress test suite
- Changed AuthServiceProvider api-token to api-hmac
- Changed CustomerSeeder to have at least of customer activated (for unit tests)
- Changed used transation for saveing multiple models
- Changed, in ServiceController generateApiToken to generateServicePassword
- Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC  value
- Composer added brianium/paratest
- Composer update
- Fixed case where removing single optin could be the wrong one (not for the good service)
- Fixed customer delete
- Fixed customer would not be resolved by brand.
- Fixed Really check that request is json checking body content, preventing sending malformed requests
- Remove ApiError::needAuth
- Removed api_token
- Removed ApiController::authenticate
- Removed config.api.tokenTimeout
- Removed Header check or usage because of HAProxy doing weird stuff
- Removed lock files from gitignore
- Removed memcached dependency
- Removed unused questions resources api routes
- Removed workspace file

Migrations
- Added unique index on services.bearer_token
- Changed customer_id on customer_answer is nullable
- Changed services.bearer_pwd length to 312 (the size of the token)
- Dropped services.api_token and service.api_token_date
2022-01-06 12:11:05 +01:00
4c9b760d09
update readme to run tests
change composer.json test memcache to use 127.0.0.1 instead of localhost
2021-12-05 17:31:09 +01:00
Jérémy Munsch
f7edb2ff5e
force bump all kwaadpeppers dependencies 2021-11-08 16:45:30 +01:00
Jérémy Munsch
4294de1a6d
Remove redis queue and composer spatie/laravel-mix-preload in favor of a queue named "stats" with special supervisor conf 2021-11-05 16:22:36 +01:00
Jérémy Munsch
8562990623
Add client Stats unit tests
bump to version 2.3.0
2021-11-05 15:11:25 +01:00
Jérémy Munsch
bccc1fb052
Service Stat with redis
composer require spatie/laravel-rate-limited-job-middleware
2021-10-29 17:32:30 +02:00
Jérémy Munsch
20148d7bae
bump crud-policies to 0.1.22
Fix customer sorter
2021-10-26 16:01:33 +02:00
Jérémy Munsch
0569182bfb
bump version to 2.2.3
bump client
2021-10-26 12:52:03 +02:00
Jérémy Munsch
622fd15a7e
change unit test server ip from 127.0.0.25 to 127.0.0.1 (seems to have stoped working on wsl ?) 2021-10-26 10:00:27 +02:00
Jérémy Munsch
030d9698cd
bump to 2.2.1
Repair arcadia send methods + client with unit tests
2021-10-20 15:30:21 +02:00
Jérémy Munsch
e4593f5b04
Composer require
- propaganistas/laravel-phone
- axlon/laravel-postal-code-validation
2021-10-20 09:59:08 +02:00
Jérémy Munsch
923e566ee7
Changed Arcadia mails, add customer parameters for these calls
Updated Client
bump to 2.2.0
2021-10-18 09:03:00 +02:00
Jérémy Munsch
826a855ca8
bump kwaadpepper/exception-handler to 0.0.4
bump client
2021-10-15 08:05:37 +02:00
Jérémy Munsch
a007b9c565
bump version to 2.1.8
bump client
2021-09-21 12:08:48 +02:00
Jérémy Munsch
91bb88d26d composer require kwaadpepper/exception-handler 2021-09-15 10:10:37 +02:00
Jérémy Munsch
7110aef8ce bump version to 2.1.7 2021-09-14 10:59:18 +02:00
Jérémy Munsch
fc4b9502da add check is memcached running ? 2021-09-09 16:08:42 +02:00
Jérémy Munsch
78bbd8fafb bump kwaadpepper/crud-policies
Customer search
2021-09-09 16:08:42 +02:00
Jérémy Munsch
193a93715e Newsletter export Function
- composer require league/csv
2021-09-09 16:08:42 +02:00
Jérémy Munsch
72a5b73902 overhaull UI upgrade
using crud policies
2021-09-09 16:08:37 +02:00
Jérémy Munsch
bb3d683e11 bump to 2.1.5
update client v2
2021-08-26 15:00:17 +02:00
Jérémy Munsch
51fc78c873 bump to 2.1.3 and bump client 2021-08-25 17:31:33 +02:00
Jérémy Munsch
dafa85ff79 bump version to 2.1.1 2021-08-24 08:54:35 +02:00
Jérémy Munsch
f940d7a71d Eloquent model cache for Brand and Service
composer require rennokki/laravel-eloquent-query-cache
2021-08-23 20:50:51 +02:00
Jérémy Munsch
baaf1cc677 composer require cache/memcached-adapter 2021-08-23 14:24:17 +02:00
Jérémy Munsch
8d7fa90ccc Bump version to 2.1.0
Update client
2021-08-23 09:03:46 +02:00
Jérémy Munsch
fb9de3325e bump version to 2.0.14 2021-08-18 08:44:38 +02:00
Jérémy Munsch
4f281ee776 bump version to 2.0.13 2021-08-18 08:27:40 +02:00
Jérémy Munsch
e6c60ee75c bump version to 2.0.12 and update client 2021-08-17 11:16:00 +02:00
Jérémy Munsch
e3315c7708 bump to 2.0.11 update client 2021-08-16 19:23:40 +02:00
Jérémy Munsch
39b003e027 Update client
bump to 2.0.10
2021-08-16 13:27:42 +02:00
Jérémy Munsch
92e0113069 bump and update client to 2.0.9 2021-08-16 08:09:06 +02:00
Jérémy Munsch
97e586f210 bump version to 2.0.8 2021-08-13 12:34:30 +02:00
Jérémy Munsch
aa0f43c2b3 bump to 2.0.7 2021-08-13 12:26:25 +02:00
Jérémy Munsch
420e56097c bump to kwaadpepper/enum 2.0.0 2021-08-13 12:20:02 +02:00
Jérémy Munsch
f170e73660 bump client to 2.0.5 and version to 2.0.5 2021-08-13 11:08:25 +02:00
Jérémy Munsch
320f7bc3b9 Client set to 2.0.4 bump version to 2.0.4 2021-08-13 11:03:54 +02:00
Jérémy Munsch
dd59621647 Client set to 2.0.3
add composer respect/validation
2021-08-13 10:27:41 +02:00
Jérémy Munsch
67a0efd133 bump version to 2.0.2 2021-08-12 14:53:36 +02:00
Jérémy Munsch
787ee5a4c5 - tag 2.0.1
- Add Questions segementation
- Fix Customer delete Tests
2021-08-11 17:37:59 +02:00
Jérémy Munsch
6ce462f4fa phpcs unused imports 2021-08-10 12:08:34 +02:00
Jérémy Munsch
1566b704a7 API V1 Test ok + All test OK 2021-08-10 10:20:52 +02:00
Jérémy Munsch
ef2b81b500 bump composer deps 2021-08-06 15:56:42 +02:00
Jérémy Munsch
31484df055 fix typo in composer.json 2021-08-06 09:45:30 +02:00
Jérémy Munsch
6131b1a171 - working testing env
- use php artisan serve to run test + autokill
- autodebug if envirronement is testing
2021-08-05 15:00:28 +02:00
Jérémy Munsch
a30db50f38 Complete composer.json info 2021-08-04 13:13:19 +02:00
Jérémy Munsch
3619593485 Mise à plat CRM v2
- ajout une colonne new country pour enum
- fix des test v2
- fix du handler
- fix des middleware
- fix du timestamp checker
- fix des stats fix du api handler
- ajout du middleware json only
- remove crm-id du client en faveur du hashcode seulement
- fix du route service provider
- déplacement de la route arcradia en dehors du customer
2021-08-04 13:01:33 +02:00
Jérémy Munsch
6324606e44 Merge branch 'develop' into v2 2021-07-22 14:44:54 +02:00
Jérémy Munsch
e7e1a98695 CRM Migrate from old CRM (Le Gaulois) 2021-04-19 10:51:27 +02:00
Jérémy Munsch
6987501a98 CRM API V2 2021-03-27 08:29:31 +01:00