Commit Graph

122 Commits

Author SHA1 Message Date
Tour
35851c124c all 2025-12-08 08:14:42 +01:00
Tour
3cc0d40fa3 fix-tests-cleanup 2025-12-08 07:52:54 +01:00
Tour
be65f4a5e6 fix-tests-cleanup 2025-12-08 07:19:50 +01:00
Tour
3358a2693c fix-tests-cleanup 2025-12-08 05:37:35 +01:00
Tour
62cda5c0cb fix-tests-cleanup 2025-12-08 05:37:29 +01:00
Tour
7600cebcbb slash 2025-12-07 18:06:17 +01:00
Tour
394469923b Features 2025-12-07 16:25:29 +01:00
Tour
2da6049206 test 2025-12-07 15:51:11 +01:00
Tour
3cf2d2ef7a redeploy 2025-12-07 15:27:29 +01:00
Tour
afd7b311a9 Enrich ALL lots on startup in background thread 2025-12-07 14:48:36 +01:00
Tour
7ab21ae840 Add startup enrichment trigger for lot intelligence data
- Added StartupEvent observer to QuarkusWorkflowScheduler
- Triggers enrichment of lots closing within 24 hours on startup
- Ensures bid intelligence data is populated immediately after deployment
- Fixes issue where server showed 0 lots with bids

This ensures the GraphQL enrichment service runs at startup to populate
bid_count, starting_bid, followers_count and other intelligence fields.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-07 14:43:10 +01:00
Tour
12c3a732e4 Fix database schema: Change auction_id and lot_id from BIGINT to TEXT
The scraper uses TEXT IDs like "A7-40063-2" but DatabaseService was creating
BIGINT columns, causing PRIMARY KEY constraint failures on the server.

Changes:
- auction_id: BIGINT -> TEXT PRIMARY KEY
- lot_id: BIGINT -> TEXT PRIMARY KEY
- sale_id: BIGINT -> TEXT
- Added UNIQUE constraints on URLs
- Added migration script (fix-schema.sql)

This fixes the "UNIQUE constraint failed: auctions.auction_id" errors
and allows bid data to populate correctly on the server.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-07 13:59:26 +01:00
Tour
4d7da94315 Fix GraphQL enrichment to use displayId instead of numeric lotId
- Added displayId (String) field to Lot record for full lot ID (e.g., "A1-34732-49")
- Updated ScraperDataAdapter to extract both numeric ID and displayId from database
- Fixed TroostwijkGraphQLClient to query by displayId using lotDetails() instead of lot()
- Matched Python scraper's query structure with LOT_BIDDING_QUERY pattern
- Updated GraphQL response parsing to handle lotDetails.location and biddingStatistics
- Added upsertLotWithIntelligence() method to DatabaseService for full intelligence updates
- Updated LotEnrichmentService to pass displayId to GraphQL client

This fixes the "No intelligence data returned" error on production server.
GraphQL API requires string displayId parameter, not numeric lot ID.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-07 13:31:40 +01:00
Tour
80b9841aee Fix PRIMARY KEY constraint handling in auction import
- Handle both auction_id and URL constraint failures
- Add fallback UPDATE by URL when INSERT fails
- Properly catch and log constraint violations without propagating
- Fixes import errors on server with duplicate auctions
2025-12-07 13:10:39 +01:00
Tour
00eb3f7aca goog 2025-12-07 12:59:22 +01:00
Tour
825058f790 goog 2025-12-07 12:56:53 +01:00
Tour
d5d245cfc1 goog 2025-12-07 12:47:36 +01:00
Tour
ca19649b6a Features 2025-12-07 11:41:22 +01:00
Tour
65bb5cd80a Features 2025-12-07 11:31:55 +01:00
Tour
43b5fc03fd Fix mock tests 2025-12-07 11:08:59 +01:00
Tour
11a76e0292 Fix mock tests 2025-12-07 09:59:08 +01:00
Tour
a649b629e4 Fix mock tests 2025-12-07 06:51:18 +01:00
Tour
3efa83bc44 Fix mock tests 2025-12-07 06:32:03 +01:00
Tour
ef804b3896 Fix mock tests 2025-12-07 06:28:37 +01:00
Tour
f561a73b01 Fix mock tests 2025-12-07 02:36:00 +01:00
Tour
432fcbc503 Fix mock tests 2025-12-06 21:37:08 +01:00
Tour
b4e0f8c13b Fix mock tests 2025-12-06 21:36:55 +01:00
Tour
e216a763ac Fix build: Update tests for image download refactor
- Remove RateLimitedHttpClient from ImageProcessingService constructor
- Rewrite ImageProcessingServiceTest to test new object detection workflow
- Fix IntegrationTest constructor call
- Add insertImage() back to DatabaseService for test compatibility
- Tests now focus on object detection rather than image downloading
2025-12-06 21:34:29 +01:00
Tour
6091b7180f go 2025-12-06 21:27:19 +01:00
Tour
288ee6a2a6 test 2025-12-06 07:08:07 +01:00
Tour
a25c0bdf5d %* 2025-12-06 07:04:53 +01:00
Tour
4ecb6625c8 all 2025-12-06 06:23:34 +01:00
Tour
174d0b136e all 2025-12-06 06:19:23 +01:00
Tour
d8f7464944 front-end-fix 2025-12-06 06:14:26 +01:00
Tour
9f5003ecc5 front-end-fix 2025-12-06 06:03:43 +01:00
Tour
cda9b648ad front-end-fix 2025-12-06 05:59:22 +01:00
Tour
1af565ae1b front-end-fix 2025-12-06 05:51:55 +01:00
Tour
36b03dea7b Fix mock tests 2025-12-06 05:41:14 +01:00
Tour
528a217708 front-end-fix 2025-12-06 05:39:59 +01:00
Tour
d1a149e40d front-end-fix 2025-12-06 05:29:41 +01:00
Tour
758e60ecb3 Fix mock tests 2025-12-05 21:10:17 +01:00
Tour
e06f5747ec done 2025-12-05 20:58:32 +01:00
Tour
0b1be38681 done 2025-12-05 20:54:23 +01:00
Tour
e9b4298f58 init 2025-12-05 09:42:48 +01:00
Tour
887295260f dns 2025-12-05 09:35:17 +01:00
Tour
a06434642c dns 2025-12-05 08:59:23 +01:00
Tour
36a1edfecf dns 2025-12-05 08:57:29 +01:00
Tour
243573d4b2 all 2025-12-05 08:49:59 +01:00
Tour
41de6c1e8a all 2025-12-05 08:35:19 +01:00
Tour
0ab9430f35 all 2025-12-05 08:27:43 +01:00