Skip to content

feat: add feedback option to opportunity#3262

Merged
rebelchris merged 2 commits intomainfrom
feat-opportunity-feedback
Nov 7, 2025
Merged

feat: add feedback option to opportunity#3262
rebelchris merged 2 commits intomainfrom
feat-opportunity-feedback

Conversation

@rebelchris
Copy link
Copy Markdown
Contributor

Adds option to add feedback type questions to opportunity (used in rejection flow)

@pulumi
Copy link
Copy Markdown

pulumi Bot commented Nov 7, 2025

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

Resource Changes

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

Comment thread src/graphorm/index.ts
.orderBy(`${childAlias}."questionOrder"`, 'ASC'),
},
},
feedbackQuestions: {
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.

not sure if these are needed if you just add the where type to the additionalQuery in OpportunityFeedbackQuestion and OpportunityScreeningQuestion

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 also thought that, but those did nothing there and these worked which made the ones there not needed anymore :(

Comment thread src/schema/opportunity.ts
opportunityId: ID!
}

type OpportunityFeedbackQuestion {
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.

Alternatively, OpportunityScreeningQuestion could be made to a generic OpportunityQuestion to reduce duplication, then in graphorm on fields, you add the extra type selector?

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.

Yeah could also be an option, but guess for now this is ok, as they kinda seperate from loading/storing I guess.

@rebelchris rebelchris merged commit ed78b7e into main Nov 7, 2025
18 checks passed
@rebelchris rebelchris deleted the feat-opportunity-feedback branch November 7, 2025 09:20
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