Skip to content

feat: endpoint for all opportunities#3277

Merged
rebelchris merged 9 commits intomainfrom
feat-fetch-all-opportunities
Nov 12, 2025
Merged

feat: endpoint for all opportunities#3277
rebelchris merged 9 commits intomainfrom
feat-fetch-all-opportunities

Conversation

@rebelchris
Copy link
Copy Markdown
Contributor

New endpoint for fetch:

  • Team members: all opportunities
  • Recruiter: all LIVE opportunities for them
  • Option to switch type (potential future thing)

@pulumi
Copy link
Copy Markdown

pulumi Bot commented Nov 12, 2025

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

Resource Changes

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

Comment thread src/schema/opportunity.ts Outdated
Comment thread src/schema/opportunity.ts Outdated
@rebelchris rebelchris requested a review from idoshamun November 12, 2025 08:03
Comment thread src/schema/opportunity.ts Outdated
@rebelchris rebelchris merged commit b5ea6fb into main Nov 12, 2025
9 checks passed
@rebelchris rebelchris deleted the feat-fetch-all-opportunities branch November 12, 2025 11:30
Comment thread src/schema/opportunity.ts
Comment thread src/schema/opportunity.ts
user: User!
candidatePreferences: UserCandidatePreference
screening: [ScreeningAnswer!]!
feedback: [ScreeningAnswer!]!
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this the right type?

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.

For now it is, they are basically the same type on graphQL 😅 (same table etc)

Comment thread src/schema/opportunity.ts
Comment thread src/schema/opportunity.ts
Comment thread src/schema/opportunity.ts
Comment on lines +428 to +439
recruiterAcceptOpportunityMatch(
"""
Id of the Opportunity
"""
opportunityId: ID!
"""
Id of the candidate user to accept
"""
candidateUserId: ID!
): EmptyResponse @auth

recruiterRejectOpportunityMatch(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't we do one mutation that accepts a parameter?

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.

I thought about it, but followed what we had for other mutations we seem to do duplication incase something needs to have exceptions. (under the hood they share the same internal function)

Comment thread src/schema/opportunity.ts
Comment thread src/schema/opportunity.ts
Comment thread src/schema/opportunity.ts
Comment thread src/schema/opportunity.ts
Comment thread src/schema/opportunity.ts
Comment thread src/schema/opportunity.ts
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.

2 participants