Commit graph

244 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
c94827127b
fix arcadia testValidateGeneratedXmlGame 2021-12-05 19:29:10 +01:00
d748758676
update readme tests 2021-12-05 19:28:53 +01:00
e1b2d86315
cleanup git module flaw 2021-12-05 18:28:53 +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
28b04252ea
add LdcWebStatusChecker 2021-12-03 14:36:12 +01:00
Jérémy Munsch
c22068b8ea
update client 2021-12-03 14:32:04 +01:00
Jérémy Munsch
f0a771031c
Arcadia push order id in name 2021-11-15 11:34:57 +01:00
Jérémy Munsch
4c5f51bf97
fix customer show missing crud var 2021-11-12 17:03:20 +01:00
Jérémy Munsch
8a289f98ed
remove double paginator set in appservice provider 2021-11-12 17:03:01 +01:00
Jérémy Munsch
d6b0c5a039
add laravel-mix-clean 2021-11-10 16:57:03 +01:00
Jérémy Munsch
afa3e06699
Arcadia xml add hint for xml failed 2021-11-10 09:13:45 +01:00
Jérémy Munsch
f7edb2ff5e
force bump all kwaadpeppers dependencies 2021-11-08 16:45:30 +01:00
Jérémy Munsch
12eaeed020
export fix get where opt_in true 2021-11-08 16:01:45 +01:00
Jérémy Munsch
d38d8c861d
remove setServiceStat high retry 2021-11-08 15:02:15 +01:00
Jérémy Munsch
22d3cf0082
Fix repair_stats_jobs migration not deleting jobs 2021-11-05 16:23:01 +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
9b5bbd9691
Merge branch 'stats' into develop 2021-11-05 15:12:05 +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
69ac3abf5e
Stat Api phase 1 CRM side + test 2021-11-05 14:46:53 +01:00
Jérémy Munsch
55878c3228
print Stats to JS 2021-11-03 17:02:59 +01:00
Jérémy Munsch
d14f23a321
Stats exportCSV for both 2021-11-03 16:45:04 +01:00
Jérémy Munsch
675d06e701
Fix brand stat seeder 2021-11-03 16:27:00 +01:00
Jérémy Munsch
1e1ff0dfc8
composer bump league/csv 2021-11-03 16:01:34 +01:00
Jérémy Munsch
7b4faee998
Stats par questions 2021-11-03 15:11:41 +01:00
Jérémy Munsch
e678d22483
Fix stats generator and display scale 2021-11-03 11:36:38 +01:00
Jérémy Munsch
9f6ae7bd09
Stats graphs 2021-11-03 11:18:19 +01:00
Jérémy Munsch
27fe3bcb34
fix app layout 2021-11-03 08:29:22 +01:00
Jérémy Munsch
eb7936b1b4
remove unused dashboard blade 2021-11-02 15:29:35 +01:00
Jérémy Munsch
2cf420a6f9
remove unused local flashmessage 2021-11-02 15:11:06 +01:00
Jérémy Munsch
8a4aa7ddb5
Move export to top menu and toggle menu responsive fix 2021-11-02 14:57:23 +01:00
Jérémy Munsch
5ea4c1791e
Move logout on top menu bar 2021-11-02 14:10:04 +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
41943a6db8
Repair stats jobs migration 2021-10-29 17:31:27 +02:00
Jérémy Munsch
c97b61cc65
Service::incrementStat disaptch after response and on queue stats 2021-10-29 13:55:18 +02:00
Jérémy Munsch
6bd00e78d6
Brand stats part 1 Create and schedule brand stats 2021-10-29 12:53:46 +02:00
Jérémy Munsch
8938dc4201
Add Trust proxies for HA proxy funcking fix 2021-10-26 16:56:45 +02:00
Jérémy Munsch
468a984d37
Customers index fix reset sort columns 2021-10-26 16:23:18 +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
68f86a927f
Fix customer status show and optin 2021-10-26 15:52:14 +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
4ad98dc015
Fix data change for customer test on firstname 2021-10-26 12:37:21 +02:00
Jérémy Munsch
b8b6ae7239
Customer Resources return empty string for address2 when null 2021-10-26 12:36:52 +02:00
Jérémy Munsch
7c26772d69
Customer set bool cast for opt_in 2021-10-26 12:08:37 +02:00
Jérémy Munsch
c4de30ae7e
Full type hint for CustomerResource vars 2021-10-26 12:02:10 +02:00
Jérémy Munsch
fd80875410
Change customer status to boolean 2021-10-26 12:01:40 +02:00
Jérémy Munsch
7223ebfd85
Fix wrong assertion in unit test 2021-10-26 10:02:44 +02:00
Jérémy Munsch
6a0a94b633
bump client dep 2021-10-26 10:00:36 +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
eba24439a8
Fix customer test after client firstname and last name ucfirst force on crm 2021-10-26 09:59:15 +02:00