Skip to content

feat: opportunity preview Gondul#3323

Merged
rebelchris merged 17 commits intomainfrom
feat-opportunity-preview
Dec 8, 2025
Merged

feat: opportunity preview Gondul#3323
rebelchris merged 17 commits intomainfrom
feat-opportunity-preview

Conversation

@rebelchris
Copy link
Copy Markdown
Contributor

@rebelchris rebelchris commented Dec 3, 2025

Preview endpoint (non proto for now)
(and early return for testing purposes)

Output sample:

{
    "data": {
        "opportunityPreview": {
            "edges": [
                {
                    "node": {
                        "id": "testuser1",
                        "anonId": "anon #509",
                        "profileImage": "https://lh3.googleusercontent.com/a/ACg8ocKC0Gt247CSHrl-ndg5h9d87sLqRh6sppbf_a3jX5ciOQ2VSSs=s96-c",
                        "description": null,
                        "openToWork": true,
                        "seniority": "MORE_THAN_4_YEARS",
                        "location": "Annecy, France",
                        "company": {
                            "name": "daily.dev",
                            "favicon": null
                        },
                        "lastActivity": null,
                        "topTags": null,
                        "recentlyRead": [
                            {
                                "keyword": {
                                    "value": "open-source"
                                },
                                "issuedAt": "2024-10-30T20:45:53.189Z"
                            }
                        ],
                        "activeSquads": [
                            "publicsquad"
                        ]
                    },
                    "cursor": "YXJyYXljb25uZWN0aW9uOjE="
                },
                {
                    "node": {
                        "id": "testuser2",
                        "anonId": "anon #508",
                        "profileImage": null,
                        "description": null,
                        "openToWork": false,
                        "seniority": null,
                        "location": null,
                        "company": null,
                        "lastActivity": null,
                        "topTags": null,
                        "recentlyRead": [
                            {
                                "keyword": {
                                    "value": "javascript"
                                },
                                "issuedAt": "2024-10-30T20:45:53.189Z"
                            }
                        ],
                        "activeSquads": [
                            "publicsquad"
                        ]
                    },
                    "cursor": "YXJyYXljb25uZWN0aW9uOjI="
                },
                {
                    "node": {
                        "id": "testuser3",
                        "anonId": "anon #507",
                        "profileImage": "https://cdn.daily.dev/assets/maskable_icon.png",
                        "description": null,
                        "openToWork": false,
                        "seniority": null,
                        "location": null,
                        "company": null,
                        "lastActivity": null,
                        "topTags": null,
                        "recentlyRead": [
                            {
                                "keyword": {
                                    "value": "azure"
                                },
                                "issuedAt": "2024-10-30T20:45:53.189Z"
                            }
                        ],
                        "activeSquads": [
                            "publicsquad"
                        ]
                    },
                    "cursor": "YXJyYXljb25uZWN0aW9uOjM="
                }
            ],
            "pageInfo": {
                "hasNextPage": false,
                "hasPreviousPage": false,
                "startCursor": "YXJyYXljb25uZWN0aW9uOjE=",
                "endCursor": "YXJyYXljb25uZWN0aW9uOjM="
            }
        }
    }
}

Comment thread src/schema/opportunity.ts Outdated
Comment thread src/schema/opportunity.ts Outdated
@pulumi
Copy link
Copy Markdown

pulumi Bot commented Dec 4, 2025

🍹 The Update (preview) for dailydotdev/api/prod (at f753442) was successful.

Resource Changes

    Name                                                   Type                           Operation
~   vpc-native-clean-zombie-images-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-update-views-cron                           kubernetes:batch/v1:CronJob    update
~   vpc-native-calculate-top-readers-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tag-recommendations-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron  kubernetes:batch/v1:CronJob    update
~   vpc-native-temporal-deployment                         kubernetes:apps/v1:Deployment  update
-   vpc-native-api-clickhouse-migration-18b3a9f5           kubernetes:batch/v1:Job        delete
+   vpc-native-api-clickhouse-migration-cdddc836           kubernetes:batch/v1:Job        create
~   vpc-native-generic-referral-reminder-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-tag-view-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-opportunities-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-update-highlighted-views-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-hourly-notification-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-users-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-public-threshold-cron         kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-generate-search-invites-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-private-deployment                          kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-stale-user-transactions-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-updated-sync-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-update-current-streak-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-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-api-db-migration-18b3a9f5                   kubernetes:batch/v1:Job        delete
~   vpc-native-check-analytics-report-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-deployment              kubernetes:apps/v1:Deployment  update
~   vpc-native-bg-deployment                               kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-zombie-user-companies-cron            kubernetes:batch/v1:CronJob    update
~   vpc-native-daily-digest-cron                           kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron             kubernetes:batch/v1:CronJob    update
+   vpc-native-api-db-migration-cdddc836                   kubernetes:batch/v1:Job        create
~   vpc-native-update-tags-str-cron                        kubernetes:batch/v1:CronJob    update

@rebelchris rebelchris requested a review from capJavert December 4, 2025 11:31
Comment thread src/schema/opportunity.ts Outdated
Comment thread src/schema/opportunity.ts Outdated
Comment thread src/schema/opportunity.ts Outdated
Comment thread src/schema/opportunity.ts Outdated
Comment thread src/schema/opportunity.ts Outdated
Comment thread src/graphorm/index.ts
Comment thread src/graphorm/index.ts Outdated
Comment thread src/schema/opportunity.ts Outdated
Copy link
Copy Markdown
Contributor

@capJavert capJavert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Comment thread src/graphorm/index.ts
Comment thread src/graphorm/index.ts
Comment thread src/graphorm/index.ts
FROM source_member sm
INNER JOIN source s ON s.id = sm."sourceId"
WHERE sm."userId" = ${alias}.id
AND s.type = '${SourceType.Squad}'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use qb (3rd argument) to avoid string concat in query and use parameters, not blocking but much more safe

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work due to the singular select I think with ARRAY

Comment thread src/graphorm/index.ts Outdated
Comment thread src/schema/opportunity.ts Outdated
@rebelchris rebelchris merged commit c8f1ee3 into main Dec 8, 2025
9 checks passed
@rebelchris rebelchris deleted the feat-opportunity-preview branch December 8, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants