Jonas Linter
ea3d886b87
Activated free rooms
2025-12-04 15:32:29 +01:00
Jonas Linter
f728ce369a
Merge branch 'db_fixes_plus_free_rooms' of https://gitea.99tales.net/jonas/alpinebits_python into db_fixes_plus_free_rooms
2025-12-03 22:37:08 +01:00
Jonas Linter
6cee77c232
Bit hamfisted but updates old records
2025-12-03 19:15:21 +01:00
Jonas Linter
6ea510174e
Updated classification scheme
2025-12-03 19:02:34 +01:00
Jonas Linter
67c20bc18a
Another logging message to see how the classification is doing
2025-12-03 18:52:53 +01:00
Jonas Linter
ff338ecb15
Added a logging statement to better see where the child dies
2025-12-03 18:44:32 +01:00
Jonas Linter
d61897b929
Added is_regular and awarness detection
2025-12-03 17:59:30 +01:00
Jonas Linter
95da5dcee9
And fixed typo
2025-12-03 17:47:30 +01:00
Jonas Linter
89f5b81983
Awarness guest now for real
2025-12-03 17:44:05 +01:00
Jonas Linter
8e5f045181
Added awarnesss flag for conversion_guests
2025-12-03 17:43:51 +01:00
Jonas Linter
f033abf76e
Seems to mostly work now. Regular matching is still wrong
2025-12-03 17:05:58 +01:00
Jonas Linter
d03669873e
Fine this needs more work
2025-12-03 16:12:07 +01:00
Jonas Linter
a6e4bcbe1b
Significant matching fix.
2025-12-03 15:23:10 +01:00
Jonas Linter
12350578cc
Finally fixed greenlet_spawn sqllchemy error. The horror
2025-12-03 14:13:20 +01:00
Jonas Linter
d2ed77e008
Readded fk constraint for conversion_guests
2025-12-03 12:27:17 +01:00
Jonas Linter
f2c40e1a23
Fixed removing hashed_customer
2025-12-03 12:12:37 +01:00
Jonas Linter
ad29a0a2f6
Not quite done but mostly starting to remove hashed_customer references
2025-12-03 12:00:02 +01:00
Jonas Linter
3175342cb2
Fixed greenlet error on rollback
2025-12-03 11:32:24 +01:00
Jonas Linter
1bdef3ee11
HashedCustomer is now no longer necessary
2025-12-03 11:10:27 +01:00
Jonas Linter
3193ceac63
Migration to single customer table works but conversion_service still needs updating
2025-12-03 10:51:18 +01:00
Jonas Linter
b572f660a7
Holy db migrations batman
2025-12-03 10:41:34 +01:00
Jonas Linter
e0c3b6e8af
Reduced logging for conversion service
2025-12-02 17:03:07 +01:00
Jonas Linter
03aac27233
Replaced config auth with db auth
2025-12-02 16:43:56 +01:00
Jonas Linter
7ff3c44747
Reduced logging impact
2025-12-02 16:01:45 +01:00
Jonas Linter
87522711d4
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
f35f3f3dc9
Lots of refactoring and simplification in conversions_service
2025-12-02 15:45:40 +01:00
Jonas Linter
1f13991bfe
Removed some unused fields
2025-12-02 15:38:39 +01:00
Jonas Linter
c0e601e308
Fixed up the damm tests
2025-12-02 15:24:30 +01:00
Jonas Linter
56d67984cf
New pydantic model for ConversionGuest
2025-12-02 13:18:43 +01:00
Jonas Linter
ee80c57bcb
Migration successfull. Does not cause any problems and new foreign keys work
2025-12-02 11:27:07 +01:00
e24866d8a0
Small db improvements. Still needs migration for alembic
2025-12-02 09:45:27 +00:00
Jonas Linter
d04218988d
Disabled free rooms action for now
2025-12-01 11:14:31 +01:00
Jonas Linter
877b2909f2
Fixed room upsert logic
2025-12-01 11:12:22 +01:00
Jonas Linter
2be10ff899
Fixed some tests and added schemas
2025-12-01 10:14:14 +01:00
Jonas Linter
3e577a499f
Small typing addition
2025-12-01 09:21:25 +01:00
Jonas Linter
a1d9ef5fea
Offers get extracted from generic webhooks and added to reservations
2025-11-27 19:59:38 +01:00
Jonas Linter
7624b70fd0
Duplicate detection improved but refactoring necessary to make the whole thing more managable
2025-11-27 19:35:30 +01:00
Jonas Linter
f7158e7373
Free rooms first implementation
2025-11-27 18:57:45 +01:00
f0e98bc8f7
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
2b1215a43a
Some more refactoring. Push_events don't work at the moment
2025-11-27 15:33:15 +01:00
Jonas Linter
011b68758a
Catch integrity errors gracefully instead of dumping a giant stacktrace
2025-11-27 14:47:05 +01:00
Jonas Linter
a445de0f2f
Handling legacy endpoints directly in unified endpoints
2025-11-25 20:40:51 +01:00
Jonas Linter
8805c87e05
Moved some stuff around and fixed circular import
2025-11-25 20:30:07 +01:00
Jonas Linter
bdd7522f47
Added an enum for Webhook Status
2025-11-25 20:20:51 +01:00
Jonas Linter
3ba857a0f8
Better typing + moved some code to webhook_processor
2025-11-25 20:20:40 +01:00
Jonas Linter
9522091efc
Removed redundant size_field in webhook_requests
2025-11-25 20:20:06 +01:00
Jonas Linter
95953fa639
Moved existing processing functions to webhook_processor
2025-11-25 20:19:48 +01:00
Jonas Linter
8d144a761c
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
d4adfa4ab4
Extract offer from generic_webhook if set
2025-11-20 23:01:04 +01:00
Jonas Linter
d83f4c2f38
Increased timeout limit
2025-11-19 20:53:27 +01:00