Commit Graph

177 Commits

Author SHA1 Message Date
Romain Thouvenin 3be2d73c60 Implement the UpdateAdCommand 2024-05-16 17:16:51 +02:00
Romain Thouvenin 34ad357f47 Refactor AdEntity creation in a factory in the domain layer 2024-05-16 17:16:51 +02:00
Romain Thouvenin 35e8de4cfa Improve the driver search query to make use of the toDate index 2024-05-15 08:23:44 +02:00
Romain Thouvenin e2beba299b Take care of candidate processing peculiarities of having pax and driver depart on different day 2024-05-15 08:23:44 +02:00
Romain Thouvenin 3c65582d8e Improve support for trips that span more than one date
- Remove the where clause on schedule times, as it is not possible to compute a sensible driver date within the SQL query.
- Simplify the date clause comparisons
- Replace the compared date range with one adjusted with the driver duration, to catch ads that depart on a different day
2024-05-15 08:23:44 +02:00
Romain Thouvenin a9f5c36d49 Add integration tests for PassengerOrientedSelector to reproduce Redmine#7812 2024-05-15 08:23:44 +02:00
Romain Thouvenin f6b27978e9 Refactor ad props fixtures of integration tests into a separate re-usable file 2024-05-15 08:23:44 +02:00
Romain Thouvenin 0ef0a1dd39 Refactor testing module for integration tests into re-usable function 2024-05-07 17:03:26 +02:00
Romain Thouvenin d48d01f051 Implement distributed event handler to propagate ad deletion 2024-04-25 16:06:59 +02:00
Romain Thouvenin 1701fbbeb1 Implement a DeleteAdCommand 2024-04-25 16:06:59 +02:00
Romain Thouvenin a7c281d740 fix retrieval of DB records not including schedule or waypoints 2024-04-25 15:14:35 +02:00
Romain Thouvenin 01ebac7e74 DRY the pax/driver schedule adjustment logic 2024-04-12 11:33:17 +02:00
Romain Thouvenin 104559d03d Add a test for punctual search matching a recurrent driver schedule 2024-04-05 11:44:10 +02:00
Romain Thouvenin 173e5ebba5 Rename schedule fixtures for better readability of tests 2024-04-05 11:43:30 +02:00
Romain Thouvenin 0dc01da2b0 Combine journey creation and filtering to avoid missing results 2024-04-04 17:24:23 +02:00
Sylvain Briat 16ebe8d543 handle excluded ad in query and selector 2024-04-03 13:02:31 +02:00
Sylvain Briat 0c29e522ed add excludedAdId to proto and dto 2024-04-03 13:01:12 +02:00
Romain Thouvenin c51c368d83 Remove the controller-level cache from MatchGrpcController 2024-04-03 07:52:37 +00:00
Sylvain Briat 0446d267ef improve creation of schedules 2024-04-02 11:14:05 +00:00
Sylvain Briat 100fb3487d add possibility to have more than one driver target in carpool path item (eg. when a user adds 2 same waypoints with a different target) 2024-04-02 11:14:05 +00:00
Sylvain Briat 71ac97410a return frequency in match response 2024-04-02 10:06:34 +00:00
Romain Thouvenin 4581af5e9f Define an exception filter to log the cause of exceptions 2024-04-02 10:27:53 +02:00
Romain Thouvenin 7f7a51d19b Let Nest exception filter handle unexpected exceptions 2024-04-02 10:27:53 +02:00
Sylvain Briat 739d05b095 improve candidate entity for empty driver or passenger schedule 2024-03-29 15:10:10 +01:00
Sylvain Briat 212b609e26 add array min size check on schedule property 2024-03-29 15:10:10 +01:00
Romain Thouvenin bd6fc1576b Apply 1 suggestion(s) to 1 file(s) 2024-03-29 14:04:57 +00:00
Sylvain Briat 53df6183bd fix driverTime in journey item 2024-03-29 11:56:42 +01:00
Sylvain Briat 3786fcc2c2 improve TODO explanation in journey value object 2024-03-28 17:12:30 +00:00
Sylvain Briat 924547c316 update mtching mapper to handle empty schedules 2024-03-28 17:12:30 +00:00
Sylvain Briat 5f8dd8b4a0 handle empty schedule in candidates 2024-03-28 17:12:30 +00:00
Sylvain Briat 90ae3cf9cb update passenger oriented selector to handle empty schedule; improve punctual where part 2024-03-28 17:12:30 +00:00
Sylvain Briat 6b9bf53b4a set schedule to optional in match query and query handler 2024-03-28 17:12:30 +00:00
Sylvain Briat 4fd2950027 set schedule to optional in match request 2024-03-28 17:12:30 +00:00
Romain Thouvenin 579415c300 Rename GeorouterProvider[Port] to Georouter[Port] 2024-03-19 08:04:28 +01:00
Romain Thouvenin 357746e843 Rename geocoder service to geography 2024-03-14 16:47:54 +01:00
Romain Thouvenin 96c30cb1cc Remove most of the geography module and delegate it to external gRPC microservice 2024-03-14 10:19:15 +01:00
Sylvain Briat 3be95fb58c fix wrong carpool crew for a driver query 2024-02-08 16:18:16 +00:00
Sylvain Briat c42ddef7e4 Removed useless status in matching sql request 2024-02-01 16:55:52 +01:00
Sylvain Briat d1942c954a pretty 2024-01-17 08:58:14 +01:00
Sylvain Briat d47de20588 update packages 2024-01-17 08:54:41 +01:00
Sylvain Briat 3aaccfa48f upgrade graphhopper api params, secure broker 2023-12-18 15:49:44 +01:00
Sylvain Briat ce4107ddd7 fix broker queues and keys 2023-12-07 11:14:01 +01:00
Sylvain Briat 80fac59c43 send messages when matcher ad is created, or when matcher ad creation has failed 2023-12-06 15:16:29 +01:00
Sylvain Briat de239848c3 fix bad validation for distance and duration ratio, and for proportion 2023-11-21 16:32:32 +01:00
Sylvain Briat 970260f0d2 fix crash when no date is available in recurrent for a journey 2023-11-21 16:10:19 +01:00
Sylvain Briat a5bb249193 remove forgotten console log 2023-11-06 17:31:05 +01:00
Sylvain Briat fb3f1cf4df updateProto 2023-11-06 17:27:49 +01:00
Sylvain Briat c09b1b9863 remove useless match id from matching data 2023-11-06 09:54:59 +01:00
Sylvain Briat 4547dcf655 fix bad matchMapper unit test 2023-11-03 11:25:02 +01:00
Sylvain Briat 5ca5200f1a fix journey value object : useless driver neutral target for passenger start 2023-11-02 17:13:16 +01:00