Skip to content
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

feat: funnel boot #2718

Merged
merged 3 commits into from
Apr 1, 2025
Merged

feat: funnel boot #2718

merged 3 commits into from
Apr 1, 2025

Conversation

idoshamun
Copy link
Member

Introduce a new boot endpoint for web funnels. It's a lean version to optimize for speed.

It calls Freyja to fetch the funnel and has simple logic for the experimentation.

Introduce a new boot endpoint for web funnels. It's a lean version to optimize for speed.

It calls Freyja to fetch the funnel and has simple logic for the experimentation.

This comment has been minimized.

Copy link
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.

Just a note about cookies, looking good 👍

src/cookies.ts Outdated
maxAge: 1000 * 60 * 30,
httpOnly: false,
signed: false,
secure: false,
Copy link
Contributor

@capJavert capJavert Apr 1, 2025

Choose a reason for hiding this comment

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

it could be true in production as kratos cookie

src/cookies.ts Outdated
funnel: {
opts: {
maxAge: 1000 * 60 * 30,
httpOnly: false,
Copy link
Contributor

@capJavert capJavert Apr 1, 2025

Choose a reason for hiding this comment

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

potentially can also be true if we are reading/writting only server side

Copy link
Member Author

Choose a reason for hiding this comment

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

Since it's tracking related and nothing hardcore, I thought of copying the same settings from the tracking cookie. Right now we don't access it on the client but thought it may be useful

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, not mandatory 👍

Copy link

pulumi bot commented Apr 1, 2025

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

Resource Changes

    Name                                            Type                           Operation
~   vpc-native-generate-search-invites-cron         kubernetes:batch/v1:CronJob    update
+   vpc-native-api-migration-26b586dd               kubernetes:batch/v1:Job        create
~   vpc-native-personalized-digest-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-calculate-top-readers-cron           kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-update-highlighted-views-cron        kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-private-deployment                   kubernetes:apps/v1:Deployment  update
~   vpc-native-update-views-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
-   vpc-native-api-migration-509c5ac3               kubernetes:batch/v1:Job        delete
~   vpc-native-generic-referral-reminder-cron       kubernetes:batch/v1:CronJob    update
~   vpc-native-hourly-notification-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron           kubernetes:batch/v1:CronJob    update
+-  vpc-native-k8s-secret                           kubernetes:core/v1:Secret      create-replacement
~   vpc-native-update-source-tag-view-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                           kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-zombie-images-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-ws-deployment                        kubernetes:apps/v1:Deployment  update
~   vpc-native-temporal-deployment                  kubernetes:apps/v1:Deployment  update
~   vpc-native-personalized-digest-deployment       kubernetes:apps/v1:Deployment  update
~   vpc-native-daily-digest-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tag-recommendations-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-bg-deployment                        kubernetes:apps/v1:Deployment  update
~   vpc-native-update-source-public-threshold-cron  kubernetes:batch/v1:CronJob    update

@idoshamun idoshamun merged commit a5b48b6 into main Apr 1, 2025
8 checks passed
@idoshamun idoshamun deleted the boot-funnels branch April 1, 2025 10:48
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