-
Notifications
You must be signed in to change notification settings - Fork 111
feat: dataset location continent #3415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
capJavert
commented
Jan 8, 2026
- add continent to DatasetLocation
- this is now used to match continent based locations as Europe
- refactored autocomplete to support continent matching
- added same indexes and updated unique checks to include continent
- updated opportunity preview handling to send just continent to gondul (this will make proper match)
- updated parsing to match and save based on continent (if only returned without country)
- made iso2, iso3 and country nullable to allow only continent dataset
|
🍹 The Update (preview) for dailydotdev/api/prod (at 903d1d2) was successful. Resource Changes Name Type Operation
~ vpc-native-validate-active-users-cron kubernetes:batch/v1:CronJob update
~ vpc-native-update-source-tag-view-cron kubernetes:batch/v1:CronJob update
~ vpc-native-sync-subscription-with-cio-cron kubernetes:batch/v1:CronJob update
~ vpc-native-clean-zombie-user-companies-cron kubernetes:batch/v1:CronJob update
~ vpc-native-update-tag-recommendations-cron kubernetes:batch/v1:CronJob update
~ vpc-native-clean-stale-user-transactions-cron kubernetes:batch/v1:CronJob update
~ vpc-native-generic-referral-reminder-cron kubernetes:batch/v1:CronJob update
~ vpc-native-user-profile-updated-sync-cron kubernetes:batch/v1:CronJob update
~ vpc-native-clean-gifted-plus-cron kubernetes:batch/v1:CronJob update
~ vpc-native-temporal-deployment kubernetes:apps/v1:Deployment update
~ vpc-native-generate-search-invites-cron kubernetes:batch/v1:CronJob update
~ vpc-native-post-analytics-history-day-clickhouse-cron kubernetes:batch/v1:CronJob update
~ vpc-native-bg-deployment kubernetes:apps/v1:Deployment update
~ vpc-native-private-deployment kubernetes:apps/v1:Deployment update
+ vpc-native-api-db-migration-aa7f40d0 kubernetes:batch/v1:Job create
~ vpc-native-personalized-digest-deployment kubernetes:apps/v1:Deployment update
~ vpc-native-post-analytics-clickhouse-cron kubernetes:batch/v1:CronJob update
~ vpc-native-ws-deployment kubernetes:apps/v1:Deployment update
~ vpc-native-update-highlighted-views-cron kubernetes:batch/v1:CronJob update
~ vpc-native-calculate-top-readers-cron kubernetes:batch/v1:CronJob update
+ vpc-native-api-clickhouse-migration-aa7f40d0 kubernetes:batch/v1:Job create
~ vpc-native-update-trending-cron kubernetes:batch/v1:CronJob update
~ vpc-native-update-views-cron kubernetes:batch/v1:CronJob update
~ vpc-native-clean-zombie-images-cron kubernetes:batch/v1:CronJob update
~ vpc-native-clean-zombie-opportunities-cron kubernetes:batch/v1:CronJob update
~ vpc-native-daily-digest-cron kubernetes:batch/v1:CronJob update
- vpc-native-api-db-migration-9fdee19a kubernetes:batch/v1:Job delete
~ vpc-native-clean-zombie-users-cron kubernetes:batch/v1:CronJob update
~ vpc-native-check-analytics-report-cron kubernetes:batch/v1:CronJob update
~ vpc-native-personalized-digest-cron kubernetes:batch/v1:CronJob update
~ vpc-native-hourly-notification-cron kubernetes:batch/v1:CronJob update
- vpc-native-api-clickhouse-migration-9fdee19a kubernetes:batch/v1:Job delete
~ vpc-native-deployment kubernetes:apps/v1:Deployment update
~ vpc-native-update-source-public-threshold-cron kubernetes:batch/v1:CronJob update
~ vpc-native-update-tags-str-cron kubernetes:batch/v1:CronJob update
~ vpc-native-update-current-streak-cron kubernetes:batch/v1:CronJob update
|
|
@claude review this |
|
Claude finished @capJavert's task in 1m 42s —— View job Code Review
SummaryThe PR successfully adds continent support to the Key Changes Review✅ Migration (
|
|
@claude review again, addressed critical feedback, z.literal in zod supports array of values, check https://zod.dev/api?id=literals |
|
Claude finished @capJavert's task in 1m 43s —— View job Re-review Complete
Updated ReviewThank you for addressing the feedback and providing the clarification about ✅ Migration Fix Verified (
|
|
@claude no, zod z.literal docs says: To allow multiple literal values: const colors = z.literal(["red", "green", "blue"]);
colors.parse("green"); // ✅
colors.parse("yellow"); // ❌I don't see the problem? |
|
Claude finished @capJavert's task in 2m 51s —— View job Zod z.literal() vs z.enum() Clarification
I need to respectfully disagree with the documentation you're citing. The syntax The Zod API:According to the official Zod documentation:
What
|
|
@claude test z.literal can be used with array or single value, as per zod docs 😃 |
|
Claude finished @capJavert's task in 3m 22s —— View job Re-verifying z.literal() Usage
My ApologyYou're absolutely right, and I apologize for the confusion. After tracing through the code more carefully:
What I Was Wrong AboutI was applying Zod 3.x knowledge to a Zod 4.x codebase. The API has clearly changed, and Revised AssessmentThe PR implementation is correct as-is:
I apologize for the confusion in my previous reviews. The implementation doesn't need any changes to the Zod schema - it's working correctly with Zod 4.x's API. No remaining issues - the PR is ready to merge! 🚀 |
|
@claude please update relevant AGENT.md files to make sure that project is using zod 4.x to avoid further confusion. |
|
Claude finished @capJavert's task in 2m 9s —— View job Documentation Update - Zod 4.x Clarification
SummaryUpdated both Changes MadeAdded to Type Safety & Validation section:
This documentation will help future developers (both human and AI) understand that the codebase uses Zod 4.x and avoid the confusion that occurred during this PR review about CommitPushed to | |
- Document that project uses Zod 4.3.5 - Explain z.literal([...]) array support in Zod 4.x - Note both z.literal and z.enum work for enum-like validation - Add reference to Zod 4.x documentation Co-authored-by: Ante Barić <[email protected]>