Commit graph

155 commits

Author SHA1 Message Date
Jérémy Munsch
608e24f2f2
Fix Job delete unconfirmed users 2022-08-29 10:55:54 +02:00
Jérémy Munsch
9fe08103f4
Fix ArcadiaMail Requests on api Allow phone to be empty string 2022-08-24 15:12:09 +02:00
Jérémy Munsch
a312773099
Http/Kernel.php: Move ConvertEmptyStringsToNull from global middleware to web middleware 2022-08-24 14:46:06 +02:00
Jérémy Munsch
e9b077e9ea
Merge remote-tracking branch 'origin/ticket918' into develop 2022-08-24 11:27:21 +02:00
Jérémy Munsch
6ceee32368
SendArchadiaGameMailRequest: Limit code on pack to 50 chars 2022-06-17 14:08:08 +02:00
Jérémy Munsch
f2371d97ea
Fixed #905
- handled Country and Phone on customer store and update
- refactorize Country and Phone
2022-06-09 11:09:11 +02:00
Jérémy Munsch
84018f9d5b
Ticket 738 : Rewrite DeleteUnconfirmedCustomers 2022-03-29 18:09:29 +02:00
Jérémy Munsch
f4c60bf6f7
Ticket 698 :
- Npm audit Fix + update
- Fix filter search and reset on customers.index
2022-03-28 16:22:33 +02:00
Vincent BRIDIER
f106ec7a4d
ticket 584 : Fix answer save 2022-03-22 11:47:58 +01:00
Vincent BRIDIER
708baaa59d
Merge branch 'fixSymphonyRequestEmptyStrings' into develop 2022-03-22 11:29:13 +01:00
Vincent BRIDIER
e08123212b
Fix Arcadia phone length field (RemoveSpaces) 2022-03-22 11:26:11 +01:00
Jérémy Munsch
3f88a572e7
Fix Laravel Framework issue with empty inputs string casted to null (Hashmac signature calculation) 2022-03-17 15:21:30 +01:00
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
Jérémy Munsch
28b04252ea
add LdcWebStatusChecker 2021-12-03 14:36:12 +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
afa3e06699
Arcadia xml add hint for xml failed 2021-11-10 09:13:45 +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
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
69ac3abf5e
Stat Api phase 1 CRM side + test 2021-11-05 14:46:53 +01:00
Jérémy Munsch
d14f23a321
Stats exportCSV for both 2021-11-03 16:45:04 +01:00
Jérémy Munsch
7b4faee998
Stats par questions 2021-11-03 15:11:41 +01:00
Jérémy Munsch
9f6ae7bd09
Stats graphs 2021-11-03 11:18:19 +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
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
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
2636e6b29d
Remove report method from handler and add RedirectTo::class to $dontReport exception 2021-10-26 09:17:02 +02:00
Jérémy Munsch
97ccbf0b1e
Fix for country save on Customer info not handling BaseEnom correct exception 2021-10-25 17:57:46 +02:00
Jérémy Munsch
f41b6ae644
Add more data sanitize on base request for user info 2021-10-25 17:48:43 +02:00
Jérémy Munsch
ffaaef4356
Ticket 391 : fix ApiV1 email strtolower 2021-10-25 17:42:10 +02:00
Jérémy Munsch
44ca6f86d6
Ticket 375 : Fix duplicate Export CRM for newsletter 2021-10-25 17:37:31 +02:00
Jérémy Munsch
2742a3af3f
Fix authenticate method, remove exists validate on request 2021-10-21 14:23:33 +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
2ae1d09afc
Correct arcadia Api V2 methods + unit tests 2021-10-19 17:15:34 +02:00
Jérémy Munsch
3f5c0d30e8
ApiController : Fix Wrong api error exception throwed 2021-10-19 17:08:51 +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
c70d8bd376
Try to prevent overlaping on job setServiceStat 2021-10-15 18:36:02 +02:00
Jérémy Munsch
6edb0e34db
Fix Auth service provider to return apiAuthFailed exception on api auth fail 2021-09-21 12:08:28 +02:00
Jérémy Munsch
a3b919b1c5 fix service create 2021-09-15 12:04:46 +02:00
Jérémy Munsch
a135d8cae1 update AppService provider 2021-09-15 10:13:51 +02:00
Jérémy Munsch
91bb88d26d composer require kwaadpepper/exception-handler 2021-09-15 10:10:37 +02:00
Jérémy Munsch
567e678f03 Fix brand and service on CRUD 2021-09-14 13:13:36 +02:00
Jérémy Munsch
9a0a6237e5 add missing policies 2021-09-14 12:12:30 +02:00