Commit Graph

217 Commits

Author SHA1 Message Date
Jonas Linter
325f64fbc3 Awarness guest now for real 2025-12-03 17:44:05 +01:00
Jonas Linter
ea1d207438 Added awarnesss flag for conversion_guests 2025-12-03 17:43:51 +01:00
Jonas Linter
24d64bf28f Seems to mostly work now. Regular matching is still wrong 2025-12-03 17:05:58 +01:00
Jonas Linter
c4ecf3802f Fine this needs more work 2025-12-03 16:12:07 +01:00
Jonas Linter
e1bbefb9a3 Significant matching fix. 2025-12-03 15:23:10 +01:00
Jonas Linter
50ce0ec486 Finally fixed greenlet_spawn sqllchemy error. The horror 2025-12-03 14:13:20 +01:00
Jonas Linter
bf7b8ac427 Readded fk constraint for conversion_guests 2025-12-03 12:27:17 +01:00
Jonas Linter
8c09094535 Fixed removing hashed_customer 2025-12-03 12:12:37 +01:00
Jonas Linter
ca1f4a010b Not quite done but mostly starting to remove hashed_customer references 2025-12-03 12:00:02 +01:00
Jonas Linter
78f81d6b97 Fixed greenlet error on rollback 2025-12-03 11:32:24 +01:00
Jonas Linter
df7d3c6543 HashedCustomer is now no longer necessary 2025-12-03 11:10:27 +01:00
Jonas Linter
34cb2131c4 Migration to single customer table works but conversion_service still needs updating 2025-12-03 10:51:18 +01:00
Jonas Linter
08f85d1b26 Holy db migrations batman 2025-12-03 10:41:34 +01:00
Jonas Linter
2c3d779ab2 Reduced logging impact 2025-12-02 16:01:45 +01:00
Jonas Linter
163b4be9cc Fixed small issue in webhook-processor not saving the results to the webhook_request table 2025-12-02 16:00:43 +01:00
Jonas Linter
2c1bdf6840 Lots of refactoring and simplification in conversions_service 2025-12-02 15:45:40 +01:00
Jonas Linter
d458f4f2c0 Removed some unused fields 2025-12-02 15:38:39 +01:00
Jonas Linter
473becfe5b Fixed up the damm tests 2025-12-02 15:24:30 +01:00
Jonas Linter
0f3805bed4 New pydantic model for ConversionGuest 2025-12-02 13:18:43 +01:00
Jonas Linter
b1c867ca93 Migration successfull. Does not cause any problems and new foreign keys work 2025-12-02 11:27:07 +01:00
0f00b4508e Small db improvements. Still needs migration for alembic 2025-12-02 09:45:27 +00:00
Jonas Linter
03e6c1c4af Disabled free rooms action for now 2025-12-01 11:14:31 +01:00
Jonas Linter
593fd0fc28 Fixed room upsert logic 2025-12-01 11:12:22 +01:00
Jonas Linter
e05b700ed0 Fixed some tests and added schemas 2025-12-01 10:14:14 +01:00
Jonas Linter
9cb4f9b1b9 Small typing addition 2025-12-01 09:21:25 +01:00
Jonas Linter
3aa2f0b7f4 Offers get extracted from generic webhooks and added to reservations 2025-11-27 19:59:38 +01:00
Jonas Linter
c402b28b72 Duplicate detection improved but refactoring necessary to make the whole thing more managable 2025-11-27 19:35:30 +01:00
Jonas Linter
a07edfe3ec Free rooms first implementation 2025-11-27 18:57:45 +01:00
9830ca7cf9 Webhook_processors accept event_dispatchers now so that push notifs are possible in the future 2025-11-27 14:58:36 +00:00
Jonas Linter
e2d0ef8e53 Some more refactoring. Push_events don't work at the moment 2025-11-27 15:33:15 +01:00
Jonas Linter
f89236228d Catch integrity errors gracefully instead of dumping a giant stacktrace 2025-11-27 14:47:05 +01:00
Jonas Linter
aec8a99b71 Handling legacy endpoints directly in unified endpoints 2025-11-25 20:40:51 +01:00
Jonas Linter
4ab0888508 Moved some stuff around and fixed circular import 2025-11-25 20:30:07 +01:00
Jonas Linter
2941519899 Added an enum for Webhook Status 2025-11-25 20:20:51 +01:00
Jonas Linter
97994c5a38 Better typing + moved some code to webhook_processor 2025-11-25 20:20:40 +01:00
Jonas Linter
556eef529a Removed redundant size_field in webhook_requests 2025-11-25 20:20:06 +01:00
Jonas Linter
7b010ce65e Moved existing processing functions to webhook_processor 2025-11-25 20:19:48 +01:00
Jonas Linter
b77a0be80f feat: Add hotel and webhook endpoint management
- Introduced Hotel and WebhookEndpoint models to manage hotel configurations and webhook settings.
- Implemented sync_config_to_database function to synchronize hotel data from configuration to the database.
- Added HotelService for accessing hotel configurations and managing customer data.
- Created WebhookProcessor interface and specific processors for handling different webhook types (Wix form and generic).
- Enhanced webhook processing logic to handle incoming requests and create/update reservations and customers.
- Added logging for better traceability of operations related to hotels and webhooks.
2025-11-25 12:05:48 +01:00
Jonas Linter
1fb698de66 Extract offer from generic_webhook if set 2025-11-20 23:01:04 +01:00
Jonas Linter
8308be3e49 Increased timeout limit 2025-11-19 20:53:27 +01:00
Jonas Linter
d49f6915c9 Idempotent matching. Hopefully 2025-11-19 20:34:08 +01:00
Jonas Linter
3377a82919 More cleanup 2025-11-19 19:35:54 +01:00
Jonas Linter
ead698dafc Cleanup 2025-11-19 19:35:36 +01:00
Jonas Linter
35c29d80bb Lets see if the matching is finally sensible 2025-11-19 19:35:06 +01:00
Jonas Linter
e5f0aea870 Just some adjustments to conversion service so that the tests work again 2025-11-19 18:58:44 +01:00
Jonas Linter
2b98973d1c On we go. Maybe soon this will be done 2025-11-19 18:40:44 +01:00
Jonas Linter
42b353d241 Finally it works 2025-11-19 17:27:47 +01:00
Jonas Linter
d81ba79256 More refactoring 2025-11-19 16:25:18 +01:00
Jonas Linter
1396135208 Seems to work now 2025-11-19 15:39:33 +01:00
Jonas Linter
82d486645b Complete seperation 2025-11-19 15:10:38 +01:00